com.prosysopc.ua.nodes
Interface UaValueNode

All Superinterfaces:
UaNode
All Known Subinterfaces:
AnalogItemType, ArrayItemType, BaseDataVariableType, BaseVariableType, BuildInfoType, ChemometricModelType, ConditionVariableType, CubeItemType, DataItemType, DataTypeDescriptionType, DataTypeDictionaryType, DiscreteItemType, EngineeringValueType, FiniteStateVariableType, FiniteTransitionVariableType, ImageItemType, MultiStateDiscreteType, MultiStateValueDiscreteType, MVAModelType, MVAOutputParameterType, NDimensionArrayItemType, OptionSetType, ProcessVariableType, ProgramDiagnosticType, SamplingIntervalDiagnosticsArrayType, SamplingIntervalDiagnosticsType, ServerDiagnosticsSummaryType, ServerStatusType, ServerVendorCapabilityType, SessionDiagnosticsArrayType, SessionDiagnosticsVariableType, SessionSecurityDiagnosticsArrayType, SessionSecurityDiagnosticsType, StateVariableType, SubscriptionDiagnosticsArrayType, SubscriptionDiagnosticsType, TransitionVariableType, TwoStateDiscreteType, TwoStateVariableType, UaProperty, UaVariable, UaVariableType, UIElementType, XYArrayItemType, YArrayItemType
All Known Implementing Classes:
AbstractGeneratedVariableNode, AnalogItemTypeImpl, AnalogItemTypeImplBase, AnalogItemTypeNode, AnalogItemTypeNodeBase, ArrayItemTypeImpl, ArrayItemTypeImplBase, ArrayItemTypeNode, ArrayItemTypeNodeBase, BaseDataVariableTypeImpl, BaseDataVariableTypeImplBase, BaseDataVariableTypeNode, BaseDataVariableTypeNodeBase, BaseVariableTypeImpl, BaseVariableTypeNode, BuildInfoTypeImpl, BuildInfoTypeImplBase, BuildInfoTypeNode, BuildInfoTypeNodeBase, CacheProperty, CacheVariable, CallbackInstanceProperty, CallbackInstanceVariable, CallbackProperty, CallbackVariable, ChemometricModelTypeImpl, ChemometricModelTypeImplBase, ChemometricModelTypeNode, ChemometricModelTypeNodeBase, ConditionVariableTypeImpl, ConditionVariableTypeImplBase, ConditionVariableTypeNode, ConditionVariableTypeNodeBase, CubeItemTypeImpl, CubeItemTypeImplBase, CubeItemTypeNode, CubeItemTypeNodeBase, DataItemTypeImpl, DataItemTypeImplBase, DataItemTypeNode, DataItemTypeNodeBase, DataTypeDescriptionTypeImpl, DataTypeDescriptionTypeImplBase, DataTypeDescriptionTypeNode, DataTypeDescriptionTypeNodeBase, DataTypeDictionaryTypeImpl, DataTypeDictionaryTypeImplBase, DataTypeDictionaryTypeNode, DataTypeDictionaryTypeNodeBase, DiscreteItemTypeImpl, DiscreteItemTypeImplBase, DiscreteItemTypeNode, DiscreteItemTypeNodeBase, EngineeringValueTypeImpl, EngineeringValueTypeImplBase, EngineeringValueTypeNode, EngineeringValueTypeNodeBase, FiniteStateVariableTypeImpl, FiniteStateVariableTypeImplBase, FiniteStateVariableTypeNode, FiniteStateVariableTypeNodeBase, FiniteTransitionVariableTypeImpl, FiniteTransitionVariableTypeImplBase, FiniteTransitionVariableTypeNode, FiniteTransitionVariableTypeNodeBase, ImageItemTypeImpl, ImageItemTypeImplBase, ImageItemTypeNode, ImageItemTypeNodeBase, InstanceVariable, MultiStateDiscreteTypeImpl, MultiStateDiscreteTypeImplBase, MultiStateDiscreteTypeNode, MultiStateDiscreteTypeNodeBase, MultiStateValueDiscreteTypeImpl, MultiStateValueDiscreteTypeImplBase, MultiStateValueDiscreteTypeNode, MultiStateValueDiscreteTypeNodeBase, MVAModelTypeImpl, MVAModelTypeImplBase, MVAModelTypeNode, MVAModelTypeNodeBase, MVAOutputParameterTypeImpl, MVAOutputParameterTypeImplBase, MVAOutputParameterTypeNode, MVAOutputParameterTypeNodeBase, NDimensionArrayItemTypeImpl, NDimensionArrayItemTypeImplBase, NDimensionArrayItemTypeNode, NDimensionArrayItemTypeNodeBase, OptionSetTypeImpl, OptionSetTypeImplBase, OptionSetTypeNode, OptionSetTypeNodeBase, PlainInstanceProperty, PlainInstanceVariable, PlainProperty, PlainVariable, ProcessVariableTypeImpl, ProcessVariableTypeImplBase, ProcessVariableTypeNode, ProcessVariableTypeNodeBase, ProgramDiagnosticTypeImpl, ProgramDiagnosticTypeImplBase, ProgramDiagnosticTypeNode, ProgramDiagnosticTypeNodeBase, ReflectiveInstanceProperty, ReflectiveInstanceVariable, ReflectiveProperty, ReflectiveVariable, SamplingIntervalDiagnosticsArrayTypeImpl, SamplingIntervalDiagnosticsArrayTypeImplBase, SamplingIntervalDiagnosticsArrayTypeNode, SamplingIntervalDiagnosticsArrayTypeNodeBase, SamplingIntervalDiagnosticsTypeImpl, SamplingIntervalDiagnosticsTypeImplBase, SamplingIntervalDiagnosticsTypeNode, SamplingIntervalDiagnosticsTypeNodeBase, ServerDiagnosticsSummaryTypeImpl, ServerDiagnosticsSummaryTypeImplBase, ServerDiagnosticsSummaryTypeNode, ServerDiagnosticsSummaryTypeNodeBase, ServerStatusTypeImpl, ServerStatusTypeImplBase, ServerStatusTypeNode, ServerStatusTypeNodeBase, ServerVendorCapabilityTypeImpl, ServerVendorCapabilityTypeImplBase, ServerVendorCapabilityTypeNode, ServerVendorCapabilityTypeNodeBase, SessionDiagnosticsArrayTypeImpl, SessionDiagnosticsArrayTypeImplBase, SessionDiagnosticsArrayTypeNode, SessionDiagnosticsArrayTypeNodeBase, SessionDiagnosticsVariableTypeImpl, SessionDiagnosticsVariableTypeImplBase, SessionDiagnosticsVariableTypeNode, SessionDiagnosticsVariableTypeNodeBase, SessionSecurityDiagnosticsArrayTypeImpl, SessionSecurityDiagnosticsArrayTypeImplBase, SessionSecurityDiagnosticsArrayTypeNode, SessionSecurityDiagnosticsArrayTypeNodeBase, SessionSecurityDiagnosticsTypeImpl, SessionSecurityDiagnosticsTypeImplBase, SessionSecurityDiagnosticsTypeNode, SessionSecurityDiagnosticsTypeNodeBase, StateVariableTypeImpl, StateVariableTypeImplBase, StateVariableTypeNode, StateVariableTypeNodeBase, SubscriptionDiagnosticsArrayTypeImpl, SubscriptionDiagnosticsArrayTypeImplBase, SubscriptionDiagnosticsArrayTypeNode, SubscriptionDiagnosticsArrayTypeNodeBase, SubscriptionDiagnosticsTypeImpl, SubscriptionDiagnosticsTypeImplBase, SubscriptionDiagnosticsTypeNode, SubscriptionDiagnosticsTypeNodeBase, TransitionVariableTypeImpl, TransitionVariableTypeImplBase, TransitionVariableTypeNode, TransitionVariableTypeNodeBase, TwoStateDiscreteTypeImpl, TwoStateDiscreteTypeImplBase, TwoStateDiscreteTypeNode, TwoStateDiscreteTypeNodeBase, TwoStateVariableTypeImpl, TwoStateVariableTypeImplBase, TwoStateVariableTypeNode, TwoStateVariableTypeNodeBase, UaPropertyImpl, UaVariableImpl, UaVariableNode, UaVariableTypeImpl, UaVariableTypeNode, UIElementTypeImpl, UIElementTypeImplBase, UIElementTypeNode, UIElementTypeNodeBase, XYArrayItemTypeImpl, XYArrayItemTypeImplBase, XYArrayItemTypeNode, XYArrayItemTypeNodeBase, YArrayItemTypeImpl, YArrayItemTypeImplBase, YArrayItemTypeNode, YArrayItemTypeNodeBase

