Class: GarminTaws<ID>
Defined in: src/garminsdk/terrain/GarminTaws.ts:28
A Garmin TAWS-A/B terrain alerting system.
Extends
Type Parameters
Type Parameter |
---|
ID extends string |
Constructors
Constructor
new GarminTaws<
ID
>(id
,type
,bus
,dataProvider
,options?
):GarminTaws
<ID
>
Defined in: src/garminsdk/terrain/GarminTaws.ts:44
Creates a new instance of GarminTaws.
Parameters
Parameter | 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
Properties
activeAlerts
protected
readonly
activeAlerts:SetSubject
<string
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:32
Inherited from
AbstractTerrainSystem
.activeAlerts
alertController
protected
readonly
alertController:TerrainSystemAlertController
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:37
Inherited from
AbstractTerrainSystem
.alertController
bus
protected
readonly
bus:EventBus
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:63
The event bus.
Inherited from
dataProvider
protected
readonly
dataProvider:TerrainSystemDataProvider
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:64
A provider of terrain system data.
Inherited from
AbstractTerrainSystem
.dataProvider
id
readonly
id:ID
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:61
This terrain system's ID.
Inherited from
idSuffix
protected
readonly
idSuffix:TerrainSystemEventSuffix
<ID
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:17
Inherited from
AbstractTerrainSystem
.idSuffix
inhibitedAlerts
protected
readonly
inhibitedAlerts:SetSubject
<string
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:31
Inherited from
AbstractTerrainSystem
.inhibitedAlerts
inhibits
protected
readonly
inhibits:SetSubject
<string
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:28
Inherited from
AbstractTerrainSystem
.inhibits
isAlive
protected
isAlive:boolean
=true
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:46
Inherited from
isInit
protected
isInit:boolean
=false
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:47
Inherited from
modules
protected
readonly
modules:TerrainSystemModule
[] =[]
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:35
Inherited from
operatingMode
protected
readonly
operatingMode:Subject
<TerrainSystemOperatingMode
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:25
Inherited from
AbstractTerrainSystem
.operatingMode
prioritizedAlert
protected
readonly
prioritizedAlert:Subject
<null
|string
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:33
Inherited from
AbstractTerrainSystem
.prioritizedAlert
prioritizedAlertSelector()
protected
readonly
prioritizedAlertSelector: (alerts
) =>null
|string
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:65
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
Parameter | Type |
---|---|
alerts | Iterable <string > |
Returns
null
| string
Inherited from
AbstractTerrainSystem
.prioritizedAlertSelector
publisher
protected
readonly
publisher:Publisher
<TerrainSystemEvents
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:23
Inherited from
AbstractTerrainSystem
.publisher
statuses
protected
readonly
statuses:SetSubject
<string
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:27
Inherited from
AbstractTerrainSystem
.statuses
subscriptions
protected
readonly
subscriptions:Subscription
[] =[]
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:49
Inherited from
AbstractTerrainSystem
.subscriptions
topicMap
protected
readonly
topicMap:object
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:19
terrainsys_active_alerts
terrainsys_active_alerts:
`terrainsys_active_alerts${TerrainSystemEventSuffix<ID>}`
The terrain system's active alerts.
terrainsys_alert_activated
terrainsys_alert_activated:
`terrainsys_alert_activated${TerrainSystemEventSuffix<ID>}`
An alert was activated by the terrain system.
terrainsys_alert_deactivated
terrainsys_alert_deactivated:
`terrainsys_alert_deactivated${TerrainSystemEventSuffix<ID>}`
An alert was deactivated by the terrain system.
terrainsys_alert_inhibited
terrainsys_alert_inhibited:
`terrainsys_alert_inhibited${TerrainSystemEventSuffix<ID>}`
An alert was inhibited by the terrain system.
terrainsys_alert_triggered
terrainsys_alert_triggered:
`terrainsys_alert_triggered${TerrainSystemEventSuffix<ID>}`
An alert was triggered by the terrain system.
terrainsys_alert_uninhibited
terrainsys_alert_uninhibited:
`terrainsys_alert_uninhibited${TerrainSystemEventSuffix<ID>}`
An alert was uninhibited by the terrain system.
terrainsys_alert_untriggered
terrainsys_alert_untriggered:
`terrainsys_alert_untriggered${TerrainSystemEventSuffix<ID>}`
An alert was untriggered by the terrain system.
terrainsys_inhibit_added
terrainsys_inhibit_added:
`terrainsys_inhibit_added${TerrainSystemEventSuffix<ID>}`
An inhibit flag was added to the terrain system.
terrainsys_inhibit_flags
terrainsys_inhibit_flags:
`terrainsys_inhibit_flags${TerrainSystemEventSuffix<ID>}`
The terrain system's active inhibit flags.
terrainsys_inhibit_removed
terrainsys_inhibit_removed:
`terrainsys_inhibit_removed${TerrainSystemEventSuffix<ID>}`
An inhibit flag was removed from the terrain system.
terrainsys_inhibited_alerts
terrainsys_inhibited_alerts:
`terrainsys_inhibited_alerts${TerrainSystemEventSuffix<ID>}`
The terrain system's inhibited alerts.
terrainsys_operating_mode
terrainsys_operating_mode:
`terrainsys_operating_mode${TerrainSystemEventSuffix<ID>}`
The current terrain system operating mode.
terrainsys_prioritized_alert
terrainsys_prioritized_alert:
`terrainsys_prioritized_alert${TerrainSystemEventSuffix<ID>}`
The terrain system's current prioritized active alert.
terrainsys_status_added
terrainsys_status_added:
`terrainsys_status_added${TerrainSystemEventSuffix<ID>}`
A status flag was added to the terrain system.
terrainsys_status_flags
terrainsys_status_flags:
`terrainsys_status_flags${TerrainSystemEventSuffix<ID>}`
The terrain system's active status flags.
terrainsys_status_removed
terrainsys_status_removed:
`terrainsys_status_removed${TerrainSystemEventSuffix<ID>}`
A status flag was removed from the terrain system.
terrainsys_triggered_alerts
terrainsys_triggered_alerts:
`terrainsys_triggered_alerts${TerrainSystemEventSuffix<ID>}`
The terrain system's triggered alerts.
terrainsys_type
terrainsys_type:
`terrainsys_type${TerrainSystemEventSuffix<ID>}`
The terrain system type.
Inherited from
AbstractTerrainSystem
.topicMap
triggeredAlerts
protected
readonly
triggeredAlerts:SetSubject
<string
>
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:30
Inherited from
AbstractTerrainSystem
.triggeredAlerts
type
readonly
type:string
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:62
This terrain system's type.
Inherited from
Methods
addInhibit()
addInhibit(
inhibit
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:254
Adds an inhibit flag to this system.
Parameters
Parameter | Type | Description |
---|---|---|
inhibit | string | The flag to add. |
Returns
void
Inherited from
AbstractTerrainSystem
.addInhibit
addModule()
addModule(
module
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:100
Adds a module to this system.
Parameters
Parameter | Type | Description |
---|---|---|
module | TerrainSystemModule | The module to add. |
Returns
void
Inherited from
AbstractTerrainSystem
.addModule
destroy()
destroy():
void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:521
Destroys this system. Once destroyed, this system can no longer be updated.
Returns
void
Inherited from
inhibitAlert()
protected
inhibitAlert(alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:473
Inhibits an alert.
Parameters
Parameter | Type | Description |
---|---|---|
alert | string | The alert to inhibit. |
Returns
void
Inherited from
AbstractTerrainSystem
.inhibitAlert
init()
init():
void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:112
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
initAlertPublishing()
protected
initAlertPublishing():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:178
Initializes publishing of this system's active alerts to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem
.initAlertPublishing
initControlEventListeners()
protected
initControlEventListeners():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:192
Initializes listeners for control events published to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem
.initControlEventListeners
initInhibitPublishing()
protected
initInhibitPublishing():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:163
Initializes publishing of this system's inhibit flags to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem
.initInhibitPublishing
initModules()
protected
initModules():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:208
Initializes this system's modules.
Returns
void
Inherited from
AbstractTerrainSystem
.initModules
initOperatingModePublishing()
protected
initOperatingModePublishing():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:141
Initializes publishing of this system's operating mode to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem
.initOperatingModePublishing
initStatusPublishing()
protected
initStatusPublishing():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:148
Initializes publishing of this system's status flags to the event bus.
Returns
void
Inherited from
AbstractTerrainSystem
.initStatusPublishing
onActiveAlertsChanged()
protected
onActiveAlertsChanged(alerts
,type
,alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:351
Responds to when the set of this system's active alerts changes.
Parameters
Parameter | 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
.onActiveAlertsChanged
onAddInhibit()
protected
onAddInhibit(inhibit
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:432
A method that is called when this system receives a command to add an inhibit flag.
Parameters
Parameter | Type | Description |
---|---|---|
inhibit | string | The flag to add. |
Returns
void
Inherited from
AbstractTerrainSystem
.onAddInhibit
onInhibitedAlertsChanged()
protected
onInhibitedAlertsChanged(alerts
,type
,alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:331
Responds to when the set of this system's inhibited alerts changes.
Parameters
Parameter | Type | Description |
---|---|---|
alerts | ReadonlySet <string > | The set of inhibited alerts. |
type | SubscribableSetEventType | The type of change that occurred. |
alert | string | The alert that was changed. |
Returns
void
Inherited from
AbstractTerrainSystem
.onInhibitedAlertsChanged
onInit()
protected
onInit():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:129
A method that is called when this system is initialized.
Returns
void
Inherited from
onOperatingModeChanged()
protected
onOperatingModeChanged(mode
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:296
Responds to when this system's operating mode changes.
Parameters
Parameter | Type | Description |
---|---|---|
mode | TerrainSystemOperatingMode | The new operating mode. |
Returns
void
Inherited from
AbstractTerrainSystem
.onOperatingModeChanged
onRemoveAllInhibits()
protected
onRemoveAllInhibits():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:447
A method that is called when this system receives a command to remove all inhibit flags.
Returns
void
Inherited from
AbstractTerrainSystem
.onRemoveAllInhibits
onRemoveInhibit()
protected
onRemoveInhibit(inhibit
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:440
A method that is called when this system receives a command to remove an inhibit flag.
Parameters
Parameter | Type | Description |
---|---|---|
inhibit | string | The flag to remove. |
Returns
void
Inherited from
AbstractTerrainSystem
.onRemoveInhibit
onStartTest()
protected
onStartTest():void
Defined in: src/garminsdk/terrain/GarminTaws.ts:72
A method that is called when this system receives a command to start a self-test.
Returns
void
Overrides
AbstractTerrainSystem
.onStartTest
onTriggeredAlertsChanged()
protected
onTriggeredAlertsChanged(alerts
,type
,alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:311
Responds to when the set of this system's triggered alerts changes.
Parameters
Parameter | Type | Description |
---|---|---|
alerts | ReadonlySet <string > | The set of triggered alerts. |
type | SubscribableSetEventType | The type of change that occurred. |
alert | string | The alert that was changed. |
Returns
void
Inherited from
AbstractTerrainSystem
.onTriggeredAlertsChanged
onTurnOff()
protected
onTurnOff():void
Defined in: src/garminsdk/terrain/GarminTaws.ts:67
A method that is called when this system receives a command to turn off.
Returns
void
Overrides
AbstractTerrainSystem
.onTurnOff
onTurnOn()
protected
onTurnOn():void
Defined in: src/garminsdk/terrain/GarminTaws.ts:58
A method that is called when this system receives a command to turn on.
Returns
void
Overrides
AbstractTerrainSystem
.onTurnOn
onUpdate()
protected
onUpdate():void
Defined in: src/garminsdk/terrain/GarminTaws.ts:95
A method that is called when this system is updated.
Returns
void
Overrides
AbstractTerrainSystem
.onUpdate
publishActiveAlert()
protected
publishActiveAlert(alerts
,type
,alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:397
Publishes data to event bus alert topics based on a change to this system's active alerts.
Parameters
Parameter | 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
.publishActiveAlert
publishInhibitedAlert()
protected
publishInhibitedAlert(alerts
,type
,alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:381
Publishes data to event bus alert topics based on a change to this system's active alerts.
Parameters
Parameter | 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
.publishInhibitedAlert
publishTriggeredAlert()
protected
publishTriggeredAlert(alerts
,type
,alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:365
Publishes data to event bus alert topics based on a change to this system's active alerts.
Parameters
Parameter | 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
.publishTriggeredAlert
removeAllInhibits()
removeAllInhibits():
void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:280
Removes all inhibit flags from this system.
Returns
void
Inherited from
AbstractTerrainSystem
.removeAllInhibits
removeInhibit()
removeInhibit(
inhibit
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:267
Removes an inhibit flag from this system.
Parameters
Parameter | Type | Description |
---|---|---|
inhibit | string | The flag to remove. |
Returns
void
Inherited from
AbstractTerrainSystem
.removeInhibit
startTest()
startTest():
void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:241
Begins a self-test of this system.
Returns
void
Inherited from
AbstractTerrainSystem
.startTest
triggerAlert()
protected
triggerAlert(alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:455
Triggers an alert.
Parameters
Parameter | Type | Description |
---|---|---|
alert | string | The alert to trigger. |
Returns
void
Inherited from
AbstractTerrainSystem
.triggerAlert
turnOff()
turnOff():
void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:228
Turns this system off.
Returns
void
Inherited from
turnOn()
turnOn():
void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:215
Turns this system on.
Returns
void
Inherited from
uninhibitAlert()
protected
uninhibitAlert(alert
):void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:481
Uninhibits an alert.
Parameters
Parameter | Type | Description |
---|---|---|
alert | string | The alert to uninhibit. |
Returns
void
Inherited from
AbstractTerrainSystem
.uninhibitAlert
untriggerAlert()
protected
untriggerAlert(alert
):void
Defined in: src/garminsdk/terrain/GarminTaws.ts:82
Untriggers an alert.
Parameters
Parameter | Type | Description |
---|---|---|
alert | string | The alert to untrigger. |
Returns
void
Overrides
AbstractTerrainSystem
.untriggerAlert
update()
update():
void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:486
Updates this system.
Returns
void
Inherited from
updateModules()
protected
updateModules():void
Defined in: src/garminsdk/terrain/AbstractTerrainSystem.ts:508
Updates this system's modules.
Returns
void