Interface IDecisionVariable
-
- All Superinterfaces:
IModelElement
- All Known Implementing Classes:
DecisionVariable
public interface IDecisionVariable extends IModelElement
Represents a decision variable.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetBindingTime()Returns the binding time of the variable.java.lang.StringgetDefaultValue()Returns the default value of the variable as specified as part of the variable declaration in the underlying IVML model.java.lang.StringgetName()Returns the name of the variable.java.lang.StringgetType()Returns the type of the variable.java.lang.StringgetValue()Returns the configured value for this variable.booleanhasFrozenValue()Returns whether the this variable has been configured and is frozen.booleanhasValue()Returns whether there this variable has been configured with a value.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the variable.- Returns:
- the name of the variable
-
getType
java.lang.String getType()
Returns the type of the variable.- Returns:
- the type of the variable, possibly adjusted by the model after adding this variable if the model supports fault-tolerance
-
getBindingTime
java.lang.String getBindingTime()
Returns the binding time of the variable.- Returns:
- the binding time, may be null if none is defined
-
getDefaultValue
java.lang.String getDefaultValue()
Returns the default value of the variable as specified as part of the variable declaration in the underlying IVML model. For obtaining the actual value in a configuration, please refer togetValue().- Returns:
- the default value, may be null if none is defined, possibly adjusted by the model after adding this variable if the model supports fault-tolerance
-
getValue
java.lang.String getValue()
Returns the configured value for this variable. Please considerhasValue()andhasFrozenValue()in order to judge the return value correctly.- Returns:
- the configured value for this variable, may be null if the actual
value is null or if the variable has not been configured (see
hasValue())
-
hasValue
boolean hasValue()
Returns whether there this variable has been configured with a value.- Returns:
trueif variable has been configured,falseelse
-
hasFrozenValue
boolean hasFrozenValue()
Returns whether the this variable has been configured and is frozen.- Returns:
trueif the configured value is frozen,falseelse
-
-