Interface IDecisionVariable
- All Superinterfaces:
IModelElement
Represents a decision variable.
- Author:
- Holger Eichelberger
-
Method Summary
Modifier and TypeMethodDescriptionReturns the binding time of the variable.Returns the default value of the variable as specified as part of the variable declaration in the underlying IVML model.getName()Returns the name of the variable.getType()Returns the type of the variable.getValue()Returns the configured value for this variable.booleanReturns whether the this variable has been configured and is frozen.booleanhasValue()Returns whether there this variable has been configured with a value.
-
Method Details
-
getName
String getName()Returns the name of the variable.- Returns:
- the name of the variable
-
getType
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
String getBindingTime()Returns the binding time of the variable.- Returns:
- the binding time, may be null if none is defined
-
getDefaultValue
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
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
-