APIs

Show:

Constructor

EventData

(
  • eventTypeNode
)

Parameters:

Methods

addEventType

(
  • options
)
UAObjectType

add a new event type to the address space

Parameters:

  • options Object
    • browseName String

      the eventType name

    • [subtypeOf="BaseEventType"] optional
    • [isAbstract= true] optional

Returns:

UAObjectType:

: the object type

Example:

 var evtType = namespace.addEventType({
                         browseName: "MyAuditEventType",
                         subtypeOf:  "AuditEventType"
                     });
                     var myConditionType = namespace.addEventType({
                         browseName: "MyConditionType",
                         subtypeOf:  "ConditionType",
                         isAbstract: false
                     });
                    

findEventType

(
  • eventTypeId
  • namespaceIndex
)
UAObjectType | Null

find an EventType node in the address space

Parameters:

  • eventTypeId String | NodeId | UAObjectType

    the eventType to find

  • namespaceIndex Object

    the namespace index of the event to find

Returns:

UAObjectType | Null:

the EventType found or null.

note:

  • the method with throw an exception if a node is found that is not a BaseEventType or a subtype of it.

Example:

var evtType = addressSpace.findEventType("AuditEventType");
                    

generateEventId

() Variant

EventId is generated by the Server to uniquely identify a particular Event Notification.

Returns:

Variant:

dataType: "ByteString"

readValue

(
  • nodeId
  • selectClause
)
Variant

Parameters:

Returns:

resolveSelectClause

(
  • selectClause
)
NodeId | Null

Parameters:

Returns:

NodeId | Null: