public class EventManagerUaNode extends EventManager
listener, RESULT_OK| Constructor and Description |
|---|
EventManagerUaNode(NodeManager nodeManager) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acknowledge(ServiceContext serviceContext,
AcknowledgeableConditionTypeNode condition,
ByteString eventId,
LocalizedText comment) |
protected boolean |
addComment(ServiceContext serviceContext,
ConditionTypeNode condition,
ByteString eventId,
LocalizedText comment) |
protected void |
collectConditions(UaNode node,
Collection<ConditionTypeNode> conditions) |
protected boolean |
confirm(ServiceContext serviceContext,
AcknowledgeableConditionTypeNode condition,
ByteString eventId,
LocalizedText comment) |
protected boolean |
disable(ServiceContext serviceContext,
ConditionTypeNode condition) |
protected boolean |
enable(ServiceContext serviceContext,
ConditionTypeNode condition) |
Collection<ConditionTypeNode> |
getConditions()
Get a list of all Condition nodes in the server address space.
|
Collection<ConditionTypeNode> |
getConditions(NodeId nodeId)
Get a list of all Condition nodes in the server address space that are listenable from the
specified node.
|
Collection<ConditionTypeNode> |
getConditions(UaNode node)
Get a list of all Condition nodes in the server address space that are listenable from the
specified node.
|
boolean |
onCall(ServiceContext serviceContext,
NodeId objectId,
UaNode object,
NodeId methodId,
UaMethod method,
Variant[] inputArguments,
StatusCode[] inputArgumentResults,
DiagnosticInfo[] inputArgumentDiagnosticInfos,
Variant[] output)
A method call notification.
|
protected boolean |
oneshotshelve(ServiceContext serviceContext,
AlarmConditionTypeNode condition,
ShelvedStateMachineTypeNode stateMachine) |
protected void |
refreshItem(MonitoredEventItem eventItem)
Handle refreshing the item in the context of a ConditionRefresh or ConditionRefresh2 Method
Call.
|
protected boolean |
requireUaNode() |
protected boolean |
timedshelve(ServiceContext serviceContext,
AlarmConditionTypeNode condition,
ShelvedStateMachineTypeNode stateMachine,
double shelvingTime) |
protected boolean |
unshelve(ServiceContext serviceContext,
AlarmConditionTypeNode condition,
ShelvedStateMachineTypeNode stateMachine) |
afterCreateMonitoredEventItem, afterDeleteMonitoredEventItem, afterModifyMonitoredEventItem, createEventId, createFullEventId, createMonitoredEventItem, deleteMonitoredEventItem, extractUserEventId, fireConditionRefresh, fireConditionRefresh2, getListener, getNodeManager, methodEqualsIdOrName, modifyMonitoredEventItem, refreshItems, setListenerarrayDimensionsMatch, checkIsMethod, checkIsValueNode, checkIsVariable, checkIsVariableOrVariableType, dataTypeEquals, getNode, getNode, getNode, getNode, getNodeManagerTable, getServer, getSubscriptionManager, invalidatePreviousNodeCache, isValueNode, isVariable, listenerErrorpublic EventManagerUaNode(NodeManager nodeManager)
nodeManager - public Collection<ConditionTypeNode> getConditions()
The method will search for condition nodes that are connected to the Server object via HasCondition and HasEventSource/HasNotifier (forward) references.
public Collection<ConditionTypeNode> getConditions(NodeId nodeId) throws StatusException
The method will search for condition nodes that are connected to the specified node via HasCondition and HasEventSource/HasNotifier (forward) references.
The method finds the node object corresponding to the nodeId and calls the corresponding method with the node.
nodeId - ID of the root node for the listStatusException - if the nodeId does not correspond to a nodepublic Collection<ConditionTypeNode> getConditions(UaNode node)
The method will search for condition nodes that are connected to the specified node via HasCondition and HasEventSource/HasNotifier (forward) references.
node - Root node for the listpublic boolean onCall(ServiceContext serviceContext, NodeId objectId, UaNode object, NodeId methodId, UaMethod method, Variant[] inputArguments, StatusCode[] inputArgumentResults, DiagnosticInfo[] inputArgumentDiagnosticInfos, Variant[] output) throws StatusException
CallableListenerUse onCall to check whether the called method is the one that you handle. If so, return true, and set the outputs. Do not create a new array for the outputs, just assign your values in there - it is already created for the length defined by the OutputArguments of the UaMethod.
If you find errors in the inputArguments, fill in the inputArgumentResults and inputArgumentDiagnosticInfos respectively. They are also preallocated.
onCall in interface CallableListeneronCall in class EventManagerobjectId - the ID of the node whose method is being calledobject - the object node whose method is being called, if availablemethodId - the ID of the method being calledmethod - the method node being called, if availableinputArguments - input argument valuesinputArgumentResults - room for argument errors. Fill in the array if you encounter errors
in the values.inputArgumentDiagnosticInfos - room for diagnostic info, in case of errors.output - room for output values. The array is pre-created, so just fill in the values.StatusException - if there are errors in the method handling. For example, if you set
inputArgumentResults, you should throw a StatusException with
StatusCodes.Bad_InvalidArgumentprotected boolean acknowledge(ServiceContext serviceContext, AcknowledgeableConditionTypeNode condition, ByteString eventId, LocalizedText comment) throws StatusException
StatusExceptionprotected boolean addComment(ServiceContext serviceContext, ConditionTypeNode condition, ByteString eventId, LocalizedText comment) throws StatusException
StatusExceptionprotected void collectConditions(UaNode node, Collection<ConditionTypeNode> conditions)
protected boolean confirm(ServiceContext serviceContext, AcknowledgeableConditionTypeNode condition, ByteString eventId, LocalizedText comment) throws StatusException
StatusExceptionprotected boolean disable(ServiceContext serviceContext, ConditionTypeNode condition) throws StatusException
StatusExceptionprotected boolean enable(ServiceContext serviceContext, ConditionTypeNode condition) throws StatusException
StatusExceptionprotected boolean oneshotshelve(ServiceContext serviceContext, AlarmConditionTypeNode condition, ShelvedStateMachineTypeNode stateMachine) throws StatusException
StatusExceptionprotected void refreshItem(MonitoredEventItem eventItem)
EventManagerrefreshItem in class EventManagerprotected boolean requireUaNode()
requireUaNode in class ServiceManagerBaseprotected boolean timedshelve(ServiceContext serviceContext, AlarmConditionTypeNode condition, ShelvedStateMachineTypeNode stateMachine, double shelvingTime) throws StatusException
StatusExceptionprotected boolean unshelve(ServiceContext serviceContext, AlarmConditionTypeNode condition, ShelvedStateMachineTypeNode stateMachine) throws StatusException
StatusExceptionCopyright © 2026. All rights reserved.