Package net.ssehub.easy.varModel.model
Class FullDecisionVariableContainer
- java.lang.Object
-
- net.ssehub.easy.varModel.model.ModelElement
-
- net.ssehub.easy.varModel.model.BasicDecisionVariableContainer
-
- net.ssehub.easy.varModel.model.FullDecisionVariableContainer
-
- All Implemented Interfaces:
IContainableElementsSorter,IDecisionVariableContainer,IModelElement
public class FullDecisionVariableContainer extends BasicDecisionVariableContainer
An extended version of the a decision variable container which also supports realizing constraints.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Constraint>realizing
-
Constructor Summary
Constructors Constructor Description FullDecisionVariableContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConstraint(Constraint constraint, boolean internal)Adds a constraint.ConstraintgetRealizing(int index)Returns the specified realizing constraint.intgetRealizingCount()Returns the number of realizing constraints.-
Methods inherited from class net.ssehub.easy.varModel.model.BasicDecisionVariableContainer
accept, add, add, add, add, contains, containsByName, forceUpdate, getAssignment, getAssignmentCount, getConstraint, getConstraintsCount, getDeclaration, getDeclarationCount, getElement, getElement, getElementCount, getModelElement, getModelElementCount, propagateAttribute, removeModelElement, sortContainedElements, toString
-
Methods inherited from class net.ssehub.easy.varModel.model.ModelElement
findAttribute, getComment, getName, getNameSpace, getParent, getQualifiedName, getUniqueName, isTransparent, setComment, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.varModel.model.IModelElement
getComment, getName, getNameSpace, getParent, getQualifiedName, getUniqueName, isTransparent, setComment
-
-
-
-
Field Detail
-
realizing
private java.util.List<Constraint> realizing
-
-
Method Detail
-
addConstraint
public void addConstraint(Constraint constraint, boolean internal)
Description copied from interface:IDecisionVariableContainerAdds a constraint.- Specified by:
addConstraintin interfaceIDecisionVariableContainer- Overrides:
addConstraintin classBasicDecisionVariableContainer- Parameters:
constraint- the constraint to be addedinternal- whether the constraint is internally created while building up the model (ignored)
-
getRealizingCount
public int getRealizingCount()
Description copied from interface:IDecisionVariableContainerReturns the number of realizing constraints. Please note that these constraints are derived and not originally specified in the input IVML model.- Specified by:
getRealizingCountin interfaceIDecisionVariableContainer- Overrides:
getRealizingCountin classBasicDecisionVariableContainer- Returns:
- the number of constraints
-
getRealizing
public Constraint getRealizing(int index)
Description copied from interface:IDecisionVariableContainerReturns the specified realizing constraint. Please note that these constraints are derived and not originally specified in the input IVML model.- Specified by:
getRealizingin interfaceIDecisionVariableContainer- Overrides:
getRealizingin classBasicDecisionVariableContainer- Parameters:
index- the index of the constraint to be returned- Returns:
- the specified constraint
-
-