Hierarchy (view full)

Properties

historizingNodes?: {
    [key: string]: UAVariable;
}
isFrugal: boolean

when this flag is set, properties and components are not added as javascript member of the UAObject/UAVariable node

rootFolder: UARootFolder
historizerFactory: any

Methods

  • construct a simple javascript object with all the default properties of the event

    Parameters

    Returns IEventData

    result.$eventDataSource the event type node

  • Parameters

    Returns void

  • Returns void

  • Internal

    walk up the hierarchy of objects until a view is found objects may belong to multiples views. Note: this method doesn't return the main view => Server object.

    Parameters

    Returns UAView[]

  • find an EventType node in the address space

    Parameters

    • eventTypeId: NodeIdLike | UAObjectType

      the eventType to find

    • OptionalnamespaceIndex: number

      an optional index to restrict the search in a given namespace

    Returns null | UAObjectType

    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.
    • if eventTypeId is of type NodeId, the namespaceIndex shall not be specified
     const evtType = addressSpace.findEventType("AuditEventType");
    
  • find an EventType node in the address space

    Parameters

    • objectTypeId: NodeIdLike

      the eventType to find

    • OptionalnamespaceIndex: number

      an optional index to restrict the search in a given namespace

    Returns null | UAObjectType

    the EventType found or null.

    notes:

    • if objectTypeId is of type NodeId, the namespaceIndex shall not be specified
        const objectType = addressSpace.findObjectType("ns=0;i=58");
    objectType.browseName.toString().should.eql("BaseObjectType");

    const objectType = addressSpace.findObjectType("BaseObjectType");
    objectType.browseName.toString().should.eql("BaseObjectType");

    const objectType = addressSpace.findObjectType(resolveNodeId("ns=0;i=58"));
    objectType.browseName.toString().should.eql("BaseObjectType");

    const objectType = addressSpace.findObjectType("CustomObjectType",36);
    objectType.nodeId.namespace.should.eql(36);
    objectType.browseName.toString().should.eql("BaseObjectType");

    const objectType = addressSpace.findObjectType("36:CustomObjectType");
    objectType.nodeId.namespace.should.eql(36);
    objectType.browseName.toString().should.eql("BaseObjectType");
  • Parameters

    • variableTypeId: NodeIdLike
    • OptionalnamespaceIndex: number

    Returns null | UAVariableType

        const variableType = addressSpace.findVariableType("ns=0;i=62");
    variableType.browseName.toString().should.eql("BaseVariableType");

    const variableType = addressSpace.findVariableType("BaseVariableType");
    variableType.browseName.toString().should.eql("BaseVariableType");

    const variableType = addressSpace.findVariableType(resolveNodeId("ns=0;i=62"));
    variableType.browseName.toString().should.eql("BaseVariableType");
  • get the extension object constructor from a DataType nodeID or UADataType object

    Parameters

    Returns AnyConstructable

  • Parameters

    • indexOrName: string | number

    Returns INamespace

  • Parameters

    • namespaceUri: string

    Returns number

  • Parameters

    • namespaceIndex: number

    Returns string

  • Parameters

    • referenceType: string

    Returns string

  • register a task that will be executed just before the address space is disposed.

    Parameters

    Returns void

  • shutdown the address space by executingthe registered shutdown tasks.

    Returns Promise<void>

    registerShutdownTask, dispose

  • Returns AddressSpace