Class: NavDataBarFieldFodModelFactory
Creates data models for Fuel Over Destination navigation data bar fields.
Hierarchy
EventBusNavDataBarFieldTypeModelFactory
<FuelOverDestination
,GNSSEvents
&LNavEvents
&LNavDataEvents
&EngineEvents
>↳
NavDataBarFieldFodModelFactory
Constructors
constructor
• new NavDataBarFieldFodModelFactory(bus
, lnavIndex?
): NavDataBarFieldFodModelFactory
Creates a new instance of NavDataBarFieldFodModelFactory.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
bus | EventBus | undefined | The event bus. |
lnavIndex | number | Subscribable <number > | 0 | The index of the LNAV from which to source data. Defaults to 0 . |
Returns
NavDataBarFieldFodModelFactory
Overrides
EventBusNavDataBarFieldTypeModelFactory.constructor
Defined in
src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:683
Properties
lnavIndex
• Protected
Readonly
lnavIndex: number
| Subscribable
<number
> = 0
The index of the LNAV from which to source data. Defaults to 0
.
Defined in
src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:683
sub
• Protected
Readonly
sub: EventSubscriber
<GNSSEvents
& LNavEvents
& LNavDataEvents
& BaseEngineEvents
& IndexedEvents
<EngineIndexedTopics
, number
> & EngineIndexedEvents
>
Inherited from
EventBusNavDataBarFieldTypeModelFactory.sub
Defined in
src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12
Methods
create
▸ create(gpsValidity
): NavDataBarFieldModel
<NumberUnitInterface
<Weight
, Unit
<Weight
>>>
Creates a navigation data bar field data model for this factory's data field type.
Parameters
Name | Type | Description |
---|---|---|
gpsValidity | Subscribable <NavDataFieldGpsValidity > | The subscribable that provides the validity of the GPS data for the models. |
Returns
NavDataBarFieldModel
<NumberUnitInterface
<Weight
, Unit
<Weight
>>>
A navigation data bar field data model for this factory's data field type.
Overrides
EventBusNavDataBarFieldTypeModelFactory.create
Defined in
src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:688