Class: GarminTaws<ID>
A Garmin TAWS-A/B terrain alerting system.
Type parameters
Name | Type |
---|---|
ID | extends string |
Hierarchy
↳
GarminTaws
Constructors
constructor
• new GarminTaws<ID
>(id
, type
, bus
, dataProvider
, options?
): GarminTaws
<ID
>
Creates a new instance of GarminTaws.
Type parameters
Name | Type |
---|---|
ID | extends string |
Parameters
Name | Type | Description |
---|---|---|
id | ID | This terrain system's ID. |
type | string | This terrain system's type. |
bus | EventBus | The event bus. |
dataProvider | TerrainSystemDataProvider | A provider of terrain system data. |
options? | Readonly <GarminTawsOptions > | Options with which to configure the system. |
Returns
GarminTaws
<ID
>
Overrides
AbstractTerrainSystem.constructor
Defined in
src/garminsdk/terrain/GarminTaws.ts:44
Properties
alertController
• Protected
Readonly
alertController: TerrainSystemAlertController
Inherited from
AbstractTerrainSystem.alertController
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:35
alerts
• Protected
Readonly
alerts: SetSubject
<string
>
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:30
bus
• Protected
Readonly
bus: EventBus
The event bus.
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:58
dataProvider
• Protected
Readonly
dataProvider: TerrainSystemDataProvider
A provider of terrain system data.
Inherited from
AbstractTerrainSystem.dataProvider
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:59
id
• Readonly
id: ID
This terrain system's ID.
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:56
idSuffix
• Protected
Readonly
idSuffix: TerrainSystemEventSuffix
<ID
>
Inherited from
AbstractTerrainSystem.idSuffix
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:17
inhibits
• Protected
Readonly
inhibits: SetSubject
<string
>
Inherited from
AbstractTerrainSystem.inhibits
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:28
isAlive
• Protected
isAlive: boolean
= true
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:41
isInit
• Protected
isInit: boolean
= false
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:42
modules
• Protected
Readonly
modules: TerrainSystemModule
[] = []
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:33
operatingMode
• Protected
Readonly
operatingMode: Subject
<TerrainSystemOperatingMode
>
Inherited from
AbstractTerrainSystem.operatingMode
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:25
prioritizedAlert
• Protected
Readonly
prioritizedAlert: Subject
<null
| string
>
Inherited from
AbstractTerrainSystem.prioritizedAlert
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:31
prioritizedAlertSelector
• Protected
Readonly
prioritizedAlertSelector: (alerts
: Iterable
<string
>) => null
| string
A function that this system uses to select a prioritized alert from an iterable of active alerts each time the set of active alerts changes.
Type declaration
▸ (alerts
): null
| string
A function that this system uses to select a prioritized alert from an iterable of active alerts each time the set of active alerts changes.
Parameters
Name | Type |
---|---|
alerts | Iterable <string > |
Returns
null
| string
Inherited from
AbstractTerrainSystem.prioritizedAlertSelector
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:60
publisher
• Protected
Readonly
publisher: Publisher
<TerrainSystemEvents
>
Inherited from
AbstractTerrainSystem.publisher
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:23
statuses
• Protected
Readonly
statuses: SetSubject
<string
>
Inherited from
AbstractTerrainSystem.statuses
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:27
subscriptions
• Protected
Readonly
subscriptions: Subscription
[] = []
Inherited from
AbstractTerrainSystem.subscriptions
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:44
topicMap
• Protected
Readonly
topicMap: Object
Type declaration
Name | Type | Description |
---|---|---|
terrainsys_active_alerts | `terrainsys_active_alerts${TerrainSystemEventSuffix<ID>}` | The terrain system's active alerts. |
terrainsys_alert_activated | `terrainsys_alert_activated${TerrainSystemEventSuffix<ID>}` | An alert was activated by the terrain system. |
terrainsys_alert_deactivated | `terrainsys_alert_deactivated${TerrainSystemEventSuffix<ID>}` | An alert was deactivated by the terrain system. |
terrainsys_inhibit_added | `terrainsys_inhibit_added${TerrainSystemEventSuffix<ID>}` | An inhibit flag was added to the terrain system. |
terrainsys_inhibit_flags | `terrainsys_inhibit_flags${TerrainSystemEventSuffix<ID>}` | The terrain system's active inhibit flags. |
terrainsys_inhibit_removed | `terrainsys_inhibit_removed${TerrainSystemEventSuffix<ID>}` | An inhibit flag was removed from the terrain system. |
terrainsys_operating_mode | `terrainsys_operating_mode${TerrainSystemEventSuffix<ID>}` | The current terrain system operating mode. |
terrainsys_prioritized_alert | `terrainsys_prioritized_alert${TerrainSystemEventSuffix<ID>}` | The terrain system's current prioritized active alert. |
terrainsys_status_added | `terrainsys_status_added${TerrainSystemEventSuffix<ID>}` | A status flag was added to the terrain system. |
terrainsys_status_flags | `terrainsys_status_flags${TerrainSystemEventSuffix<ID>}` | The terrain system's active status flags. |
terrainsys_status_removed | `terrainsys_status_removed${TerrainSystemEventSuffix<ID>}` | A status flag was removed from the terrain system. |
terrainsys_type | `terrainsys_type${TerrainSystemEventSuffix<ID>}` | The terrain system type. |
Inherited from
AbstractTerrainSystem.topicMap
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:19
type
• Readonly
type: string
This terrain system's type.
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:57
Methods
activateAlert
▸ activateAlert(alert
): void
Activates an alert.
Parameters
Name | Type | Description |
---|---|---|
alert | string | The alert to activate. |
Returns
void
Inherited from
AbstractTerrainSystem.activateAlert
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:370
addInhibit
▸ addInhibit(inhibit
): void
Adds an inhibit flag to this system.
Parameters
Name | Type | Description |
---|---|---|
inhibit | string | The flag to add. |
Returns
void
Inherited from
AbstractTerrainSystem.addInhibit
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:241
addModule
▸ addModule(module
): void
Adds a module to this system.
Parameters
Name | Type | Description |
---|---|---|
module | TerrainSystemModule | The module to add. |
Returns
void
Inherited from
AbstractTerrainSystem.addModule
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:87
deactivateAlert
▸ deactivateAlert(alert
): void
Deactivates an alert.
Parameters
Name | Type | Description |
---|---|---|
alert | string | The alert to deactivate. |
Returns
void
Inherited from
AbstractTerrainSystem.deactivateAlert
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:380
destroy
▸ destroy(): void
Destroys this system. Once destroyed, this system can no longer be updated.
Returns
void
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:420
init
▸ init(): void
Initializes this system. Once the system is initialized, it can begin updating its internal state and issuing alerts and will publish its state to the event bus.
Returns
void
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:99
initAlertPublishing
▸ initAlertPublishing(): void
Initializes publishing of this system's active alerts to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem.initAlertPublishing
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:165
initControlEventListeners
▸ initControlEventListeners(): void
Initializes listeners for control events published to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem.initControlEventListeners
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:179
initInhibitPublishing
▸ initInhibitPublishing(): void
Initializes publishing of this system's inhibit flags to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem.initInhibitPublishing
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:150
initModules
▸ initModules(): void
Initializes this system's modules.
Returns
void
Inherited from
AbstractTerrainSystem.initModules
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:195
initOperatingModePublishing
▸ initOperatingModePublishing(): void
Initializes publishing of this system's operating mode to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem.initOperatingModePublishing
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:128
initStatusPublishing
▸ initStatusPublishing(): void
Initializes publishing of this system's status flags to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem.initStatusPublishing
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:135
onAddInhibit
▸ onAddInhibit(inhibit
): void
A method that is called when this system receives a command to add an inhibit flag.
Parameters
Name | Type | Description |
---|---|---|
inhibit | string | The flag to add. |
Returns
void
Inherited from
AbstractTerrainSystem.onAddInhibit
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:347
onAlertsChanged
▸ onAlertsChanged(alerts
, type
, alert
): void
Responds to when the set of this system's active alerts changes.
Parameters
Name | Type | Description |
---|---|---|
alerts | ReadonlySet <string > | The set of active alerts. |
type | SubscribableSetEventType | The type of change that occurred. |
alert | string | The alert that was changed. |
Returns
void
Inherited from
AbstractTerrainSystem.onAlertsChanged
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:298
onInit
▸ onInit(): void
A method that is called when this system is initialized.
Returns
void
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:116
onOperatingModeChanged
▸ onOperatingModeChanged(mode
): void
Responds to when this system's operating mode changes.
Parameters
Name | Type | Description |
---|---|---|
mode | TerrainSystemOperatingMode | The new operating mode. |
Returns
void
Inherited from
AbstractTerrainSystem.onOperatingModeChanged
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:283
onRemoveAllInhibits
▸ onRemoveAllInhibits(): void
A method that is called when this system receives a command to remove all inhibit flags.
Returns
void
Inherited from
AbstractTerrainSystem.onRemoveAllInhibits
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:362
onRemoveInhibit
▸ onRemoveInhibit(inhibit
): void
A method that is called when this system receives a command to remove an inhibit flag.
Parameters
Name | Type | Description |
---|---|---|
inhibit | string | The flag to remove. |
Returns
void
Inherited from
AbstractTerrainSystem.onRemoveInhibit
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:355
onStartTest
▸ onStartTest(): void
A method that is called when this system receives a command to start a self-test.
Returns
void
Overrides
AbstractTerrainSystem.onStartTest
Defined in
src/garminsdk/terrain/GarminTaws.ts:72
onTurnOff
▸ onTurnOff(): void
A method that is called when this system receives a command to turn off.
Returns
void
Overrides
AbstractTerrainSystem.onTurnOff
Defined in
src/garminsdk/terrain/GarminTaws.ts:67
onTurnOn
▸ onTurnOn(): void
A method that is called when this system receives a command to turn on.
Returns
void
Overrides
AbstractTerrainSystem.onTurnOn
Defined in
src/garminsdk/terrain/GarminTaws.ts:58
onUpdate
▸ onUpdate(): void
A method that is called when this system is updated.
Returns
void
Overrides
AbstractTerrainSystem.onUpdate
Defined in
src/garminsdk/terrain/GarminTaws.ts:82
publishAlert
▸ publishAlert(alerts
, type
, alert
): void
Publishes data to event bus alert topics based on a change to this system's active alerts.
Parameters
Name | Type | Description |
---|---|---|
alerts | ReadonlySet <string > | The set of active alerts. |
type | SubscribableSetEventType | The type of change that occurred. |
alert | string | The alert that was changed. |
Returns
void
Inherited from
AbstractTerrainSystem.publishAlert
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:312
removeAllInhibits
▸ removeAllInhibits(): void
Removes all inhibit flags from this system.
Returns
void
Inherited from
AbstractTerrainSystem.removeAllInhibits
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:267
removeInhibit
▸ removeInhibit(inhibit
): void
Removes an inhibit flag from this system.
Parameters
Name | Type | Description |
---|---|---|
inhibit | string | The flag to remove. |
Returns
void
Inherited from
AbstractTerrainSystem.removeInhibit
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:254
startTest
▸ startTest(): void
Begins a self-test of this system.
Returns
void
Inherited from
AbstractTerrainSystem.startTest
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:228
turnOff
▸ turnOff(): void
Turns this system off.
Returns
void
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:215
turnOn
▸ turnOn(): void
Turns this system on.
Returns
void
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:202
update
▸ update(): void
Updates this system.
Returns
void
Inherited from
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:385
updateModules
▸ updateModules(): void
Updates this system's modules.
Returns
void
Inherited from
AbstractTerrainSystem.updateModules
Defined in
src/garminsdk/terrain/AbstractTerrainSystem.ts:407