Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UALimitAlarm

Hierarchy

Implements

  • UAObject
  • UAObject

Constructors

constructor

Properties

_dataType

_dataType: any

ackedState

ackedState: UATwoStateVariable

acknowledge

acknowledge: UAMethod

activeState

activeState: UATwoStateVariable

Optional confirm

confirm: UAMethod

Optional confirmedState

confirmedState: UATwoStateVariable

Readonly eventNotifier

eventNotifier: number

Optional highHighLimit

highHighLimit: UAVariable

Optional highLimit

highLimit: UAVariable

inputNode

inputNode: UAVariableT<NodeId, NodeId>

Optional lowLimit

lowLimit: UAVariable

Optional lowLowLimit

lowLowLimit: UAVariable

maxTimeShelved

maxTimeShelved: UAVariable

Readonly nodeClass

nodeClass: Object = NodeClass.Object

Optional nodeVersion

nodeVersion: UAVariableT<string, String>

NodeVersion (Optional) String The NodeVersion Property is used to indicate the version of a Node. The NodeVersion Property is updated each time a Reference is added or deleted to the Node the Property belongs to. Attribute value changes do not cause the NodeVersion to change. Clients may read the NodeVersion Property or subscribe to it to determine when the structure of a Node has changed.

shelvingState

shelvingState: ShelvingStateMachine

sourceName

sourceName: UAVariableT<string, String>

sourceNode

sourceNode: UAVariableT<NodeId, NodeId>

suppressedOrShelved

suppressedOrShelved: UAVariable

suppressedState

suppressedState: UATwoStateVariable

Readonly symbolicName

symbolicName: string

Static MaxDuration

MaxDuration: number = Math.pow(2, 31)
static
property

MaxDuration

Accessors

hasMethods

  • get hasMethods(): boolean

typeDefinitionObj

  • get typeDefinitionObj(): UAObjectTypePublic

Methods

_bubble_up_event

  • _bubble_up_event(eventData: any): void

_calculateConditionInfo

  • method

    _calculateConditionInfo

    example

    var myAlarm = addressSpace.instantiateExclusiveLimitAlarm({...}); myAlarm._calculateConditionInfo = function(stateName,value,oldCondition) { var percent = Math.ceil(value * 100); return new ConditionInfo({ message: "Tank is almost " + percent + "% full", severity: 100, quality: StatusCodes.Good }); };

    Parameters

    • stateData: string | null

      the new calculated state of the alarm

    • isActive: boolean
    • value: string

      the new value of the limit alarm

    • oldCondition: ConditionInfo

      given for information purpose

    Returns ConditionInfo

    the new condition info

    this method need to be overridden by the instantiate to allow custom message and severity to be set based on specific context of the alarm.

_conditionRefresh

  • _conditionRefresh(_cache?: any): void

_onInputDataValueChange

  • _onInputDataValueChange(newValue: DataValue): void

_signalInitialCondition

  • _signalInitialCondition(): void

_signalNewCondition

  • _signalNewCondition(stateName: string | null, isActive?: boolean, value?: string): void

activateAlarm

  • activateAlarm(): void

clone

  • clone(options: any, optionalFilter?: any, extraInfo?: any): UAObject

deactivateAlarm

  • deactivateAlarm(): void

desactivateAlarm

  • desactivateAlarm(): void

dispose

  • dispose(): void

getCurrentConditionInfo

getHighHighLimit

  • getHighHighLimit(): number
  • method

    getHighHighLimit

    Returns number

getHighLimit

  • getHighLimit(): number
  • method

    getHighLimit

    Returns number

getInputNodeNode

  • method

    getInputNodeNode

    Returns UAVariable | null

    return the node in the address space pointed by the inputNode value

    Note: please note the difference between alarm.inputNode

    • alarm.inputNode is a UAVariable property of the alarm object holding the nodeid of the input node in its value.
    • getInputNodeNode() is the UAVariable that contains the value that affects the state of the alarm and whose node id is stored in alarm.inputNode

getInputNodeValue

  • getInputNodeValue(): any | null

getLowLimit

  • getLowLimit(): number
  • method

    getLowLimit

    Returns number

getLowLowLimit

  • getLowLowLimit(): number
  • method

    getLowLowLimit

    Returns number

getMaxTimeShelved

  • getMaxTimeShelved(): number

getMethodByName

  • getMethodByName(methodName: string): UAMethodPublic | null

getMethods

  • getMethods(): UAMethodPublic[]

getSuppressedOrShelved

  • getSuppressedOrShelved(): boolean

isSuppressedOrShelved

  • isSuppressedOrShelved(): boolean

on

  • on(eventName: string, eventHandler: function): this
  • on(eventName: "addComment", eventHandler: function): this
  • on(eventName: "branch_deleted", eventHandler: function): this

raiseEvent

readAttribute

setHighHighLimit

  • setHighHighLimit(value: number): void
  • method

    setHighHighLimit

    Parameters

    • value: number

    Returns void

setHighLimit

  • setHighLimit(value: number): void
  • method

    setHighLimit

    Parameters

    • value: number

    Returns void

setLowLimit

  • setLowLimit(value: number): void
  • method

    setLowLimit

    Parameters

    • value: number

    Returns void

setLowLowLimit

  • setLowLowLimit(value: number): void
  • method

    setLowLowLimit

    Parameters

    • value: number

    Returns void

setMaxTimeShelved

  • setMaxTimeShelved(duration: number): void

toString

  • toString(): string

updateState

  • updateState(): void

Static instantiate

Generated using TypeDoc