Skip to main content

Class: AlertsSubject

A subject that tracks G1000 alert messages.

Implements

Constructors

constructor

new AlertsSubject(bus): AlertsSubject

Creates an instance of a AlertsSubject.

Parameters

NameTypeDescription
busEventBusAn instance of the event bus.

Returns

AlertsSubject

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:51

Accessors

length

get length(): number

Returns

number

Inherit Doc

Implementation of

SubscribableArray.length

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:113

Methods

get

get(index): AlertMessage

Parameters

NameType
indexnumber

Returns

AlertMessage

Inherit Doc

Implementation of

SubscribableArray.get

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:118


getArray

getArray(): readonly AlertMessage[]

Returns

readonly AlertMessage[]

Inherit Doc

Implementation of

SubscribableArray.getArray

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:128


sub

sub(handler, initialNotify?, paused?): Subscription

Parameters

NameTypeDefault value
handlerSubscribableArrayHandler<AlertMessage>undefined
initialNotifybooleanfalse
pausedbooleanfalse

Returns

Subscription

Inherit Doc

Implementation of

SubscribableArray.sub

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:133


tryGet

tryGet(index): undefined | AlertMessage

Parameters

NameType
indexnumber

Returns

undefined | AlertMessage

Inherit Doc

Implementation of

SubscribableArray.tryGet

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:123


unsub

unsub(handler): void

Parameters

NameType
handlerSubscribableArrayHandler<AlertMessage>

Returns

void

Inherit Doc

Implementation of

SubscribableArray.unsub

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:138