Class UaVariableTypeNode
- java.lang.Object
-
- com.plccom.opc.ua.client.application.model.nodes.UaNode
-
- com.plccom.opc.ua.client.application.model.nodes.UaVariableTypeNode
-
public class UaVariableTypeNode extends UaNode
PLCcom sdk UaReferenceTypeNode Implementation for Opc Ua, with the UaReferenceTypeNode object you can read or write Attributes or values from cache or directly from connected ua server- Author:
- Indi.An GmbH, www.indi-an.com, support@indi-an.com
-
-
Constructor Summary
Constructors Constructor Description UaVariableTypeNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)Standard constructor for a UaVariableTypeNode instances
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.plccom.opc.ua.builtintypes.UnsignedInteger[]getArrayDimensions()Returns the attribute ArrayDimensions from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.NodeIdgetDataType()Returns the attribute value from cache or directly from connected ua serverBooleangetIsAbstract()Returns the attribute IsAbstract from cache or directly from connected ua serverObjectgetValue()Returns the attribute value from cache or directly from connected ua serverIntegergetValueRank()Returns the attribute ValueRank from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.DataValuereadArrayDimensions()Reads the complete datavalue of attribute ArrayDimensions this node from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.DataValuereadDataType()Reads the complete datavalue of attribute DataType this node from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.DataValuereadIsAbstract()Reads the complete datavalue of attribute IsAbstract this node from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.DataValuereadValue()Reads the complete datavalue of attribute Value this node from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.DataValuereadValueRank()Reads the complete datavalue of attribute ValueRank this node from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.StatusCodesetArrayDimensions(com.plccom.opc.ua.builtintypes.UnsignedInteger[] arrayDimensions)Sets the attribute arrayDimensions of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetDataType(com.plccom.opc.ua.builtintypes.NodeId dataType)Sets the attribute dataType of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetIsAbstract(boolean isAbstract)Sets the attribute isAbstract of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetValue(Object value)Sets the attribute value of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodesetValueRank(int valueRank)Sets the attribute valueRank of this node at connected ua server and refreshing the nodecachecom.plccom.opc.ua.builtintypes.StatusCodewriteArrayDimensions(com.plccom.opc.ua.builtintypes.DataValue value)Writes the ArrayDimensions attributecom.plccom.opc.ua.builtintypes.StatusCodewriteDataType(com.plccom.opc.ua.builtintypes.DataValue value)Writes the DataType attributecom.plccom.opc.ua.builtintypes.StatusCodewriteIsAbstract(com.plccom.opc.ua.builtintypes.DataValue value)Writes the IsAbstract attributecom.plccom.opc.ua.builtintypes.StatusCodewriteValue(com.plccom.opc.ua.builtintypes.DataValue value)Writes the Value attributecom.plccom.opc.ua.builtintypes.StatusCodewriteValueRank(com.plccom.opc.ua.builtintypes.DataValue value)Writes the ValueRank attribute-
Methods inherited from class com.plccom.opc.ua.client.application.model.nodes.UaNode
getBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, readBrowseName, readDescription, readDisplayName, readNodeClass, readNodeId, readUserWriteMask, readWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMask, writeBrowseName, writeDescription, writeDisplayName, writeNodeClass, writeNodeId, writeUserWriteMask, writeWriteMask
-
-
-
-
Constructor Detail
-
UaVariableTypeNode
public UaVariableTypeNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)
Standard constructor for a UaVariableTypeNode instances- Parameters:
client- a client instancenodeId- the based nodeId
-
-
Method Detail
-
getValue
public Object getValue() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute value from cache or directly from connected ua server- Returns:
- the value attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
getDataType
public com.plccom.opc.ua.builtintypes.NodeId getDataType() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute value from cache or directly from connected ua server- Returns:
- the value attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
getValueRank
public Integer getValueRank() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute ValueRank from cache or directly from connected ua server- Returns:
- the ValueRank attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
getArrayDimensions
public com.plccom.opc.ua.builtintypes.UnsignedInteger[] getArrayDimensions() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute ArrayDimensions from cache or directly from connected ua server- Returns:
- the ArrayDimensions attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
getIsAbstract
public Boolean getIsAbstract() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the attribute IsAbstract from cache or directly from connected ua server- Returns:
- the IsAbstract attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setValue
public com.plccom.opc.ua.builtintypes.StatusCode setValue(Object value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the attribute value of this node at connected ua server and refreshing the nodecache- Parameters:
value- the value attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
setDataType
public com.plccom.opc.ua.builtintypes.StatusCode setDataType(com.plccom.opc.ua.builtintypes.NodeId dataType) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute dataType of this node at connected ua server and refreshing the nodecache- Parameters:
dataType- the dataType attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
setValueRank
public com.plccom.opc.ua.builtintypes.StatusCode setValueRank(int valueRank) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute valueRank of this node at connected ua server and refreshing the nodecache- Parameters:
valueRank- the setValueRank attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
setArrayDimensions
public com.plccom.opc.ua.builtintypes.StatusCode setArrayDimensions(com.plccom.opc.ua.builtintypes.UnsignedInteger[] arrayDimensions) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute arrayDimensions of this node at connected ua server and refreshing the nodecache- Parameters:
arrayDimensions- the arrayDimensions attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
setIsAbstract
public com.plccom.opc.ua.builtintypes.StatusCode setIsAbstract(boolean isAbstract) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute isAbstract of this node at connected ua server and refreshing the nodecache- Parameters:
isAbstract- the isAbstract attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
readValue
public com.plccom.opc.ua.builtintypes.DataValue readValue() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReads the complete datavalue of attribute Value this node from cache or directly from connected ua server- Returns:
- a datavalue object with the attribute Value
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
readDataType
public com.plccom.opc.ua.builtintypes.DataValue readDataType() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReads the complete datavalue of attribute DataType this node from cache or directly from connected ua server- Returns:
- a datavalue object with the attribute DataType
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
readValueRank
public com.plccom.opc.ua.builtintypes.DataValue readValueRank() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReads the complete datavalue of attribute ValueRank this node from cache or directly from connected ua server- Returns:
- a datavalue object with the attribute ValueRank
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
readArrayDimensions
public com.plccom.opc.ua.builtintypes.DataValue readArrayDimensions() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReads the complete datavalue of attribute ArrayDimensions this node from cache or directly from connected ua server- Returns:
- a datavalue object with the attribute ArrayDimensions
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
readIsAbstract
public com.plccom.opc.ua.builtintypes.DataValue readIsAbstract() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReads the complete datavalue of attribute IsAbstract this node from cache or directly from connected ua server- Returns:
- a datavalue object with the attribute IsAbstract
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
writeValue
public com.plccom.opc.ua.builtintypes.StatusCode writeValue(com.plccom.opc.ua.builtintypes.DataValue value) throws com.plccom.opc.ua.common.ServiceResultExceptionWrites the Value attribute- Parameters:
value- a datavalue object with informations to write- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
writeDataType
public com.plccom.opc.ua.builtintypes.StatusCode writeDataType(com.plccom.opc.ua.builtintypes.DataValue value) throws com.plccom.opc.ua.common.ServiceResultExceptionWrites the DataType attribute- Parameters:
value- a datavalue object with informations to write- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
writeValueRank
public com.plccom.opc.ua.builtintypes.StatusCode writeValueRank(com.plccom.opc.ua.builtintypes.DataValue value) throws com.plccom.opc.ua.common.ServiceResultExceptionWrites the ValueRank attribute- Parameters:
value- a datavalue object with informations to write- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
writeArrayDimensions
public com.plccom.opc.ua.builtintypes.StatusCode writeArrayDimensions(com.plccom.opc.ua.builtintypes.DataValue value) throws com.plccom.opc.ua.common.ServiceResultExceptionWrites the ArrayDimensions attribute- Parameters:
value- a datavalue object with informations to write- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
writeIsAbstract
public com.plccom.opc.ua.builtintypes.StatusCode writeIsAbstract(com.plccom.opc.ua.builtintypes.DataValue value) throws com.plccom.opc.ua.common.ServiceResultExceptionWrites the IsAbstract attribute- Parameters:
value- a datavalue object with informations to write- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
-