Skip to main content

Class: FlightPlanStore

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:32

Listens for flight plan events, and stores data as subjects to be used by the gtc flight plan page.

Constructors​

Constructor​

new FlightPlanStore(bus, fms, planIndex, flightPlanner, verticalPathCalculator, perfPlanRepository, settings, speedPredictions?): FlightPlanStore

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:350

Creates a new FlightPlanStore.

Parameters​

ParameterTypeDescription
busEventBusThe EventBus.
fmsEpic2FmsThe Epic2Fms.
planIndexnumberWhich flight plan index to listen to.
flightPlannerFlightPlannerThe flight planner.
verticalPathCalculatorSmoothingPathCalculatorThe vertical path calculator.
perfPlanRepositoryPerformancePlanRepository<Epic2PerformancePlan>The performance plan repository.
settingsUserSettingManager<MfdAliasedUserSettingTypes>The settings manager.
speedPredictions?Epic2SpeedPredictionsThe active flight plan speed predictions

Returns​

FlightPlanStore

Properties​

activeLeg​

readonly activeLeg: Subscribable<LegDefinition | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:220


activeLegDistance​

readonly activeLegDistance: Subscribable<NumberUnitInterface<Distance, SimpleUnit<Distance>>>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:218


activeLegDtkMag​

readonly activeLegDtkMag: Subscribable<NumberUnitInterface<"navangle", NavAngleUnit>>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:214


activeLegDtkTrue​

readonly activeLegDtkTrue: Subscribable<NumberUnitInterface<"navangle", NavAngleUnit>>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:216


activeLegGlobalIndex​

readonly activeLegGlobalIndex: Subscribable<number | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:212


activeLegListData​

readonly activeLegListData: Subscribable<FlightPlanLegData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:222


activeLegSegment​

readonly activeLegSegment: Subscribable<FlightPlanSegment | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:228


activeLegSegmentIndex​

readonly activeLegSegmentIndex: Subscribable<number | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:224


activeLegSegmentType​

readonly activeLegSegmentType: Subscribable<FlightPlanSegmentType | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:226


activePlanIndex​

readonly activePlanIndex: Subscribable<number | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:49


amendWaypointForDisplay​

readonly amendWaypointForDisplay: Subject<FlightPlanLegData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:202


approachForDisplay​

readonly approachForDisplay: Subscribable<ApproachProcedure | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:178


approachIndex​

readonly approachIndex: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:180


approachName​

readonly approachName: MappedSubscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:181


approachProcedure​

readonly approachProcedure: Subscribable<ApproachProcedure | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:171


approachSegmentData​

readonly approachSegmentData: Subscribable<FlightPlanSegmentData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:192


approachStringPrefix​

readonly approachStringPrefix: MappedSubscribable<"VTF Apr – " | "Approach – ">

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:186


approachTransition​

readonly approachTransition: Subscribable<ApproachTransition | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:183


approachTransitionIndex​

readonly approachTransitionIndex: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:185


arrivalFacility​

readonly arrivalFacility: Subscribable<AirportFacility | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:149


arrivalFacilityIcao​

readonly arrivalFacilityIcao: Subscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:147


arrivalIndex​

readonly arrivalIndex: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:135


arrivalProcedure​

readonly arrivalProcedure: Subscribable<Procedure | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:137


arrivalRunway​

readonly arrivalRunway: Subscribable<OneWayRunway | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:145


arrivalRunwayTransition​

readonly arrivalRunwayTransition: Subscribable<RunwayTransition | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:143


arrivalRunwayTransitionIndex​

readonly arrivalRunwayTransitionIndex: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:151


arrivalSegmentData​

readonly arrivalSegmentData: Subscribable<FlightPlanSegmentData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:161


arrivalString​

readonly arrivalString: MappedSubject<[AirportFacility | undefined, number, number, OneWayRunway | undefined], string>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:152


arrivalStringFull​

readonly arrivalStringFull: MappedSubscribable<string>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:159


arrivalTransition​

readonly arrivalTransition: Subscribable<EnrouteTransition | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:139


arrivalTransitionIndex​

readonly arrivalTransitionIndex: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:141


beforeFlightPlanLoaded​

readonly beforeFlightPlanLoaded: SubEvent<void, FlightPlan>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:324


