Class BaseEventNode
- 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.BaseEventNode
-
- Direct Known Subclasses:
AuditEventNode,BaseModelChangeEventNode,ConditionNode,EventQueueOverflowEventNode,ProgressEventNode,SystemEventNode,TransitionEventNode
public class BaseEventNode extends BaseObjectNode
PLCcom sdk BaseEventNode Implementation for Opc Ua, with the BaseEventNode 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 BaseEventNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)Standard constructor for a BaseEventNode instances
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.plccom.opc.ua.builtintypes.ByteStringgetEventId()returns the event idcom.plccom.opc.ua.builtintypes.NodeIdgetEventType()Returns the event typecom.plccom.opc.ua.core.TimeZoneDataTypegetLocalTime()Returns the local time valuecom.plccom.opc.ua.builtintypes.LocalizedTextgetMessage()Returns the message valuecom.plccom.opc.ua.builtintypes.DateTimegetReceiveTime()Returns the receive time valuecom.plccom.opc.ua.builtintypes.UnsignedShortgetSeverity()Returns the severityStringgetSourceName()Returns the source namecom.plccom.opc.ua.builtintypes.NodeIdgetSourceNode()Returns the source nodecom.plccom.opc.ua.builtintypes.DateTimegetTime()Returns the time valuecom.plccom.opc.ua.builtintypes.StatusCodesetEventId(com.plccom.opc.ua.builtintypes.ByteString value)Sets the event idcom.plccom.opc.ua.builtintypes.StatusCodesetEventType(com.plccom.opc.ua.builtintypes.NodeId value)Sets the event typecom.plccom.opc.ua.builtintypes.StatusCodesetLocalTime(com.plccom.opc.ua.core.TimeZoneDataType value)Sets the local time valuecom.plccom.opc.ua.builtintypes.StatusCodesetMessage(com.plccom.opc.ua.builtintypes.LocalizedText value)Sets the message valuecom.plccom.opc.ua.builtintypes.StatusCodesetReceiveTime(com.plccom.opc.ua.builtintypes.DateTime value)Sets the receive time valuecom.plccom.opc.ua.builtintypes.StatusCodesetSeverity(com.plccom.opc.ua.builtintypes.UnsignedShort value)Sets the severitycom.plccom.opc.ua.builtintypes.StatusCodesetSourceName(String value)Sets the source namecom.plccom.opc.ua.builtintypes.StatusCodesetSourceNode(com.plccom.opc.ua.builtintypes.NodeId value)Sets the source nodecom.plccom.opc.ua.builtintypes.StatusCodesetTime(com.plccom.opc.ua.builtintypes.DateTime value)Sets the receive time value-
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
-
BaseEventNode
public BaseEventNode(UaClient client, com.plccom.opc.ua.builtintypes.NodeId nodeId)
Standard constructor for a BaseEventNode instances- Parameters:
client- a client instancenodeId- the based nodeId
-
-
Method Detail
-
getEventId
public com.plccom.opc.ua.builtintypes.ByteString getEventId() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionreturns the event id- Returns:
- the event id
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setEventId
public com.plccom.opc.ua.builtintypes.StatusCode setEventId(com.plccom.opc.ua.builtintypes.ByteString value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the event id- Parameters:
value- the event id- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getEventType
public com.plccom.opc.ua.builtintypes.NodeId getEventType() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the event type- Returns:
- the event type
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setEventType
public com.plccom.opc.ua.builtintypes.StatusCode setEventType(com.plccom.opc.ua.builtintypes.NodeId value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the event type- Parameters:
value- the event type- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getSourceNode
public com.plccom.opc.ua.builtintypes.NodeId getSourceNode() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the source node- Returns:
- the source node
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setSourceNode
public com.plccom.opc.ua.builtintypes.StatusCode setSourceNode(com.plccom.opc.ua.builtintypes.NodeId value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the source node- Parameters:
value- the source node- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getSourceName
public String getSourceName() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultException
Returns the source name- Returns:
- the source name
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setSourceName
public com.plccom.opc.ua.builtintypes.StatusCode setSourceName(String value) throws com.plccom.opc.ua.common.ServiceResultException
Sets the source name- Parameters:
value- the source name- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getTime
public com.plccom.opc.ua.builtintypes.DateTime getTime() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the time value- Returns:
- the time value
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setTime
public com.plccom.opc.ua.builtintypes.StatusCode setTime(com.plccom.opc.ua.builtintypes.DateTime value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the receive time value- Parameters:
value- the time value- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getReceiveTime
public com.plccom.opc.ua.builtintypes.DateTime getReceiveTime() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the receive time value- Returns:
- the receive time value
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setReceiveTime
public com.plccom.opc.ua.builtintypes.StatusCode setReceiveTime(com.plccom.opc.ua.builtintypes.DateTime value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the receive time value- Parameters:
value- the receive time value- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getLocalTime
public com.plccom.opc.ua.core.TimeZoneDataType getLocalTime() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the local time value- Returns:
- the local time value
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setLocalTime
public com.plccom.opc.ua.builtintypes.StatusCode setLocalTime(com.plccom.opc.ua.core.TimeZoneDataType value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the local time value- Parameters:
value- the local time value- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getMessage
public com.plccom.opc.ua.builtintypes.LocalizedText getMessage() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the message value- Returns:
- the message value
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setMessage
public com.plccom.opc.ua.builtintypes.StatusCode setMessage(com.plccom.opc.ua.builtintypes.LocalizedText value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the message value- Parameters:
value- the message value- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
getSeverity
public com.plccom.opc.ua.builtintypes.UnsignedShort getSeverity() throws com.plccom.opc.ua.common.ServiceFaultException, com.plccom.opc.ua.common.ServiceResultExceptionReturns the severity- Returns:
- the severity
- Throws:
com.plccom.opc.ua.common.ServiceFaultException- on error while executing the operationcom.plccom.opc.ua.common.ServiceResultException- on communication error
-
setSeverity
public com.plccom.opc.ua.builtintypes.StatusCode setSeverity(com.plccom.opc.ua.builtintypes.UnsignedShort value) throws com.plccom.opc.ua.common.ServiceResultExceptionSets the severity- Parameters:
value- the severity- Returns:
- a StatusCode object
- Throws:
com.plccom.opc.ua.common.ServiceResultException- on communication error
-
-