public interface UaValueNode
extends UaNode

A common interface for UaVariable and UaVariableType. Defines support for the Value property in the nodes.


Method Summary
 org.opcfoundation.ua.builtintypes.UnsignedInteger[] getArrayDimensions()
          This Attribute specifies the length of each dimension for an array value.
 UaType getDataType()
           
 org.opcfoundation.ua.builtintypes.NodeId getDataTypeId()
           
 org.opcfoundation.ua.builtintypes.DataValue getValue()
           
 Integer getValueRank()
          This Attribute indicates whether the Value Attribute of the Variable is an array and how many dimensions the array has.
 void setArrayDimensions(org.opcfoundation.ua.builtintypes.UnsignedInteger[] ArrayDimensions)
          This Attribute specifies the length of each dimension for an array value.
 void setDataType(UaType dataType)
          Set the Data Type node.
 void setDataTypeId(org.opcfoundation.ua.builtintypes.NodeId dataTypeId)
          Set the Data Type.
 void setValue(org.opcfoundation.ua.builtintypes.DataValue value)
          The default Value for instances of this type.
 void setValue(Object value)
          Set value.
 void setValueRank(int valueRank)
          This Attribute indicates whether the Value Attribute of the VariableType is an array and how many dimensions the array has.
 
Methods inherited from interface com.prosysopc.ua.nodes.UaNode
addComponent, addProperty, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeClass, getNodeId, getNodeVersion, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute
 

