com.prosysopc.ua.types.opcua.server
Class SemanticChangeEventTypeNode
java.lang.Object
com.prosysopc.ua.nodes.AbstractUaNode
com.prosysopc.ua.server.nodes.ServerNode
com.prosysopc.ua.server.nodes.BaseNode
com.prosysopc.ua.server.nodes.UaInstanceNode
com.prosysopc.ua.server.nodes.UaObjectNode
com.prosysopc.ua.server.nodes.AbstractGeneratedObjectNode
com.prosysopc.ua.types.opcua.server.BaseObjectTypeNode
com.prosysopc.ua.types.opcua.server.BaseEventTypeNodeBase
com.prosysopc.ua.types.opcua.server.BaseEventTypeNode
com.prosysopc.ua.types.opcua.server.BaseModelChangeEventTypeNodeBase
com.prosysopc.ua.types.opcua.server.BaseModelChangeEventTypeNode
com.prosysopc.ua.types.opcua.server.SemanticChangeEventTypeNodeBase
com.prosysopc.ua.types.opcua.server.SemanticChangeEventTypeNode
- All Implemented Interfaces:
- UaInstance, UaNode, UaObject, GeneratedNode, UaCallable, BaseEventType, BaseInstanceType, BaseModelChangeEventType, BaseObjectType, SemanticChangeEventType
public class SemanticChangeEventTypeNode
- extends SemanticChangeEventTypeNodeBase
|
Constructor Summary |
protected |
SemanticChangeEventTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
|
|
Method Summary |
void |
afterCreate()
This method is called after NodeBuilder has constructed the instance, it is called for every
sub-node that also implement this interface |
org.opcfoundation.ua.builtintypes.NodeId |
getSourceNode()
The NodeId of the event source. |
void |
setSourceNode(org.opcfoundation.ua.builtintypes.NodeId value)
Define the source node of the semantic change event. |
org.opcfoundation.ua.builtintypes.ByteString |
triggerEvent(org.opcfoundation.ua.builtintypes.DateTime time,
org.opcfoundation.ua.builtintypes.DateTime receiveTime,
org.opcfoundation.ua.builtintypes.ByteString userEventId)
Generates a new event. |
| Methods inherited from class com.prosysopc.ua.types.opcua.server.BaseEventTypeNode |
afterAddReference, getLastEvent, getSource, getSourceName, isDeleteOneShotEvents, isMonitoredForEvents, setDeleteOneShotEvents, setSeverity, setSeverity, setSource, setSourceName, triggerEvent |
| Methods inherited from class com.prosysopc.ua.types.opcua.server.BaseEventTypeNodeBase |
getBaseEventTypeNodeInitializer, getEventId, getEventIdNode, getEventType, getEventTypeNode, getLocalTime, getLocalTimeNode, getMessage, getMessageNode, getReceiveTime, getReceiveTimeNode, getSeverity, getSeverityNode, getSourceNameNode, getSourceNodeNode, getTime, getTimeNode, setBaseEventTypeNodeInitializer, setEventId, setEventType, setLocalTime, setMessage, setReceiveTime, setTime |
| Methods inherited from class com.prosysopc.ua.server.nodes.UaObjectNode |
addCallListener, callMethod, deleteIfNodeExists, getAttributes, getAttributes, getEventNotifier, getIcon, getNodeClass, initSupportedAttributes, readAttributeValue, removeCallListener, setAttributes, setEventNotifier, setIcon, toString, writeAttributeValue |
| Methods inherited from class com.prosysopc.ua.server.nodes.BaseNode |
addPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeVersion, getNodeVersionValue, getProperties, getProperty, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, hasUserWriteAccess, hasWriteAccess, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setBrowseName, setDescription, setDisplayName, setNodeVersionValue, setPropertyValue, setUserWriteMask, setWriteMask, writeAttribute |
| Methods inherited from class com.prosysopc.ua.server.nodes.ServerNode |
addComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, hashCode, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChain |
| Methods inherited from interface com.prosysopc.ua.types.opcua.BaseEventType |
getEventId, getEventIdNode, getEventType, getEventTypeNode, getLocalTime, getLocalTimeNode, getMessage, getMessageNode, getReceiveTime, getReceiveTimeNode, getSeverity, getSeverityNode, getSourceName, getSourceNameNode, getSourceNodeNode, getTime, getTimeNode, setEventId, setEventType, setLocalTime, setMessage, setReceiveTime, setSeverity, setSourceName, setTime |
| 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 |
SemanticChangeEventTypeNode
protected SemanticChangeEventTypeNode(NodeManagerUaNode nodeManager,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
afterCreate
public void afterCreate()
- Description copied from interface:
GeneratedNode
- This method is called after NodeBuilder has constructed the instance, it is called for every
sub-node that also implement this interface
- Specified by:
afterCreate in interface GeneratedNode- Overrides:
afterCreate in class SemanticChangeEventTypeNodeBase
getSourceNode
public org.opcfoundation.ua.builtintypes.NodeId getSourceNode()
- Description copied from class:
BaseEventTypeNode
- The NodeId of the event source.
- Specified by:
getSourceNode in interface BaseEventType- Overrides:
getSourceNode in class BaseEventTypeNode
- Returns:
- the sourceNode
setSourceNode
public void setSourceNode(org.opcfoundation.ua.builtintypes.NodeId value)
- Define the source node of the semantic change event.
- Specified by:
setSourceNode in interface BaseEventType- Overrides:
setSourceNode in class BaseEventTypeNodeBase
- Parameters:
source - must be the NodeId of UaView or Server. Use null to set it to the Server NodeId
triggerEvent
public org.opcfoundation.ua.builtintypes.ByteString triggerEvent(org.opcfoundation.ua.builtintypes.DateTime time,
org.opcfoundation.ua.builtintypes.DateTime receiveTime,
org.opcfoundation.ua.builtintypes.ByteString userEventId)
- Description copied from class:
BaseEventTypeNode
- Generates a new event. The event is triggered to the clients that are listening to it.
- Overrides:
triggerEvent in class BaseEventTypeNode
- Parameters:
time - Time provides the time the Event occurred. This value is set as close to the event
generator as possible. It often comes from the underlying system or device. If 'null' is
provided, currentTime is used.receiveTime - ReceiveTime provides the time the OPC UA Server received the Event from the
underlying device of another Server. If 'null' is provided, time is also used
as receiveTime.userEventId - a user specific part that will be added to the eventId that is generated
automatically for each event. The userEventId helps you to identify the event that you
created from your application, for example when an AcknowledgeableConditionType
is acknowledged. You can use EventManager.createEventId(long) to create a custom
ID from an integer value.
- Returns:
- the fullEventId generated for the event, it is composed of a system eventId generated
with
#createEventId(long) appended by the userEventId (if any)
Copyright © 2018. All rights reserved.