Skip to main content

Class: DefaultFlightPlanDataFieldCalculatorRepo

An implementation of FlightPlanDataFieldCalculatorRepo that retrieves a flight plan data field calculators with default behavior.

Implements

Constructors

constructor

new DefaultFlightPlanDataFieldCalculatorRepo(bus, fmsPosIndex, planSpeed, planFuelFlow, options?): DefaultFlightPlanDataFieldCalculatorRepo

Creates a new instance of DefaultFlightPlanDataFieldCalculatorRepo.

Parameters

NameTypeDescription
busEventBusThe event bus.
fmsPosIndexnumber | Subscribable<number>The index of the FMS geo-positioning system from which the repository's calculators will source data.
planSpeedSubscribable<number>The fallback flight plan ground speed, in knots, used by this repository's calculators when the airplane's sensed ground speed cannot be used.
planFuelFlowSubscribable<number>The fallback flight plan fuel flow, in gallons per hour, used by this repository's calculators when the airplane's sensed fuel flow cannot be used.
options?Readonly<DefaultFlightPlanDataFieldCalculatorRepoOptions>Options with which to configure the repository.

Returns

DefaultFlightPlanDataFieldCalculatorRepo

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:123

Properties

isUsingPlanFuelFlow

Readonly isUsingPlanFuelFlow: Subscribable<boolean>

Whether this repository's calculators are currently using fallback flight plan fuel flow for calculations.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:73


isUsingPlanSpeed

Readonly isUsingPlanSpeed: Subscribable<boolean>

Whether this repository's calculators are currently using fallback flight plan ground speed for calculations.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:53

Methods

destroy

destroy(): void

Destroys this repository. Once this repository is destroyed, it can longer be manipulated and cannot be used to retrieve calculators.

Returns

void

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:237


get

get(type): FlightPlanDataFieldCalculator

Retrieves a flight plan data field calculator.

Parameters

NameTypeDescription
typeFlightPlanDataFieldTypeThe data field type for which to retrieve a calculator.

Returns

FlightPlanDataFieldCalculator

A flight plan data field calculator for the specified data field type.

Implementation of

FlightPlanDataFieldCalculatorRepo.get

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:190


setLNavIndex

setLNavIndex(index): void

Sets the index of the LNAV from which this repository's calculators source data.

Parameters

NameTypeDescription
indexnumberThe index of the LNAV to set.

Returns

void

Throws

Error if this reposity has been destroyed.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:163