Method Detail

getArrayDimensions

org.opcfoundation.ua.builtintypes.UnsignedInteger[] getArrayDimensions()
This Attribute specifies the length of each dimension for an array value. The Attribute is intended to describe the capability of the Variable, not the current size.

The number of elements shall be equal to the value of the ValueRank Attribute. Shall be null if ValueRank <= 0.

A value of 0 for an individual dimension indicates that the dimension has a variable length.

For example, if a Variable is defined by the following C array: Int32 myArray[346];

then this Variable's DataType would point to an Int32, the Variable's ValueRank has the value 1 and the ArrayDimensions is an array with one entry having the value 346.

Returns:
the array dimensions of the variable type or null if this is not a specific array type, i.e. ValueRank <= 0
See Also:
setArrayDimensions(org.opcfoundation.ua.builtintypes.UnsignedInteger[])

getDataType

UaType getDataType()
Returns:
the DataType node, if set.
See Also:
getDataTypeId()

getDataTypeId

org.opcfoundation.ua.builtintypes.NodeId getDataTypeId()
Returns:
NodeId of the data type definition for instances of this type.

getValue

org.opcfoundation.ua.builtintypes.DataValue getValue()
Returns:
The default Value for instances of this type.

getValueRank

Integer getValueRank()
This Attribute indicates whether the Value Attribute of the Variable is an array and how many dimensions the array has.

It may have the following values:

Returns:
the value rank
See Also:
setValueRank(int)

setArrayDimensions

void setArrayDimensions(org.opcfoundation.ua.builtintypes.UnsignedInteger[] ArrayDimensions)
This Attribute specifies the length of each dimension for an array value. The Attribute is intended to describe the capability of the VariableType, not the current size.

The number of elements shall be equal to the value of the ValueRank Attribute. Shall be null if ValueRank <= 0.

A value of 0 for an individual dimension indicates that the dimension has a variable length.

For example, if a VariableType is defined by the following array:

Integer[] myArray = new Integer[346];

then this VariableType's DataType would point to the Int32 data type node, the VariableType's ValueRank has the value 1 and the ArrayDimensions is an array with one entry having the value 346.

Parameters:
ArrayDimensions -

setDataType

void setDataType(UaType dataType)
Set the Data Type node.

Parameters:
dataType -
See Also:
setDataTypeId(NodeId)

setDataTypeId

void setDataTypeId(org.opcfoundation.ua.builtintypes.NodeId dataTypeId)
Set the Data Type.

Parameters:
dataTypeId -
See Also:
setDataTypeId(NodeId)

setValue

void setValue(org.opcfoundation.ua.builtintypes.DataValue value)
              throws StatusException
The default Value for instances of this type.

Parameters:
value - the default value to set
Throws:
StatusException

setValue

void setValue(Object value)
              throws StatusException
Set value.

Parameters:
value - a new value
Throws:
StatusException - if the value is invalid for the Value attribute

setValueRank

void setValueRank(int valueRank)
This Attribute indicates whether the Value Attribute of the VariableType is an array and how many dimensions the array has.

It may have the following values:

Parameters:
valueRank - the value rank to set


Copyright © 2018. All rights reserved.