bus​

readonly bus: EventBus

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:351

The EventBus.


departureProcedure​

readonly departureProcedure: Subscribable<Procedure | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:70


departureProcedureIndex​

readonly departureProcedureIndex: Subscribable<number | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:72


departureRunwayTransitionIndex​

readonly departureRunwayTransitionIndex: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:79


departureSegmentData​

readonly departureSegmentData: Subscribable<FlightPlanSegmentData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:113


departureString​

readonly departureString: MappedSubject<[AirportFacility | undefined, number | undefined, number, OneWayRunway | undefined], string>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:80


departureText1​

readonly departureText1: MappedSubject<[string | undefined, Procedure | undefined, string | undefined], string>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:87


departureText2​

readonly departureText2: MappedSubject<[string | undefined, Procedure | undefined, string | undefined, string], string>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:98


departureTextOneLine​

readonly departureTextOneLine: MappedSubject<[string, string], string>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:109


departureTransition​

readonly departureTransition: Subscribable<EnrouteTransition | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:74


departureTransitionIndex​

readonly departureTransitionIndex: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:77


departureTransitionName​

readonly departureTransitionName: MappedSubscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:75


destinationDistanceToGo​

readonly destinationDistanceToGo: Subscribable<NumberUnitInterface<Distance, Unit<Distance>>>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:304


destinationEstimatedTimeEnroute​

readonly destinationEstimatedTimeEnroute: Subscribable<NumberUnitInterface<Duration, Unit<Duration>>>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:307


destinationFacility​

readonly destinationFacility: Subscribable<AirportFacility | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:119


destinationFuelRemaining​

readonly destinationFuelRemaining: Subscribable<NumberUnitInterface<Weight, Unit<Weight>>>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:310


destinationIdent​

readonly destinationIdent: Subscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:117


destinationLeg​

readonly destinationLeg: AbstractSubscribable<FlightPlanLegData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:301


destinationRunway​

readonly destinationRunway: Subscribable<OneWayRunway | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:121


destinationRunwayName​

readonly destinationRunwayName: MappedSubscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:122


destinationString​

readonly destinationString: MappedSubject<[string | undefined, string | undefined], string>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:123


directToData​

readonly directToData: Subscribable<FlightPlanLegIndexes>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:232


directToExistingLeg​

readonly directToExistingLeg: MappedSubject<[FlightPlanLegIndexes, DirectToState], LegDefinition | null | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:249


directToOriginalLeg​

readonly directToOriginalLeg: Subject<number | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:234


directToRandomHoldLegData​

readonly directToRandomHoldLegData: Subscribable<FlightPlanLegData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:245


directToRandomHoldLegListData​

readonly directToRandomHoldLegListData: MappedSubscribable<FlightPlanLegListData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:246


directToRandomLegData​

readonly directToRandomLegData: Subscribable<FlightPlanLegData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:240


directToRandomLegListData​

readonly directToRandomLegListData: MappedSubscribable<FlightPlanLegListData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:241


directToState​

readonly directToState: MappedSubject<[number | undefined, FlightPlanLegIndexes, LegDefinition | undefined], DirectToState>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:233


flightArea​

readonly flightArea: ConsumerSubject<Epic2FlightArea>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:205


flightPlanLegsChanged​

readonly flightPlanLegsChanged: ReadonlySubEvent<void, FlightPlan>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:57

An event which fires when legs are added to or removed from this store's flight plan.


flightPlanName​

readonly flightPlanName: Subscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:52


fms​

readonly fms: Epic2Fms

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:352

The Epic2Fms.


fromLeg​

readonly fromLeg: Subscribable<LegDefinition | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:271


fromLegSegment​

readonly fromLegSegment: MappedSubscribable<FlightPlanSegment | null | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:272


isApproachLoaded​

readonly isApproachLoaded: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:169


isDirectToExistingActive​

readonly isDirectToExistingActive: MappedSubscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:237


isDirectToRandomActive​

readonly isDirectToRandomActive: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:236


isDirectToRandomActiveWithHold​

readonly isDirectToRandomActiveWithHold: MappedSubject<[boolean, FlightPlanLegListData | undefined, FlightPlanLegListData | undefined], false | "with-hold" | "no-hold">

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:254


