interface UAConditionHelper {
    conditionOfNode(): null | UAObject | UAVariable;
    createBranch(): ConditionSnapshot;
    currentBranch(): ConditionSnapshot;
    deleteBranch(branch: ConditionSnapshot): void;
    getBranchCount(): number;
    getBranches(): ConditionSnapshot[];
    getBranchIds(): NodeId[];
    getEnabledState(): boolean;
    getEnabledStateAsString(): string;
    on(eventName: string, eventHandler: ((...args: any[]) => void)): this;
    on(eventName: "addComment", eventHandler: AddCommentEventHandler): this;
    on(eventName: "branch_deleted", eventHandler: ((branchId: string) => void)): this;
    raiseConditionEvent(branch: ConditionSnapshot, renewEventId: boolean): void;
    raiseNewBranchState(branch: ConditionSnapshot): void;
    raiseNewCondition(conditionInfo: ConditionInfoOptions): void;
    setEnabledState(requestedEnabledState: boolean, options?: ISetStateOptions): StatusCode;
    setLocalTime(time: TimeZoneDataType): void;
    setReceiveTime(time: Date): void;
    setSourceName(name: string): void;
    setSourceNode(node: NodeId | BaseNode): void;
    setTime(time: Date): void;
}

Hierarchy (view full)

Methods

  • Returns null | UAObject | UAVariable

  • Returns ConditionSnapshot

  • Returns ConditionSnapshot

  • Parameters

    Returns void

  • Returns number

  • Returns ConditionSnapshot[]

  • Returns NodeId[]

  • Returns boolean

  • Returns string

  • Parameters

    • eventName: string
    • eventHandler: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    Returns this

  • Parameters

    Returns this

  • Parameters

    • eventName: "branch_deleted"
    • eventHandler: ((branchId: string) => void)
        • (branchId): void
        • Parameters

          • branchId: string

          Returns void

    Returns this

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • requestedEnabledState: boolean
    • Optionaloptions: ISetStateOptions

    Returns StatusCode

  • Parameters

    Returns void

  • Parameters

    • time: Date

    Returns void

  • Parameters

    • name: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    • time: Date

    Returns void