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
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
fmsPosIndex | number | Subscribable<number> | The index of the FMS geo-positioning system from which the repository's calculators will source data. |
planSpeed | Subscribable<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. |
planFuelFlow | Subscribable<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
readonlyisUsingPlanFuelFlow: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
readonlyisUsingPlanSpeed: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
| Parameter | Type | Description |
|---|---|---|
type | FlightPlanDataFieldType | The data field type for which to retrieve a calculator. |
Returns
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
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the LNAV to set. |
Returns
void
Throws
Error if this reposity has been destroyed.