Class: NavDataBarFieldVsrModelFactory
Creates data models for Vertical Speed Required navigation data bar fields.
Hierarchy
EventBusNavDataBarFieldTypeModelFactory
<VerticalSpeedRequired
,GarminVNavEvents
&GarminVNavDataEvents
>↳
NavDataBarFieldVsrModelFactory
Constructors
constructor
• new NavDataBarFieldVsrModelFactory(bus
, vnavIndex?
): NavDataBarFieldVsrModelFactory
Creates a new instance of NavDataBarFieldVsrModelFactory.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
bus | EventBus | undefined | The event bus. |
vnavIndex | number | Subscribable <number > | 0 | The index of the VNAV from which to source data. Defaults to 0 . |
Returns
NavDataBarFieldVsrModelFactory
Overrides
EventBusNavDataBarFieldTypeModelFactory.constructor
Defined in
src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:1038
Properties
sub
• Protected
Readonly
sub: EventSubscriber
<GarminVNavEvents
& GarminVNavDataEvents
>
Inherited from
EventBusNavDataBarFieldTypeModelFactory.sub
Defined in
src/garminsdk/components/navdatabar/EventBusNavDataBarFieldTypeModelFactory.ts:12
vnavIndex
• Protected
Readonly
vnavIndex: number
| Subscribable
<number
> = 0
The index of the VNAV from which to source data. Defaults to 0
.
Defined in
src/garminsdk/components/navdatabar/NavDataBarFieldTypeModelFactories.ts:1038
Methods
create
▸ create(gpsValidity
): NavDataBarFieldModel
<NumberUnitInterface
<Speed
, Unit
<Speed
>>>
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
<Speed
, Unit
<Speed
>>>
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:1043