Skip to main content

Class: DefaultFlightPlanDataFieldCalculatorRepo

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:30

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

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:123

Creates a new instance of DefaultFlightPlanDataFieldCalculatorRepo.

Parameters

ParameterTypeDescription
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

Properties

isUsingPlanFuelFlow

readonly isUsingPlanFuelFlow: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:73

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


isUsingPlanSpeed

readonly isUsingPlanSpeed: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:53

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

Methods

destroy()

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:237

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

Returns

void


get()

get(type): FlightPlanDataFieldCalculator

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:190

Retrieves a flight plan data field calculator.

Parameters

ParameterTypeDescription
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


setLNavIndex()

setLNavIndex(index): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/DefaultFlightPlanDataFieldCalculatorRepo.ts:163

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

Parameters

ParameterTypeDescription
indexnumberThe index of the LNAV to set.

Returns

void

Throws

Error if this reposity has been destroyed.