Package net.ssehub.easy.varModel.model
Class ProjectDecisionVariableDeclaration
java.lang.Object
net.ssehub.easy.varModel.model.ModelElement
net.ssehub.easy.varModel.model.ContainableModelElement
net.ssehub.easy.varModel.model.AbstractVariable
net.ssehub.easy.varModel.model.DecisionVariableDeclaration
net.ssehub.easy.varModel.model.ProjectDecisionVariableDeclaration
- All Implemented Interfaces:
net.ssehub.easy.basics.modelManagement.IVariable,IDatatypeVisitable,IDerivedDatatypeListener,IAttributableElement,IAttributeAccess,IFreezable,IModelElement
Facilitates attribute propagation to parent project.
- Author:
- Holger Eichelberger
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for serialization.ProjectDecisionVariableDeclaration(String name, IDatatype type, ModelElement parent) Constructor for decision variable declaration. -
Method Summary
Methods inherited from class net.ssehub.easy.varModel.model.DecisionVariableDeclaration
accept, getAttribute, getAttribute, getAttributesCount, isAttribute, isConstant, isDeclaratorTypeExplicit, isTemporaryDeclarator, isTemporaryVariable, propagateAttributeMethods inherited from class net.ssehub.easy.varModel.model.AbstractVariable
constraintsChanged, equals, getDefaultValue, getType, hashCode, isSame, setValue, setValue, setValueMethods 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, setComment, setName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ssehub.easy.varModel.model.IAttributableElement
getName, getQualifiedNameMethods inherited from interface net.ssehub.easy.varModel.model.IFreezable
getName, getParent, getType
-
Constructor Details
-
ProjectDecisionVariableDeclaration
ProjectDecisionVariableDeclaration()Constructor for serialization. -
ProjectDecisionVariableDeclaration
Constructor for decision variable declaration.- Parameters:
name- Name of the decision variable declarationtype- type of the new VariableDeclarationparent- the object, in which this specific one is embedded
-
-
Method Details
-
attribute
Description copied from class:DecisionVariableDeclarationAttributes this element.- Specified by:
attributein interfaceIAttributableElement- Overrides:
attributein classDecisionVariableDeclaration- Parameters:
attribute- the attribute to be added- Returns:
trueif the operation was successful,falseif the element is about being attributed multiple times with the same attribute
-