Skip to main content

Class: NavDataBarFieldVsrModelFactory

Creates data models for Vertical Speed Required navigation data bar fields.

Hierarchy

Constructors

constructor

new NavDataBarFieldVsrModelFactory(bus, vnavIndex?): NavDataBarFieldVsrModelFactory

Creates a new instance of NavDataBarFieldVsrModelFactory.

Parameters

NameTypeDefault valueDescription
busEventBusundefinedThe event bus.
vnavIndexnumber | Subscribable<number>0The 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

NameTypeDescription
gpsValiditySubscribable<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