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 ModelFacadeResultafterPropagation(Model model, ModelFacadeResult createInitialModelResult) Post-processes the propagation result on this model.voidclose()protected RefineryDiagnosticsprotected MetadataCreatorgetModel()<A extends AbstractValue<A,C>, C>
PartialInterpretation<A, C> getPartialInterpretation(PartialSymbol<A, C> partialSymbol) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tools.refinery.generator.ModelFacade
getConcreteness, getPartialInterpretation, serialize
-
Constructor Details
-
ModelFacadeImpl
-
-
Method Details
-
getProblemTrace
- Specified by:
getProblemTracein interfaceModelFacade
-
getModelStore
- Specified by:
getModelStorein interfaceModelFacade
-
getModel
- Specified by:
getModelin 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 themodelargument instead.- Parameters:
model- TheModelafter propagation.createInitialModelResult- The result of the propagation on the model.- Returns:
- The post-processed propagation result.
-
getInitializationResult
- Specified by:
getInitializationResultin interfaceModelFacade
-
throwIfInitializationFailed
public void throwIfInitializationFailed()- Specified by:
throwIfInitializationFailedin interfaceModelFacade
-
getPartialInterpretation
public <A extends AbstractValue<A,C>, PartialInterpretation<A,C> C> getPartialInterpretation(PartialSymbol<A, C> partialSymbol) - Specified by:
getPartialInterpretationin interfaceModelFacade
-
getNodesMetadata
- Specified by:
getNodesMetadatain interfaceModelFacade
-
getRelationsMetadata
- Specified by:
getRelationsMetadatain interfaceModelFacade
-
getMetadataCreator
-
getDiagnostics
-
checkConsistency
- Specified by:
checkConsistencyin interfaceModelFacade
-
trySerialize
- Specified by:
trySerializein interfaceModelFacade
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceModelFacade
-