public class DataVariableNode extends AbstractBrowseNode implements VariableNode, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
arrayLength |
protected DataType |
dataType |
protected DataValue |
value |
Constructor and Description |
---|
DataVariableNode(java.lang.String address,
DataValue value,
DataType type)
Creates a new DataVariableNode.
|
DataVariableNode(java.lang.String address,
java.lang.String name,
DataValue value,
DataType type)
Creates a new DataVariableNode.
|
DataVariableNode(java.lang.String address,
java.lang.String browseName,
java.lang.String displayName,
java.lang.String description,
DataValue value,
DataType type)
Creates a new DataVariableNode.
|
DataVariableNode(java.lang.String address,
java.lang.String browseName,
java.lang.String displayName,
java.lang.String description,
DataValue value,
DataType type,
int arrayLength)
Creates a new DataVariableNode.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(BrowseNode child) |
int |
getArrayLength()
The array length for this node, or -1 to indicate a scalar datatype
|
BrowseNodeType |
getBrowseNodeType()
The browse type for this node.
|
DataType |
getDataType()
The datatype of this node's value
|
DataValue |
getValue()
The current value for this node
|
addProperty, getAddress, getBrowseName, getChildren, getDescription, getDisplayName, getProperties, getUANode, setUANode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAddress, getBrowseName, getChildren, getDescription, getDisplayName, getProperties, getUANode, setUANode
protected DataValue value
protected DataType dataType
protected int arrayLength
public DataVariableNode(java.lang.String address, DataValue value, DataType type)
address
- The address of this variable.value
- The current value for this variable.type
- The datatype of this variable.public DataVariableNode(java.lang.String address, java.lang.String name, DataValue value, DataType type)
address
- The address of this variable.name
- This name will be used as the browse name and the display namevalue
- The current value for this variable.type
- The datatype of this variable.public DataVariableNode(java.lang.String address, java.lang.String browseName, java.lang.String displayName, java.lang.String description, DataValue value, DataType type)
address
- The address of this variable.browseName
- The browse name for this variable.displayName
- The human-friendly display name for this variabledescription
- A description for this variablevalue
- The current value for this variable.type
- The datatype of this variable.public DataVariableNode(java.lang.String address, java.lang.String browseName, java.lang.String displayName, java.lang.String description, DataValue value, DataType type, int arrayLength)
address
- The address of this variable.browseName
- The browse name for this variable.displayName
- The human-friendly display name for this variabledescription
- A description for this variablevalue
- The current value for this variable.type
- The datatype of this variable.arrayLength
- If this variable's value is an array, this is the length of the array. Use -1 for
scalar data.public DataValue getValue()
VariableNode
getValue
in interface VariableNode
public DataType getDataType()
VariableNode
getDataType
in interface VariableNode
public int getArrayLength()
VariableNode
getArrayLength
in interface VariableNode
public BrowseNodeType getBrowseNodeType()
BrowseNode
getBrowseNodeType
in interface BrowseNode
public void addChild(BrowseNode child)
addChild
in class AbstractBrowseNode