Class StateNode
- java.lang.Object
-
- com.plccom.opc.ua.client.application.model.nodes.UaNode
-
- com.plccom.opc.ua.client.application.model.nodes.UaObjectNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.BaseObjectNode
-
- com.plccom.opc.ua.client.application.model.nodes.objects.StateNode
-
- Direct Known Subclasses:
InitialStateNode
public class StateNode extends BaseObjectNode
PLCcom sdk StateNode Implementation for Opc Ua- Author:
- Indi.An GmbH, www.indi-an.com, support@indi-an.com
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.plccom.opc.ua.builtintypes.UnsignedIntegergetStateNumber()Returns the attribute STATE_NUMBER from cache or directly from connected ua servercom.plccom.opc.ua.builtintypes.StatusCodesetStateNumber(com.plccom.opc.ua.builtintypes.UnsignedInteger value)Sets the attribute STATE_NUMBER of this node at connected ua server and refreshing the nodecache-
Methods inherited from class com.plccom.opc.ua.client.application.model.nodes.UaObjectNode
browseObjectType, browseVariable, getEventNotifier, readEventNotifier, setEventNotifier, writeEventNotifier
-
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
-
StateNode
public StateNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)
default constructor for StateNode instances- Parameters:
client- the client instancenodeId- the based nodeid
-
-
Method Detail
-
getStateNumber
public com.plccom.opc.ua.builtintypes.UnsignedInteger getStateNumber() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the attribute STATE_NUMBER from cache or directly from connected ua server- Returns:
- the STATE_NUMBER attribute
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setStateNumber
public com.plccom.opc.ua.builtintypes.StatusCode setStateNumber(com.plccom.opc.ua.builtintypes.UnsignedInteger value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the attribute STATE_NUMBER of this node at connected ua server and refreshing the nodecache- Parameters:
value- the STATE_NUMBER attribute- Returns:
- a StatusCode object with result of actual operation
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
-