Class NestedVarConfigProvider
- java.lang.Object
-
- net.ssehub.easy.varModel.confModel.VariableConfigProvider
-
- net.ssehub.easy.varModel.confModel.NestedVarConfigProvider
-
- Direct Known Subclasses:
CompoundItemConfigProvider,ContainerItemConfigProvider
abstract class NestedVarConfigProvider extends VariableConfigProvider
VariableConfigProviderfor nested variables of aStructuredVariable.- Author:
- El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private StructuredVariableparent
-
Constructor Summary
Constructors Modifier Constructor Description protectedNestedVarConfigProvider(StructuredVariable parent)Sole constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigurationgetConfiguration()Return the configuration containing the relatedIDecisionVariable.protected StructuredVariablegetParent()Returns theStructuredVariablewhich hold the relatedIDecisionVariablewhere this provider belongs to.protected booleanisStateChangeAllowed()Specifies whether the relatedIDecisionVariablecan have its ownIAssignmentState.-
Methods inherited from class net.ssehub.easy.varModel.confModel.VariableConfigProvider
freeze, freeze, getDeclaration, getState, getValue, setHistoryValue, setState, setValue, unfreeze
-
-
-
-
Field Detail
-
parent
private StructuredVariable parent
-
-
Constructor Detail
-
NestedVarConfigProvider
protected NestedVarConfigProvider(StructuredVariable parent)
Sole constructor for this class.- Parameters:
parent- AStructuredVariablewhich will hold the nestedIDecisionVariablewhere this provider belongs to.
-
-
Method Detail
-
getParent
protected StructuredVariable getParent()
Returns theStructuredVariablewhich hold the relatedIDecisionVariablewhere this provider belongs to.- Returns:
- The
StructuredVariablewhich hold the relatedIDecisionVariable.
-
getConfiguration
protected final Configuration getConfiguration()
Description copied from class:VariableConfigProviderReturn the configuration containing the relatedIDecisionVariable.- Specified by:
getConfigurationin classVariableConfigProvider- Returns:
IConfigurationElement.getConfiguration().
-
isStateChangeAllowed
protected final boolean isStateChangeAllowed()
Description copied from class:VariableConfigProviderSpecifies whether the relatedIDecisionVariablecan have its ownIAssignmentState. In case of a nestedIDecisionVariableof aStructuredVariable, this is not supported.- Specified by:
isStateChangeAllowedin classVariableConfigProvider- Returns:
- true if the related
IDecisionVariablecan have its ownIAssignmentState, otherwise false.
-
-