Class FreezeEvaluator
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.FreezeEvaluator
- All Implemented Interfaces:
IFreezeSelector
Implements a freeze selector based on expression evaluation.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFreezeEvaluator(Configuration config) Creates a freeze evaluator for the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFreeze(FreezeBlock freeze) Defines the current freeze block to evaluate.booleanshallFreeze(IDecisionVariable variable) Returns whethervariableshall be frozen.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.ssehub.easy.varModel.confModel.IFreezeSelector
shallFreezeAnnotations
-
Field Details
-
eval
-
freeze
-
-
Constructor Details
-
FreezeEvaluator
Creates a freeze evaluator for the given configuration.- Parameters:
config- the configuration
-
-
Method Details
-
setFreeze
Defines the current freeze block to evaluate.- Parameters:
freeze- the freeze block
-
shallFreeze
Description copied from interface:IFreezeSelectorReturns whethervariableshall be frozen.- Specified by:
shallFreezein interfaceIFreezeSelector- Parameters:
variable- the variable to be tested- Returns:
trueifvariableshall be frozen,falseelse
-