Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AddressSpacePrivate

Hierarchy

  • AddressSpace
    • AddressSpacePrivate

Implemented by

Properties

_condition_refresh_in_progress

_condition_refresh_in_progress: boolean

Optional _readProcessedDetails

_readProcessedDetails: function

Type declaration

Optional historizingNodes

historizingNodes: object

Type declaration

  • [key: string]: UAVariable

isFrugal

isFrugal: boolean

rootFolder

rootFolder: RootFolder

suspendBackReference

suspendBackReference: boolean

Static historizerFactory

historizerFactory: any

Methods

_coerceFolder

  • _coerceFolder(folder: string | BaseNodePublic | NodeId): BaseNodePublic | null
  • Parameters

    • folder: string | BaseNodePublic | NodeId

    Returns BaseNodePublic | null

_coerceNode

  • _coerceNode(node: string | BaseNodePublic | NodeId): BaseNodePublic | null
  • Parameters

    • node: string | BaseNodePublic | NodeId

    Returns BaseNodePublic | null

_coerceType

  • Parameters

    • baseType: string | NodeId | BaseNodePublic
    • topMostBaseType: string
    • nodeClass: NodeClass

    Returns UAVariableType | UAObjectType

_coerceTypeDefinition

  • _coerceTypeDefinition(typeDefinition: string | NodeId): NodeId
  • Parameters

    • typeDefinition: string | NodeId

    Returns NodeId

_coerce_DataType

  • _coerce_DataType(dataType: NodeIdLike | BaseNodePublic): NodeId
  • Parameters

    Returns NodeId

_coerce_VariableTypeIds

  • _coerce_VariableTypeIds(dataType: NodeId | string | BaseNodePublic): NodeId
  • Parameters

    • dataType: NodeId | string | BaseNodePublic

    Returns NodeId

_collectModelChange

  • _collectModelChange(view: UAView | null, data: ModelChangeStructureDataType): void
  • Parameters

    • view: UAView | null
    • data: ModelChangeStructureDataType

    Returns void

_register

  • _register(node: BaseNodePublic): void
  • Parameters

    • node: BaseNodePublic

    Returns void

browsePath

  • browsePath(browsePath: BrowsePath): BrowsePathResult
  • Parameters

    • browsePath: BrowsePath

    Returns BrowsePathResult

browseSingleNode

constructEventData

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

    Parameters

    Returns IEventData

    result.$eventDataSource the event type node

constructExtensionObject

  • constructExtensionObject(dataType: UADataType | NodeId, options?: any): ExtensionObject
  • Parameters

    • dataType: UADataType | NodeId
    • Optional options: any

    Returns ExtensionObject

deleteNode

  • deleteNode(nodeId: NodeId): void
  • Parameters

    • nodeId: NodeId

    Returns void

dispose

  • dispose(): void
  • Returns void

extractRootViews

  • extractRootViews(node: UAObject | UAVariable): UAView[]
  • 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.

    internal

    Parameters

    • node: UAObject | UAVariable

    Returns UAView[]

findCorrespondingBasicDataType

findDataType

  • findDataType(dataType: string | NodeId | UADataType | DataType, namespaceIndex?: number): UADataType | null
  • Parameters

    • dataType: string | NodeId | UADataType | DataType
    • Optional namespaceIndex: number

    Returns UADataType | null

findEventType

  • findEventType(eventTypeId: NodeIdLike | UAObjectType, namespaceIndex?: number): UAObjectType | null
  • find an EventType node in the address space

    example
     const evtType = addressSpace.findEventType("AuditEventType");

    Parameters

    • eventTypeId: NodeIdLike | UAObjectType

      the eventType to find

    • Optional namespaceIndex: number

      an optional index to restrict the search in a given namespace

    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.
    • if eventTypeId is of type NodeId, the namespaceIndex shall not be specified

findMethod

findNode

findObjectType

  • findObjectType(objectTypeId: NodeIdLike, namespaceIndex?: number): UAObjectType | null
  • find an EventType node in the address space

    example
        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

    • objectTypeId: NodeIdLike

      the eventType to find

    • Optional namespaceIndex: number

      an optional index to restrict the search in a given namespace

    Returns UAObjectType | null

    the EventType found or null.

    notes:

    • if objectTypeId is of type NodeId, the namespaceIndex shall not be specified

findReferenceType

  • findReferenceType(referenceTypeId: NodeIdLike | UAReferenceType, namespaceIndex?: number): UAReferenceType | null
  • Parameters

    • referenceTypeId: NodeIdLike | UAReferenceType
    • Optional namespaceIndex: number

    Returns UAReferenceType | null

findReferenceTypeFromInverseName

  • findReferenceTypeFromInverseName(inverseName: string): UAReferenceType | null
  • find a ReferenceType by its inverse name.

    Parameters

    • inverseName: string

      the inverse name of the ReferenceType to find

    Returns UAReferenceType | null

findVariableType

  • findVariableType(variableTypeId: NodeIdLike, namespaceIndex?: number): UAVariableType | null
  • example
        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");

    Parameters

    • variableTypeId: NodeIdLike
    • Optional namespaceIndex: number

    Returns UAVariableType | null

generateEventId

getDataTypeManager

  • getDataTypeManager(): ExtraDataTypeManager
  • Returns ExtraDataTypeManager

getDefaultNamespace

  • Returns NamespacePrivate

getExtensionObjectConstructor

  • Parameters

    • dataType: NodeId | UADataType

    Returns ExtensionObjectConstructorFuncWithSchema

getNamespace

  • Parameters

    • indexOrName: number | string

    Returns NamespacePrivate

getNamespaceArray

  • Returns NamespacePrivate[]

getNamespaceIndex

  • getNamespaceIndex(namespaceUri: string): number

getNamespaceUri

  • getNamespaceUri(namespaceIndex: number): string
  • Parameters

    • namespaceIndex: number

    Returns string

getOwnNamespace

  • Returns NamespacePrivate

installAlarmsAndConditionsService

  • installAlarmsAndConditionsService(): void

installHistoricalDataNode

inverseReferenceType

  • inverseReferenceType(referenceType: string): string

isEnumeration

  • isEnumeration(dataType: NodeId): boolean
  • Parameters

    • dataType: NodeId

    Returns boolean

modelChangeTransaction

  • modelChangeTransaction(action: function): void
  • Parameters

    • action: function
        • (): void
        • Returns void

    Returns void

normalizeReferenceType

  • Parameters

    Returns Reference

normalizeReferenceTypes

registerNamespace

  • Parameters

    • namespaceUri: string

    Returns NamespacePrivate

resolveNodeId

  • Parameters

    Returns NodeId

shutdown

  • shutdown(): void
  • Returns void

Static create

  • create(): AddressSpace
  • Returns AddressSpace

Generated using TypeDoc