Class StructuredVariable
java.lang.Object
net.ssehub.easy.varModel.confModel.DecisionVariable
net.ssehub.easy.varModel.confModel.StructuredVariable
- All Implemented Interfaces:
IConfigurationElement,IConfigurationVisitable,IDecisionVariable,IValueParent
- Direct Known Subclasses:
CompoundVariable,ContainerVariable
Abstract super class for variables of
StructuredDatatype's.
Specialized classes are:
- Author:
- El-Sharkawy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStructuredVariable(IConfigurationElement parent, AbstractVariable varDeclaration, boolean isVisible, boolean isAttribute) Sole constructor for this class. -
Method Summary
Modifier and TypeMethodDescription(package private) abstract booleanReturns whether this variable support individual states for nested items.Methods inherited from class net.ssehub.easy.varModel.confModel.DecisionVariable
accept, enableWasAssignedForIsDefined, freeze, getAttribute, getAttributesCount, getConfigProvider, getConfiguration, getDeclaration, getInstantiatableType, getNestedDepth, getNestedElement, getParent, getPathForNestedElement, getQualifiedName, getResolutionPath, getState, getValue, hasNullValue, hasValue, isAttribute, isLocal, isNested, isVisible, notifyCreated, notifyWasAssigned, ownStateAllowed, setHistoryValue, setIndex, setState, setValue, setValue, toString, unfreeze, wasAssigned, wasCreatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ssehub.easy.varModel.confModel.IConfigurationElement
freeze, setValueMethods inherited from interface net.ssehub.easy.varModel.confModel.IDecisionVariable
getNestedElement, getNestedElementsCount, removeDerivedValues
-
Constructor Details
-
StructuredVariable
protected StructuredVariable(IConfigurationElement parent, AbstractVariable varDeclaration, boolean isVisible, boolean isAttribute) Sole constructor for this class.- Parameters:
parent- the parent this variable is part of, typically theConfigurationinstance, but in case of compounds/container also the containingIDecisionVariablevarDeclaration- the variable declaration instantiated by this decisionisVisible- Specifies whether this variables is exported by an interface or not:true: The variable is exported by an interface or there is no interface.false: There is an interface which does not export this variable.
isAttribute- whether this variable represents (a part of) an attribute or a variable
-
-
Method Details
-
allowsNestedStates
abstract boolean allowsNestedStates()Returns whether this variable support individual states for nested items.- Returns:
trueif nested items can have their own states, otherwisefalse.
-