Interface VariableReference
- All Known Subinterfaces:
Parameter<C>
,VariableReferenceOnModel
public interface VariableReference
This is a reference to a variable.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Process Model Property Namespace constant Process Model Properties are created by EPEx.static final String
Process Property Namespace constant Process Properties are created by EPEx.static final String
Process Variable Namespace constant Process Variables are created by the designer of the model. -
Method Summary
Modifier and TypeMethodDescriptionThe Namespace is a namespace for this VariableReference.default String
<C> Optional<C>
getType
(DataTypeStrategy<C> dataTypeStrategy) If a VariableReference has a declared datatype, return it in the form as given by the dataTypeStrategy (available from EPEx).The Key is the main name for this VariableReference.
-
Field Details
-
PV
Process Variable Namespace constant Process Variables are created by the designer of the model. This should be case-insensitive for comparison. -
PP
Process Property Namespace constant Process Properties are created by EPEx. This should be case-insensitive for comparison. -
PM
Process Model Property Namespace constant Process Model Properties are created by EPEx. This should be case-insensitive for comparison.
-
-
Method Details
-
getNamespace
String getNamespace()The Namespace is a namespace for this VariableReference. This allows a process variable to have the same name key as a process property, or a process property and a task property to have the same name key.- Returns:
- namespace (e.g., PV, PP, TP)
-
getVariableName
String getVariableName()The Key is the main name for this VariableReference.- Returns:
- variable name
-
getType
If a VariableReference has a declared datatype, return it in the form as given by the dataTypeStrategy (available from EPEx). Not all VariableReference will have a declared datatype.- Type Parameters:
C
-- Parameters:
dataTypeStrategy
-- Returns:
-
getNamespaceAndName
- Returns:
- namespace!name if namespace set, otherwise name
-