- All Known Subinterfaces:
ModelProxyInstantiator,ModelProxyInstantiatorWithCP
- All Known Implementing Classes:
BasicModelProxy,ModelDispatcher
public interface ModelProxy
Maintains the current model and proxies calls to it.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault voidadd(BoolExpression c, boolean enforceFixPoint) default voidadd(Constraint c) default voidadd(Constraint c, boolean enforceFixPoint) Shortcut for baseModel.getModel().add(c, enforceFixPoint);default voidfixpoint()default ConcreteModelReturns the current ConcreteModel. isConcrete() needs to be true, otherwise it raises NotConcreteException.getModel()default SymbolicModelReturns the current symbolic model (if isConcrete() is true, it returns a symbolic copy of the current Concrete model)default booleandefault booleandefault voidrunWithModel(ConcreteModel model, Runnable fun) default <R> RrunWithModel(ConcreteModel model, Supplier<R> fun) <T extends Model>
TsetModel(T m)
-
Method Details
-
getModel
Model getModel() -
isSymbolic
default boolean isSymbolic() -
isConcrete
default boolean isConcrete() -
getSymbolicModel
Returns the current symbolic model (if isConcrete() is true, it returns a symbolic copy of the current Concrete model) -
getConcreteModel
Returns the current ConcreteModel. isConcrete() needs to be true, otherwise it raises NotConcreteException.- Throws:
ModelProxy.NotConcreteException
-
add
-
add
-
fixpoint
default void fixpoint() -
add
Shortcut for baseModel.getModel().add(c, enforceFixPoint);- Parameters:
c- constraint to add
-
add
-
runWithModel
-
runWithModel
-
setModel
-