Class CompoundItemConfigProvider
java.lang.Object
net.ssehub.easy.varModel.confModel.VariableConfigProvider
net.ssehub.easy.varModel.confModel.NestedVarConfigProvider
net.ssehub.easy.varModel.confModel.CompoundItemConfigProvider
VariableConfigProvider for nested Elements of a ContainerVariable.- Author:
- El-Sharkawy
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompoundItemConfigProvider(CompoundVariable parent, String slotName) Sole constructor for creating aVariableConfigProviderfor nested elements of a compound. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfreeze(IFreezeSelector selector) Causes to freeze the current value.protected AbstractVariableReturns the declaration of the relatedIDecisionVariable.protected CompoundVariableReturns theStructuredVariablewhich hold the relatedIDecisionVariablewhere this provider belongs to.protected IAssignmentStategetState()Returns the assignment state of this variable.protected ValuegetValue()Returns the current value of thisIDecisionVariable.protected voidsetHistoryValue(Value value, IAssignmentState state) Changes the value from value history.protected final voidsetState(IAssignmentState state) Setter for theIAssignmentState, needed byCompoundVariables.protected voidsetValue(Value value, IAssignmentState state) Changes the value (for incremental buildup).Methods inherited from class net.ssehub.easy.varModel.confModel.NestedVarConfigProvider
getConfiguration, isStateChangeAllowedMethods inherited from class net.ssehub.easy.varModel.confModel.VariableConfigProvider
freeze, unfreeze
-
Field Details
-
slotName
-
state
-
-
Constructor Details
-
CompoundItemConfigProvider
Sole constructor for creating aVariableConfigProviderfor nested elements of a compound.- Parameters:
parent- ACompoundVariablewhich will hold the nestedIDecisionVariablewhere this provider belongs to.slotName- Theparent's slotName of the nestedIDecisionVariablewhere this provider belongs to.
-
-
Method Details
-
getParent
Description copied from class:NestedVarConfigProviderReturns theStructuredVariablewhich hold the relatedIDecisionVariablewhere this provider belongs to.- Overrides:
getParentin classNestedVarConfigProvider- Returns:
- The
StructuredVariablewhich hold the relatedIDecisionVariable.
-
getValue
Description copied from class:VariableConfigProviderReturns the current value of thisIDecisionVariable.- Specified by:
getValuein classVariableConfigProvider- Returns:
- the value (may be null)
-
setValue
Description copied from class:VariableConfigProviderChanges the value (for incremental buildup).- Specified by:
setValuein classVariableConfigProvider- Parameters:
value- the value (may be null for incremental buildup)state- the related assignment state- Throws:
ConfigurationException- in case that the types ofVariableConfigProvider.getDeclaration()andvaluedo not comply
-
getState
Description copied from class:VariableConfigProviderReturns the assignment state of this variable.- Specified by:
getStatein classVariableConfigProvider- Returns:
- the assignment state
-
setState
Description copied from class:VariableConfigProviderSetter for theIAssignmentState, needed byCompoundVariables.- Specified by:
setStatein classVariableConfigProvider- Parameters:
state- The newIAssignmentState, which should be set.
-
getDeclaration
Description copied from class:VariableConfigProviderReturns the declaration of the relatedIDecisionVariable.- Specified by:
getDeclarationin classVariableConfigProvider- Returns:
IConfigurationElement.getDeclaration().
-
setHistoryValue
Description copied from class:VariableConfigProviderChanges the value from value history.- Specified by:
setHistoryValuein classVariableConfigProvider- Parameters:
value- the value (may be null for incremental buildup)state- the related assignment state- Throws:
ConfigurationException- in case that the types ofVariableConfigProvider.getDeclaration()andvaluedo not comply
-
freeze
Description copied from class:VariableConfigProviderCauses to freeze the current value.- Specified by:
freezein classVariableConfigProvider- Parameters:
selector- determines which parts shall be frozen
-