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
An extended version of the a decision variable container which also supports realizing constraints.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraint(Constraint constraint, boolean internal) Adds a constraint.getRealizing(int index) Returns the specified realizing constraint.intReturns 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, toStringMethods inherited from class net.ssehub.easy.varModel.model.ModelElement
findAttribute, getComment, getName, getNameSpace, getParent, getQualifiedName, getUniqueName, isTransparent, setComment, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ssehub.easy.varModel.model.IModelElement
getComment, getName, getNameSpace, getParent, getQualifiedName, getUniqueName, isTransparent, setComment
-
Field Details
-
realizing
-
-
Constructor Details
-
FullDecisionVariableContainer
public FullDecisionVariableContainer()
-
-
Method Details
-
addConstraint
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
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
-