Class: AlertsSubject
A subject that tracks G1000 alert messages.
Implements
SubscribableArray
<AlertMessage
>
Constructors
constructor
• new AlertsSubject(bus
): AlertsSubject
Creates an instance of a AlertsSubject.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | An instance of the event bus. |
Returns
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
Name | Type |
---|---|
index | number |
Returns
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
Name | Type | Default value |
---|---|---|
handler | SubscribableArrayHandler <AlertMessage > | undefined |
initialNotify | boolean | false |
paused | boolean | false |
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
Name | Type |
---|---|
index | number |
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
Name | Type |
---|---|
handler | SubscribableArrayHandler <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