Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

Hierarchy

  • EventEmitter
    • ConditionSnapshot

Index

Constructors

constructor

Properties

branchId

branchId: NodeId

condition

condition: UAConditionBase

eventData

eventData: IEventData

Readonly Static captureRejectionSymbol

captureRejectionSymbol: typeof captureRejectionSymbol

Static captureRejections

captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

Static defaultMaxListeners

defaultMaxListeners: number

Readonly Static errorMonitor

errorMonitor: typeof errorMonitor

This symbol shall be used to install a listener for only monitoring 'error' events. Listeners installed using this symbol are called before the regular 'error' listeners are called.

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

Static normalizeName

normalizeName: (str: string) => string

Type declaration

    • (str: string): string
    • Parameters

      • str: string

      Returns string

Methods

_constructEventData

  • Returns IEventData

_get_var

  • _get_var(varName: string): any
  • Parameters

    • varName: string

    Returns any

_set_var

  • _set_var(varName: string, dataType: DataType, value: any): void
  • Parameters

    • varName: string
    • dataType: DataType
    • value: any

    Returns void

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): ConditionSnapshot
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ConditionSnapshot

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getAckedState

  • getAckedState(): boolean
  • Returns boolean

getActiveState

  • getActiveState(): boolean
  • Returns boolean

getBranchId

  • method

    getBrandId

    Returns NodeId

getComment

  • method

    getComment

    Returns LocalizedText

getConfirmedState

  • getConfirmedState(): boolean
  • Returns boolean

getEnabledState

  • getEnabledState(): boolean
  • method

    getEnabledState

    Returns boolean

getEnabledStateAsString

  • getEnabledStateAsString(): string
  • method

    getEnabledStateAsString

    Returns string

getEventId

  • getEventId(): Buffer
  • method

    getEventId

    Returns Buffer

getEventType

  • method

    getEventType return {NodeId}

    Returns NodeId

getLastSeverity

  • getLastSeverity(): number
  • method

    getLastSeverity

    Returns number

getMaxListeners

  • getMaxListeners(): number
  • Returns number

getMessage

  • Returns LocalizedText

getQuality

  • method

    getQuality

    Returns StatusCode

getRetain

  • getRetain(): boolean
  • method

    getRetain

    Returns boolean

getSeverity

  • getSeverity(): number
  • method

    getSeverity

    Returns number

getSourceName

  • Returns LocalizedText

getSourceNode

  • method

    getSourceNode return {NodeId}

    Returns NodeId

getSuppressedState

  • getSuppressedState(): boolean
  • method

    getSuppressedState

    Returns boolean

isCurrentBranch

  • isCurrentBranch(): boolean
  • Returns boolean

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ConditionSnapshot

on

  • Parameters

    • eventName: "value_changed"
    • eventHandler: (node: UAVariable, variant: Variant) => void
        • (node: UAVariable, variant: Variant): void
        • Parameters

          • node: UAVariable
          • variant: Variant

          Returns void

    Returns ConditionSnapshot

once

  • once(event: string | symbol, listener: (...args: any[]) => void): ConditionSnapshot
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ConditionSnapshot

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): ConditionSnapshot
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ConditionSnapshot

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): ConditionSnapshot
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ConditionSnapshot

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

readValue

removeAllListeners

  • Parameters

    • Optional event: string | symbol

    Returns ConditionSnapshot

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): ConditionSnapshot
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ConditionSnapshot

renewEventId

  • renewEventId(): void
  • method

    renewEventId

    Returns void

resolveSelectClause

  • method

    resolveSelectClause

    Parameters

    Returns NodeId

setAckedState

  • Parameters

    • ackedState: boolean

    Returns ConstantStatusCode

setActiveState

  • setActiveState(newActiveState: boolean): StatusCode
  • Parameters

    • newActiveState: boolean

    Returns StatusCode

setClientUserId

  • setClientUserId(userIdentity: string): void
  • method

    setClientUserId

    Parameters

    • userIdentity: string

    Returns void

setComment

  • Set condition comment

    Comment contains the last comment provided for a certain state (ConditionBranch). It may have been provided by an AddComment Method, some other Method or in some other manner. The initial value of this Variable is null, unless it is provided in some other manner. If a Method provides as an option the ability to set a Comment, then the value of this Variable is reset to null if an optional comment is not provided.

    method

    setComment

    Parameters

    Returns void

setConfirmedState

  • setConfirmedState(confirmedState: boolean): void
  • Parameters

    • confirmedState: boolean

    Returns void

setConfirmedStateIfExists

  • setConfirmedStateIfExists(confirmedState: boolean): void
  • Parameters

    • confirmedState: boolean

    Returns void

setEnabledState

  • setEnabledState(value: boolean): void
  • method

    setEnabledState

    Parameters

    • value: boolean

    Returns void

    void

setLastSeverity

  • setLastSeverity(severity: number): void
  • method

    setLastSeverity

    Parameters

    • severity: number

    Returns void

setLocalTime

  • LocalTime is a structure containing the Offset and the DaylightSavingInOffset flag. The Offset specifies the time difference (in minutes) between the Time Property and the time at the location in which the event was issued. If DaylightSavingInOffset is TRUE, then Standard/Daylight savings time (DST) at the originating location is in effect and Offset includes the DST c orrection. If FALSE then the Offset does not include DST correction and DST may or may not have been in effect.

    method

    setLocalTime

    Parameters

    Returns void

setMaxListeners

  • Parameters

    • n: number

    Returns ConditionSnapshot

setMessage

  • method

    setMessage

    Parameters

    Returns void

setQuality

  • set the condition quality

    method

    setQuality

    Parameters

    Returns void

setReceiveTime

  • setReceiveTime

    (as per OPCUA 1.0.3 part 5)

    ReceiveTime provides the time the OPC UA Server received the Event from the underlying device of another Server.

    ReceiveTime is analogous to ServerTimestamp defined in Part 4, i.e. in the case where the OPC UA Server gets an Event from another OPC UA Server, each Server applies its own ReceiveTime. That implies that a Client may get the same Event, having the same EventId, from different Servers having different values of the ReceiveTime.

    The ReceiveTime shall always be returned as value and the Server is not allowed to return a StatusCode for the ReceiveTime indicating an error.

    method

    setReceiveTime

    Parameters

    Returns void

setRetain

  • setRetain(retainFlag: boolean): void
  • method

    setRetain

    Parameters

    • retainFlag: boolean

    Returns void

setSeverity

  • setSeverity(severity: number): void
  • method

    setSeverity

    Parameters

    • severity: number

    Returns void

setShelvingState

  • setShelvingState(): void
  • Returns void

setSuppressedState

  • setSuppressedState(suppressed: boolean): void
  • method

    setSuppressedState

    Parameters

    • suppressed: boolean

    Returns void

setTime

  • setTime(time: Date): void
  • (as per OPCUA 1.0.3 part 5) Time provides the time the Event occurred. This value is set as close to the event generator as possible. It often comes from the underlying system or device. Once set, intermediate OPC UA Servers shall not alter the value.

    method

    setTime

    Parameters

    • time: Date

    Returns void

toString

  • toString(): string
  • Returns string

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Static on

  • on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>
  • Parameters

    • emitter: EventEmitter
    • event: string

    Returns AsyncIterableIterator<any>

Static once

  • once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>
  • once(emitter: DOMEventTarget, event: string): Promise<any[]>
  • Parameters

    • emitter: NodeEventTarget
    • event: string | symbol

    Returns Promise<any[]>

  • Parameters

    • emitter: DOMEventTarget
    • event: string

    Returns Promise<any[]>

Generated using TypeDoc