interface Namespace {
    $emulateVersion103?: boolean;
    addressSpace: IAddressSpace;
    index: number;
    namespaceUri: string;
    publicationDate: Date;
    version: string;
    addAlias(aliasName: string, nodeId: NodeId): void;
    addAnalogDataItem<T, DT>(options: AddAnalogDataItemOptions): UAAnalogItemEx<T, DT>;
    addDataItem<T, DT>(options: AddDataItemOptions): UADataItem<T, DT>;
    addEnumerationType(options: AddEnumerationTypeOptions): UADataType;
    addEventType(options: {
        browseName: QualifiedNameLike;
        isAbstract?: boolean;
        subtypeOf?: string | UAEventType;
    }): UAEventType;
    addFolder(parentFolder: NodeIdLike | UAObject, options: any): UAObject;
    addMethod(parent: UAObject | UAObjectType, options: AddMethodOptions): UAMethod;
    addMultiStateDiscrete<T, DT>(options: AddMultiStateDiscreteOptions): UAMultiStateDiscreteEx<T, DT>;
    addMultiStateValueDiscrete<T, DT>(options: AddMultiStateValueDiscreteOptions): UAMultiStateValueDiscreteEx<T, DT>;
    addObject(options: AddObjectOptions): UAObject;
    addObjectType(options: AddObjectTypeOptions): UAObjectType;
    addReferenceType(options: AddReferenceTypeOptions): UAReferenceType;
    addState(component: UAObject | UAObjectType, stateName: QualifiedNameLike, stateNumber: number, isInitialState?: boolean): UAState;
    addTransition(component: UAObject | UAObjectType, fromState: string, toState: string, transitionNumber: number, browseName?: QualifiedNameLike): UATransitionEx;
    addTwoStateDiscrete(options: AddTwoStateDiscreteOptions): UATwoStateDiscreteEx;
    addTwoStateVariable(options: AddTwoStateVariableOptions): UATwoStateVariableEx;
    addVariable(options: AddVariableOptions): UAVariable;
    addVariableType(options: AddVariableTypeOptions): UAVariableType;
    addView(options: AddViewOptions): UAView;
    addYArrayItem<DT>(options: AddYArrayItemOptions): UAYArrayItemEx<DT>;
    constructNodeId(options: ConstructNodeIdOptions): NodeId;
    createDataType(options: CreateDataTypeOptions): UADataType;
    createNode(options: any): BaseNode;
    deleteNode(node: NodeId | BaseNode): void;
    findDataType(dataType: string): null | UADataType;
    findNode(nodeId: NodeIdLike): null | BaseNode;
    findNode2(nodeId: NodeId): null | BaseNode;
    findObjectType(objectType: string): null | UAObjectType;
    findReferenceType(referenceType: string): null | UAReferenceType;
    findReferenceTypeFromInverseName(referenceType: string): null | UAReferenceType;
    findVariableType(variableType: string): null | UAVariableType;
    getDefaultAccessRestrictions(): AccessRestrictionsFlag;
    getDefaultRolePermissions(): null | RolePermissionType[];
    getRequiredModels(): undefined | RequiredModel[];
    getStandardsNodeIds(): {
        objectTypeIds: {
            [key: string]: string;
        };
        referenceTypeIds: {
            [key: string]: string;
        };
    };
    instantiateAcknowledgeableCondition(conditionTypeId: string | NodeId | UAEventType, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UAAcknowledgeableConditionEx;
    instantiateAlarmCondition(alarmConditionTypeId: string | NodeId | UAEventType, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UAAlarmConditionEx;
    instantiateCondition(conditionTypeId: string | NodeId | UAEventType, options: any, data?: Record<string, VariantOptions>): UAConditionEx;
    instantiateDiscreteAlarm(discreteAlarmType: string | NodeId | UAEventType, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UADiscreteAlarmEx;
    instantiateExclusiveDeviationAlarm(options: InstantiateExclusiveDeviationAlarmOptions, data?: Record<string, VariantOptions>): UAExclusiveDeviationAlarmEx;
    instantiateExclusiveLimitAlarm(exclusiveLimitAlarmTypeId: string | NodeId | UAEventType, options: InstantiateExclusiveLimitAlarmOptions, data?: Record<string, VariantOptions>): UAExclusiveLimitAlarmEx;
    instantiateLimitAlarm(limitAlarmTypeId: string | NodeId | UAEventType, options: InstantiateLimitAlarmOptions, data?: Record<string, VariantOptions>): UALimitAlarmEx;
    instantiateNonExclusiveDeviationAlarm(options: InstantiateNonExclusiveDeviationAlarmOptions, data?: Record<string, VariantOptions>): UANonExclusiveDeviationAlarmEx;
    instantiateNonExclusiveLimitAlarm(nonExclusiveLimitAlarmTypeId: string | NodeId | UAEventType, options: InstantiateNonExclusiveLimitAlarmOptions, data?: Record<string, VariantOptions>): UANonExclusiveLimitAlarmEx;
    instantiateOffNormalAlarm(options: InstantiateOffNormalAlarmOptions, data?: Record<string, VariantOptions>): UAOffNormalAlarmEx;
    setDefaultAccessRestrictions(accessRestrictions: AccessRestrictionsFlag): void;
    setDefaultRolePermissions(rolePermissions: null | RolePermissionTypeOptions[]): void;
    toNodeset2XML(): string;
}

Hierarchy (view full)

Properties

$emulateVersion103?: boolean
addressSpace: IAddressSpace
index: number
namespaceUri: string
publicationDate: Date
version: string

Methods

  • Parameters

    • aliasName: string
    • nodeId: NodeId

    Returns void

  • add a new event type to the address space

    Parameters

    Returns UAEventType

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

    Returns UAState

  • Parameters

    Returns UATransitionEx

  • Parameters

    • options: ConstructNodeIdOptions

    Returns NodeId

  • Parameters

    • options: any

    Returns BaseNode

  • Parameters

    Returns void

  • Parameters

    • dataType: string

    Returns null | UADataType

  • Parameters

    Returns null | BaseNode

  • Internal

    Returns {
        objectTypeIds: {
            [key: string]: string;
        };
        referenceTypeIds: {
            [key: string]: string;
        };
    }

    • objectTypeIds: {
          [key: string]: string;
      }
      • [key: string]: string
    • referenceTypeIds: {
          [key: string]: string;
      }
      • [key: string]: string
  • Parameters

    Returns UAConditionEx

  • Parameters

    • options: InstantiateExclusiveDeviationAlarmOptions
    • Optionaldata: Record<string, VariantOptions>

    Returns UAExclusiveDeviationAlarmEx

  • Parameters

    • options: InstantiateNonExclusiveDeviationAlarmOptions
    • Optionaldata: Record<string, VariantOptions>

    Returns UANonExclusiveDeviationAlarmEx

  • Parameters

    Returns UANonExclusiveLimitAlarmEx

  • Parameters

    Returns UAOffNormalAlarmEx

  • Returns string