Public Member Functions |
| EventManagerUaNode () |
| Construction.
|
virtual | ~EventManagerUaNode () |
| Destruction.
|
virtual UaStatus | OnEnable (const ServiceContext &serviceContext, OpcUa::ConditionType *pCondition) |
| Event handlers for Condition method Enable called from UA client.
|
virtual UaStatus | OnDisable (const ServiceContext &serviceContext, OpcUa::ConditionType *pCondition) |
| Event handlers for Condition method Disable called from UA client.
|
virtual UaStatus | OnAddComment (const ServiceContext &serviceContext, OpcUa::ConditionType *pCondition, const UaByteString &EventId, const UaLocalizedText &Comment) |
| Event handlers for Condition method AddComment called from UA client.
|
virtual UaStatus | OnRespond (const ServiceContext &serviceContext, OpcUa::ConditionType *pCondition, OpcUa_UInt32 selectedResponse) |
| Event handlers for DialogConditionType method Respond called from UA client.
|
virtual UaStatus | OnAcknowledge (const ServiceContext &serviceContext, OpcUa::AcknowledgeableConditionType *pCondition, const UaByteString &EventId, const UaLocalizedText &Comment) |
| Event handlers for AcknowledgeableConditionType method Acknowledge called from UA client.
|
virtual UaStatus | OnConfirm (const ServiceContext &serviceContext, OpcUa::AcknowledgeableConditionType *pCondition, const UaByteString &EventId, const UaLocalizedText &Comment) |
| Event handlers for AcknowledgeableConditionType method Confirm called from UA client.
|
virtual UaStatus | OnOneShotShelve (const ServiceContext &serviceContext, OpcUa::AlarmConditionType *pCondition) |
| Event handlers for AlarmConditionType method OneShotShelve called from UA client.
|
virtual UaStatus | OnTimedShelve (const ServiceContext &serviceContext, OpcUa::AlarmConditionType *pCondition, OpcUa_Double ShelvingTime) |
| Event handlers for AlarmConditionType method TimedShelve called from UA client.
|
virtual UaStatus | OnUnshelve (const ServiceContext &serviceContext, OpcUa::AlarmConditionType *pCondition) |
| Event handlers for AlarmConditionType method Unshelve called from UA client.
|
| EventManagerBase () |
| Constructs an EventManagerBase object providing a base implementation of the EventManager interface.
|
virtual | ~EventManagerBase () |
| Destroys the EventManagerBase object.
|
virtual void | shutDownEM () |
| Shut down the event manager instance.
|
virtual void | fireEvent (UaEventData *pEventData) |
| Fire an event with the passed event data.
|
virtual void | registerEventNotifier (const UaNodeId &parentNotifier, const UaNodeId &newNotifier) |
| Add an event notifier to the event notifier tree.
|
virtual void | registerEventSource (const UaNodeId &parentNotifier, const UaNodeId &newSource) |
| Add an event source to the event notifier tree.
|
virtual void | unregisterEventNotifier (const UaNodeId ¬ifier) |
| Removes an event notifier and all of its notifier children and event sources from the event notifier tree.
|
virtual OpcUa_Boolean | isNotifier (const UaNodeId &eventNotifier) const |
| Checks whether the passed NodeId is the NodeId of an event notifier object.
|
virtual OpcUa_Boolean | isEventManagerRootNotifier (const UaNodeId ¬ifier) const |
| Checks whether the passed NodeId is a root notifier for this EventManager.
|
virtual OpcUa_Boolean | inNotifierTree (const UaNodeId &eventNotifier, const UaNodeId &sourceNode, UaEventData *pEventData) const |
| Checks whether the passed sourceNode matches the event notifier or is part of the event notifier tree below the eventNotifier.
|
virtual UaStatus | beginEventTransaction (EventManagerCallback *, const ServiceContext &, OpcUa_UInt32, OpcUa_Handle &) |
| Begins a transaction for changing the list of event monitored items.
|
virtual UaStatus | beginStartMonitoring (OpcUa_Handle, OpcUa_UInt32, OpcUa_UInt32, EventCallback *, const EventMonitoringContextCreate &) |
| Begin to start monitoring.
|
virtual UaStatus | beginModifyMonitoring (OpcUa_Handle, OpcUa_UInt32, OpcUa_UInt32, OpcUa_UInt32, const EventMonitoringContext &) |
| Begins to modify monitoring.
|
virtual UaStatus | beginStopMonitoring (OpcUa_Handle hEventManagerContext, OpcUa_UInt32, OpcUa_UInt32, OpcUa_UInt32) |
| Begins to stop monitoring.
|
virtual UaStatus | finishEventTransaction (OpcUa_Handle) |
| Finishes the transaction for changing the list of event monitored items.
|
virtual UaStatus | beginConditionRefresh (const ServiceContext &serviceContext, OpcUa_UInt32 hEventItem, const UaByteString &, const UaByteString &) |
| This method triggers a refresh for all conditions of interest in the EventManager.
|
virtual UaStatus | sendRefreshRequired (OpcUa_UInt32 hEventItem, const UaByteString &eventId) |
| This method triggers a RefreshRequired event to the clients This event forces the clients to synchronize with the current Condition states by calling ConditionRefresh This method needs to be implemented in every EventManager that is part of a system that provides condition objects.
|
| EventManager () |
| construction
|
virtual | ~EventManager () |
| destruction
|
Additional Inherited Members |
static void | buildEventId (const UaByteString &userEventId, UaByteString &clientEventId) |
| Build a unique EventId that can be send to the client and include a user specific part if provided.
|
static void | getUserEventId (const UaByteString &clientEventId, UaByteString &userEventId) |
| Get the user part of a unique EventId that was sent to the client.
|
static void | registerEventType (const UaNodeId &superType, const UaNodeId &newType) |
| Adds a custom event type to the event type tree.
|
static OpcUa_UInt32 | registerEventField (const UaQualifiedName &fieldName) |
| Add a custom event field to assign a unique index for selection of the field of the custom type.
|
static OpcUa_UInt32 | registerEventField (const UaQualifiedNameArray &path) |
| Add a custom event field to assign a unique index for selection of the field of the custom type.
|
static OpcUa_UInt32 | registerEventField (const UaString &fieldName) |
| Add a custom event field to assign a unique index for selection of the field of the custom type.
|
static void | unregisterEventType (const UaNodeId &typeToRemove) |
| Removes a custom event type from the event type tree.
|
static void | unregisterEventField (OpcUa_UInt32 fieldIndex) |
| Removes a custom event field with the unique index assigned in EventManagerBase::registerEventField().
|
static OpcUa_UInt32 | getFieldIndex (const OpcUa_SimpleAttributeOperand &selectClause, OpcUa_StatusCode &fieldResult) |
| Internal SDK method to get the index of a registered event field.
|
static OpcUa_Boolean | isOfType (const UaNodeId &eventType, const UaNodeId &typeToEvaluate) |
| Internal SDK method used to evaluate the event type with the event filter.
|
static void | clearStaticMembers () |
| Internal SDK method to clean up static members.
|
Implements the EventManager interface for NodeManagerUaNode based node managers This class implements the EventManager interface for nodes managed by the SDK in a NodeManagerUaNode based node manager.
It handles all active event monitored items and all event filtering and event field selection.