Last updated

API / geotoolkit / gauges / Alarm / Alarm

Class: Alarm

gauges.Alarm.Alarm

An Alarm is attached to a gauge and contains a collection of Alerts

Table of contents

Constructors
Methods
Css Properties
Name Type Description
handlernamestringName of the handler function as defined in Alarm Factory
highnumberUpper boundary of range that the alarm is effective on
lownumberLower boundary of range that the alarm is effective on
namestringName of the alarm for indexing
rangeRangeRange that the alarm is effective on
range-highnumberUpper range boundary
range-lownumberLower range boundary
range-maxnumber
range-minnumber

Contents

Constructors

new Alarm(options)

new Alarm(options?)

Parameters

Name Type
Optional optionsOptions
Methods

getAdditionalProperties

getAdditionalProperties(): Record<string, any>

Returns extra properties which will be passed into the handler function as fourth parameter

Returns

Record<string, any>


getClassName

getClassName(): string

Returns

string


getHandlerName

getHandlerName(): string

Gets the name of the function in Alarm Factory that is associated with this alarm

Returns

string

Name of the function


getName

getName(): string

Gets the name of the function in Alarm Factory that is associated with this alarm

Returns

string

Name of the function


getProperties

getProperties(): OptionsOut

Returns properties of alarm

Returns

OptionsOut

properties or an alarm to extract properties from


setAdditionalProperties

setAdditionalProperties(props): Alarm

Sets extra properties which will be passed into the handler function as fourth parameter

Parameters

Name Type Description
propsRecord<string, any>Properties

Returns

Alarm


setProperties

setProperties(props?): Alarm

Sets properties pertaining to alarm class

Parameters

Name Type Description
Optional propsOptionsproperties or an alarm to extract properties from

Returns

Alarm


testValue

testValue(val): boolean

Takes a value and tests if it lies within this alarm range

Parameters

Name Type Description
valnumberValue to test

Returns

boolean


fromObject

Static fromObject(props): Alarm

Returns an instance of alarm created using provided properties

Parameters

Name Type Description
propsAlarm | Optionsalarm properties

Returns

Alarm

alarm


getClassName

Static getClassName(): string

Returns

string