.NET Based OPC UA Client/Server SDK  3.0.10.493
UnifiedAutomation.UaServer.GenericEvent Class Reference

A class that stores the fields for an event fired by the server application. More...

Public Member Functions

 GenericEvent (FilterManager manager)
 Initializes a new instance of the GenericEvent class. More...
 
void Initialize (byte[] eventId, ExpandedNodeId eventType, NodeId sourceNode, string sourceName, EventSeverity severity, LocalizedText message)
 Initializes the event. More...
 
void Set (int handle, IEncodeable value)
 Sets the value for the event field with the specified handle. More...
 
void Set (int handle, Variant value)
 Sets the value for the event field with the specified handle. More...
 
void Set (string browsePath, IEncodeable value)
 Sets the value for the event field with the specified browse path. More...
 
void Set (string browsePath, Variant value)
 Sets the value for the event field with the specified browse path. More...
 
string ToPath (params AbsoluteName[] browseNames)
 Converts the browse names to a browse path. More...
 
string ToPath (params QualifiedName[] browseNames)
 Converts the browse names to a browse path. More...
 
string ToPath (params string[] browseNames)
 Converts the browse names to a browse path. More...
 
Variant Get (params AbsoluteName[] browseNames)
 Gets the field value for the browse path. More...
 
Variant Get (params QualifiedName[] browseNames)
 Gets the field value for the browse path. More...
 
Variant Get (params string[] browseNames)
 Gets the field value for the browse path. More...
 
Variant Get (int handle)
 Gets the field value for the handle More...
 
Variant Get (SimpleAttributeOperand clause)
 Gets the field value for the operand. More...
 

Properties

byte[] EventId [get, set]
 Generated by the server to uniquely identify a particular Event Notification. More...
 
NodeId EventType [get, set]
 Describes the specific type of Event. More...
 
NodeId SourceNode [get, set]
 Identifies the Node that the Event originated from. More...
 
DateTime Time [get, set]
 Provides the time the Event occurred. More...
 
INodeAccessInfo NodeAccessInfo [get, set]
 Using a NodeAccessInfo can restrict the access of an event to single scopes. More...
 
FilterManager Manager [get]
 Gets the manager. More...
 

Detailed Description

A class that stores the fields for an event fired by the server application.

This interface is used to pass an event to ServerManager.ReportEvent for distribution to interested clients.

The class BaseEventModel provides the method UpdateEvent, setting all event fields at a GenericEvent which are defined by an EventType.

Constructor & Destructor Documentation

UnifiedAutomation.UaServer.GenericEvent.GenericEvent ( FilterManager  manager)
inline

Initializes a new instance of the GenericEvent class.

Parameters
managerThe manager.

Member Function Documentation

Variant UnifiedAutomation.UaServer.GenericEvent.Get ( params AbsoluteName[]  browseNames)
inline

Gets the field value for the browse path.

Parameters
browseNamesThe browse names.
Returns
Variant UnifiedAutomation.UaServer.GenericEvent.Get ( params QualifiedName[]  browseNames)
inline

Gets the field value for the browse path.

Parameters
browseNamesThe browse names.
Returns
Variant UnifiedAutomation.UaServer.GenericEvent.Get ( params string[]  browseNames)
inline

Gets the field value for the browse path.

Parameters
browseNamesThe browse names.
Returns
Variant UnifiedAutomation.UaServer.GenericEvent.Get ( int  handle)
inline

Gets the field value for the handle

Parameters
handleThe handle.
Returns
Variant UnifiedAutomation.UaServer.GenericEvent.Get ( SimpleAttributeOperand  clause)
inline

Gets the field value for the operand.

Parameters
clauseThe clause.
Returns
void UnifiedAutomation.UaServer.GenericEvent.Initialize ( byte[]  eventId,
ExpandedNodeId  eventType,
NodeId  sourceNode,
string  sourceName,
EventSeverity  severity,
LocalizedText  message 
)
inline

Initializes the event.

Parameters
eventIdThe event id.
eventTypeType of the event.
sourceNodeThe source node.
sourceNameName of the source.
severityThe severity.
messageThe message.
void UnifiedAutomation.UaServer.GenericEvent.Set ( int  handle,
IEncodeable  value 
)
inline

Sets the value for the event field with the specified handle.

Parameters
handleThe handle.
valueThe value.
void UnifiedAutomation.UaServer.GenericEvent.Set ( int  handle,
Variant  value 
)
inline

Sets the value for the event field with the specified handle.

Parameters
handleThe handle.
valueThe value.
void UnifiedAutomation.UaServer.GenericEvent.Set ( string  browsePath,
IEncodeable  value 
)
inline

Sets the value for the event field with the specified browse path.

Parameters
browsePathThe browse path.
valueThe value.
void UnifiedAutomation.UaServer.GenericEvent.Set ( string  browsePath,
Variant  value 
)
inline

Sets the value for the event field with the specified browse path.

Parameters
browsePathThe browse path.
valueThe value.
string UnifiedAutomation.UaServer.GenericEvent.ToPath ( params AbsoluteName[]  browseNames)
inline

Converts the browse names to a browse path.

Parameters
browseNamesThe browse names.
Returns
string UnifiedAutomation.UaServer.GenericEvent.ToPath ( params QualifiedName[]  browseNames)
inline

Converts the browse names to a browse path.

Parameters
browseNamesThe browse names.
Returns
string UnifiedAutomation.UaServer.GenericEvent.ToPath ( params string[]  browseNames)
inline

Converts the browse names to a browse path.

Parameters
browseNamesThe browse names.
Returns

Property Documentation

byte [] UnifiedAutomation.UaServer.GenericEvent.EventId
getset

Generated by the server to uniquely identify a particular Event Notification.

The Server is responsible to ensure that each Event has its unique EventId. It may do this, for example, by putting GUIDs into the ByteString. Clients can use the EventId to assist in minimizing or eliminating gaps and overlaps that may occur during a redundancy failover. The EventId shall always be returned as value and the Server is not allowed to return a StatusCode for the EventId indicating an error.

NodeId UnifiedAutomation.UaServer.GenericEvent.EventType
getset

Describes the specific type of Event.

The EventType shall always be returned as value and the Server is not allowed to return a StatusCode for the EventType indicating an error.

FilterManager UnifiedAutomation.UaServer.GenericEvent.Manager
get

Gets the manager.

The manager.

INodeAccessInfo UnifiedAutomation.UaServer.GenericEvent.NodeAccessInfo
getset

Using a NodeAccessInfo can restrict the access of an event to single scopes.

NodeId UnifiedAutomation.UaServer.GenericEvent.SourceNode
getset

Identifies the Node that the Event originated from.

If the Event is not specific to a Node, the NodeId is set to null. Some subtypes of this BaseEventType may define additional rules for SourceNode.

DateTime UnifiedAutomation.UaServer.GenericEvent.Time
getset

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. Once set, intermediate OPC UA Servers shall not alter the value.


The documentation for this class was generated from the following file: