Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClientMonitoredItemImpl

ClientMonitoredItem

class

ClientMonitoredItem

extends

ClientMonitoredItemBase

event: "initialized" "err" "changed"

note: this.monitoringMode = subscription_service.MonitoringMode.Reporting;

Hierarchy

Implements

Index

Constructors

constructor

  • new ClientMonitoredItemImpl(subscription: ClientSubscription, itemToMonitor: ReadValueIdOptions, monitoringParameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn): ClientMonitoredItemImpl

Properties

Optional filterResult

filterResult: ExtensionObject

itemToMonitor

itemToMonitor: ReadValueId

Optional monitoredItemId

monitoredItemId: any

monitoringMode

monitoringMode: MonitoringMode

monitoringParameters

monitoringParameters: MonitoringParameters

Optional result

result: MonitoredItemCreateResult

statusCode

statusCode: StatusCode

subscription

timestampsToReturn

timestampsToReturn: TimestampsToReturn

Static defaultMaxListeners

defaultMaxListeners: number

Methods

Private _after_create

  • _after_create(monitoredItemResult: MonitoredItemCreateResult): void

Private _applyResult

  • _applyResult(monitoredItemResult: MonitoredItemCreateResult): void

Private _monitor

Private _notify_event

  • _notify_event(eventFields: Variant[]): void

Private _notify_value_change

  • _notify_value_change(value: DataValue): void

Private _prepare_for_monitoring

  • _prepare_for_monitoring(): object | object

addListener

  • addListener(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

emit

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

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

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listenerCount

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

    • type: string | symbol

    Returns number

listeners

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

    • event: string | symbol

    Returns Function[]

modify

  • modify(parameters: MonitoringParametersOptions): Promise<StatusCode>
  • modify(parameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn): Promise<StatusCode>
  • modify(parameters: MonitoringParametersOptions, callback: function): void
  • modify(parameters: MonitoringParametersOptions, timestampsToReturn: TimestampsToReturn | null, callback: function): void

off

  • off(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

once

  • once(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

rawListeners

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

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

setMonitoringMode

  • setMonitoringMode(monitoringMode: MonitoringMode): Promise<StatusCode>
  • setMonitoringMode(monitoringMode: MonitoringMode, callback: Callback<StatusCode>): void

terminate

  • terminate(): Promise<void>
  • terminate(done: ErrorCallback): void

toString

  • toString(): string

Static listenerCount

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

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc