Class VarFreezeSelector
java.lang.Object
net.ssehub.easy.varModel.confModel.VarFreezeSelector
- All Implemented Interfaces:
IFreezeSelector
A freeze selector which just freezes the given variable but not it's contained or its annotations.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshallFreeze(IDecisionVariable variable) Returns whethervariableshall be frozen.booleanWhether while freezing the selected variables also their annotations shall be frozen.
-
Field Details
-
variable
-
-
Constructor Details
-
VarFreezeSelector
Creates an instance.- Parameters:
variable-
-
-
Method Details
-
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
-
shallFreezeAnnotations
public boolean shallFreezeAnnotations()Description copied from interface:IFreezeSelectorWhether while freezing the selected variables also their annotations shall be frozen.- Specified by:
shallFreezeAnnotationsin interfaceIFreezeSelector- Returns:
truefor freezing annotations,falseelse
-