Class: G3XNavDataBarFieldWxAltimModelFactory
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarFields/G3XNavDataBarFieldTypeModelFactories.ts:17
Creates data models for Weather Altimeter navigation data bar fields.
The models retrieve METAR data from a FacilityLoader using position data sourced from the gps-position
event bus topic (defined in GNSSEvents).
Extends
Constructors
Constructor
new G3XNavDataBarFieldWxAltimModelFactory(
bus,facLoader):G3XNavDataBarFieldWxAltimModelFactory
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarFields/G3XNavDataBarFieldTypeModelFactories.ts:28
Creates a new instance of G3XNavDataBarFieldWxAltimModelFactory.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
facLoader | FacilityLoader | The facility loader to use to fetch METAR data. |
Returns
G3XNavDataBarFieldWxAltimModelFactory
Overrides
EventBusNavDataBarFieldTypeModelFactory.constructor
Properties
sub
protectedreadonlysub:EventSubscriber<GNSSEvents>
Defined in: src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12
Inherited from
EventBusNavDataBarFieldTypeModelFactory.sub
Methods
create()
create(
gpsValidity):NavDataBarFieldModel<NumberUnitInterface<Pressure,Unit<Pressure>>>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarFields/G3XNavDataBarFieldTypeModelFactories.ts:33
Creates a navigation data bar field data model for this factory's data field type.
Parameters
| Parameter | Type | Description |
|---|---|---|
gpsValidity | Subscribable<NavDataFieldGpsValidity> | The subscribable that provides the validity of the GPS data for the models. |
Returns
NavDataBarFieldModel<NumberUnitInterface<Pressure, Unit<Pressure>>>
A navigation data bar field data model for this factory's data field type.