Class SimulationVariable
java.lang.Object
neqsim.process.automation.SimulationVariable
- All Implemented Interfaces:
Serializable
Describes a single variable exposed by a unit operation in a process simulation. Each variable
has a stable string address that can be used with
ProcessAutomation.getVariableValue(String, String) and
ProcessAutomation.setVariableValue(String, double, String).- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVariable access type. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate static final longSerialization version UID.private final SimulationVariable.VariableType -
Constructor Summary
ConstructorsConstructorDescriptionSimulationVariable(String address, String name, SimulationVariable.VariableType type, String defaultUnit, String description) Creates a new simulation variable descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the stable dot-notation address for this variable.Returns the default unit of measure.Returns a human-readable description of the variable.getName()Returns the short property name.getType()Returns whether this variable is an input or output.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
address
-
name
-
type
-
defaultUnit
-
description
-
-
Constructor Details
-
SimulationVariable
public SimulationVariable(String address, String name, SimulationVariable.VariableType type, String defaultUnit, String description) Creates a new simulation variable descriptor.- Parameters:
address- the stable dot-separated address, e.g. "separator-1.gasOutStream.temperature"name- the short property name, e.g. "temperature"type- whether the variable is INPUT (read-write) or OUTPUT (read-only)defaultUnit- the default unit of measure, e.g. "K", "bara", "kg/hr"description- a human-readable description
-
-
Method Details
-
getAddress
Returns the stable dot-notation address for this variable.- Returns:
- the variable address
-
getName
-
getType
Returns whether this variable is an input or output.- Returns:
- the variable type
-
getDefaultUnit
Returns the default unit of measure.- Returns:
- the default unit string
-
getDescription
Returns a human-readable description of the variable.- Returns:
- the description
-
toString
-