isDirectToRandomHoldLegActive​

readonly isDirectToRandomHoldLegActive: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:265


isDtoRandomEntryShown​

readonly isDtoRandomEntryShown: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:267


isExitingHold​

readonly isExitingHold: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:204


isFlightPlanListExpanded​

readonly isFlightPlanListExpanded: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:207


isInHold​

readonly isInHold: ConsumerSubject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:203


isLnavTracking​

readonly isLnavTracking: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:208


isThereAtLeastOneLeg​

readonly isThereAtLeastOneLeg: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:200


legAdded​

readonly legAdded: SubEvent<void, [FlightPlanLegData, number, number]>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:329


legMap​

readonly legMap: ReadonlyMap<LegDefinition, FlightPlanLegData>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:44

Unordered map of leg definitions to leg list data items. Legs are added/removed to/from this map to match the flight plan.


legRemoved​

readonly legRemoved: SubEvent<void, FlightPlanLegData>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:330


originFacility​

readonly originFacility: Subscribable<AirportFacility | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:63


originIdent​

readonly originIdent: Subscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:61


originRunway​

readonly originRunway: Subscribable<OneWayRunway | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:65


originRunwayName​

readonly originRunwayName: MappedSubscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:66


perfPlanRepository​

readonly perfPlanRepository: PerformancePlanRepository<Epic2PerformancePlan>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:356

The performance plan repository.


planIndex​

readonly planIndex: number

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:353

Which flight plan index to listen to.


planLength​

readonly planLength: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:198


segmentAdded​

readonly segmentAdded: SubEvent<void, FlightPlanSegmentData>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:325


segmentChanged​

readonly segmentChanged: SubEvent<void, [FlightPlanSegmentData, number]>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:328


segmentInserted​

readonly segmentInserted: SubEvent<void, FlightPlanSegmentData>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:326


segmentMap​

readonly segmentMap: ReadonlyMap<FlightPlanSegment, FlightPlanSegmentData>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:39

Unordered map of FlightPlanSegments to segment list data items. Segments are added/removed to/from this map to match the flight plan.


segmentRemoved​

readonly segmentRemoved: SubEvent<void, [FlightPlanSegmentData, number]>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:327


selectedEnrouteWaypoint​

readonly selectedEnrouteWaypoint: Subject<FlightPlanListData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:201


selectedRnavMinima​

readonly selectedRnavMinima: Subscribable<RnavMinima>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:194


settings​

readonly settings: UserSettingManager<MfdAliasedUserSettingTypes>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:357

The settings manager.


skipCourseReversal​

readonly skipCourseReversal: Subscribable<boolean | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:167


tocBeforeTod​

readonly tocBeforeTod: MappedSubject<[number, number], boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:321


tocDistance​

readonly tocDistance: ConsumerSubject<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:320


tocIndex​

readonly tocIndex: ConsumerSubject<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:318


todIndex​

readonly todIndex: ConsumerSubject<number>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:317


toLeg​

readonly toLeg: MappedSubject<[LegDefinition | undefined], FlightPlanLegData | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:280


toLegSegment​

readonly toLegSegment: MappedSubscribable<FlightPlanSegment | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:297


visualApproachOneWayRunwayDesignation​

readonly visualApproachOneWayRunwayDesignation: Subscribable<string | undefined>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:165


vtfApproachState​

readonly vtfApproachState: Subject<VectorToFinalStates>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:206

Methods​

getCurrentAltitude()​

getCurrentAltitude(): number

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:503

Gets the current altitude.

Returns​

number

The current altitude.


getSelectedAltitude()​

getSelectedAltitude(): number

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:511

Gets the selected altitude.

Returns​

number

The selected altitude.


init()​

init(): void

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:391

Tells the store to subscribe to the event bus.

Returns​

void

Throws​

Error if already initialized.


legItems()​

legItems(startIndex?): Generator<FlightPlanLegData, void>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:520

Gets the leg list data items in forward order.

Parameters​

ParameterTypeDescription
startIndex?numberThe global leg index of the leg with which to start. Defaults to 0.

Returns​

Generator<FlightPlanLegData, void>

Yields​

The leg list data items in forward order.