Package tools.refinery.generator.impl
Class ModelFacadeImpl
java.lang.Object
tools.refinery.generator.impl.ModelFacadeImpl
- All Implemented Interfaces:
AutoCloseable
,ModelFacade
- Direct Known Subclasses:
ConcreteModelFacade
,ModelSemanticsImpl
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelFacadeResult
afterPropagation
(Model model, ModelFacadeResult createInitialModelResult) Post-processes the propagation result on this model.void
close()
protected RefineryDiagnostics
protected MetadataCreator
getModel()
<A extends AbstractValue<A,
C>, C>
PartialInterpretation<A, C> getPartialInterpretation
(PartialSymbol<A, C> partialSymbol) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.refinery.generator.ModelFacade
getConcreteness, getPartialInterpretation, serialize
-
Constructor Details
-
ModelFacadeImpl
-
-
Method Details
-
getProblemTrace
- Specified by:
getProblemTrace
in interfaceModelFacade
-
getModelStore
- Specified by:
getModelStore
in interfaceModelFacade
-
getModel
- Specified by:
getModel
in interfaceModelFacade
-
afterPropagation
protected ModelFacadeResult afterPropagation(Model model, ModelFacadeResult createInitialModelResult) Post-processes the propagation result on this model.Inheriting classes may use this method to perform other operations, such as concretization, on the model.
Implementations should never call
getModel()
, as it hasn't been set yet. Use themodel
argument instead.- Parameters:
model
- TheModel
after propagation.createInitialModelResult
- The result of the propagation on the model.- Returns:
- The post-processed propagation result.
-
getInitializationResult
- Specified by:
getInitializationResult
in interfaceModelFacade
-
throwIfInitializationFailed
public void throwIfInitializationFailed()- Specified by:
throwIfInitializationFailed
in interfaceModelFacade
-
getPartialInterpretation
public <A extends AbstractValue<A,C>, PartialInterpretation<A,C> C> getPartialInterpretation(PartialSymbol<A, C> partialSymbol) - Specified by:
getPartialInterpretation
in interfaceModelFacade
-
getNodesMetadata
- Specified by:
getNodesMetadata
in interfaceModelFacade
-
getRelationsMetadata
- Specified by:
getRelationsMetadata
in interfaceModelFacade
-
getMetadataCreator
-
getDiagnostics
-
checkConsistency
- Specified by:
checkConsistency
in interfaceModelFacade
-
trySerialize
- Specified by:
trySerialize
in interfaceModelFacade
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceModelFacade
-