Package net.ssehub.easy.varModel.model
Class FreezeBlock
java.lang.Object
net.ssehub.easy.varModel.model.ModelElement
net.ssehub.easy.varModel.model.ContainableModelElement
net.ssehub.easy.varModel.model.EvaluationBlock
net.ssehub.easy.varModel.model.FreezeBlock
- All Implemented Interfaces:
IDatatypeVisitable,IModelElement
Handles frozen elements.
- Author:
- Marcel Lueder, Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IFreezable[]private DecisionVariableDeclarationprivate ConstraintSyntaxTree -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for serialization.FreezeBlock(IFreezable[] freezables, DecisionVariableDeclaration iter, ConstraintSyntaxTree selector, IModelElement parent) Constructor for containable model element. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IModelVisitor visitor) Accept method for the visitor.getFreezable(int index) Returns a specific freezable.intReturns the number of freezables.getIter()Returns the iterator variable.Returns the selector.getType()Returns the internal type of this block.toString()Methods inherited from class net.ssehub.easy.varModel.model.EvaluationBlock
isEmptyMethods inherited from class net.ssehub.easy.varModel.model.ContainableModelElement
accept, getNameSpace, getParent, getProject, getQualifiedName, getTopLevelParent, isTopLevel, setParentMethods inherited from class net.ssehub.easy.varModel.model.ModelElement
findAttribute, getComment, getName, getUniqueName, isTransparent, propagateAttribute, setComment, setName
-
Field Details
-
freezables
-
iter
-
selector
-
-
Constructor Details
-
FreezeBlock
FreezeBlock()Constructor for serialization. -
FreezeBlock
public FreezeBlock(IFreezable[] freezables, DecisionVariableDeclaration iter, ConstraintSyntaxTree selector, IModelElement parent) Constructor for containable model element.- Parameters:
freezables- the elements which may be frozen (depends onbuts)iter- the iterator variable forselector, may be nullselector- the selector expression usingiter, may be nullparent- the object, in which this specific one is embedded
-
-
Method Details
-
accept
Description copied from interface:IModelElementAccept method for the visitor.- Parameters:
visitor- The visitor, which should process this model element.
-
getType
Returns the internal type of this block.- Returns:
- the internal type
-
getSelector
Returns the selector.- Returns:
- the selector (may be null)
-
getIter
Returns the iterator variable.- Returns:
- the iterator variable (may be null)
-
getFreezableCount
public int getFreezableCount()Returns the number of freezables.- Returns:
- the number of freezables
-
getFreezable
Returns a specific freezable.- Parameters:
index- the index of the freezable- Returns:
- the freezable
- Throws:
IndexOutOfBoundsException- ifindex<0 || index>=getFreezableCount()
-
toString
- Overrides:
toStringin classModelElement
-