Skip to main content

Class: FlightPlanStore

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:26

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, isAdvancedVnav): FlightPlanStore

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:306

Creates a new FlightPlanStore.

Parameters​

ParameterTypeDescription
busEventBusThe EventBus.
fmsFms<"">The Fms.
planIndexnumberWhich flight plan index to listen to.
isAdvancedVnavbooleanWhether to use advanced VNAV or not.

Returns​

FlightPlanStore

Properties​

activeLeg​

readonly activeLeg: Subscribable<undefined | LegDefinition>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:207


activeLegDistance​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:205


activeLegDtkMag​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:201


activeLegDtkTrue​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:203


activeLegGlobalIndex​

readonly activeLegGlobalIndex: Subscribable<undefined | number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:199


activeLegListData​

readonly activeLegListData: Subscribable<undefined | FlightPlanLegData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:209


activeLegSegmentIndex​

readonly activeLegSegmentIndex: Subscribable<undefined | number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:211


activePlanIndex​

readonly activePlanIndex: Subscribable<undefined | number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:42


addEnrouteWaypointButtonIsVisible​

readonly addEnrouteWaypointButtonIsVisible: Subject<boolean>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:195


approachForDisplay​

readonly approachForDisplay: Subscribable<undefined | ApproachProcedure>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:175


approachIndex​

readonly approachIndex: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:177


approachName​

readonly approachName: MappedSubscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:178


approachProcedure​

readonly approachProcedure: Subscribable<undefined | ApproachProcedure>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:162


approachSegmentData​

readonly approachSegmentData: Subscribable<undefined | FlightPlanSegmentData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:189


approachStringPrefix​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:183


approachTransition​

readonly approachTransition: Subscribable<undefined | ApproachTransition>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:180


approachTransitionIndex​

readonly approachTransitionIndex: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:182


arrivalFacility​

readonly arrivalFacility: Subscribable<undefined | AirportFacility>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:140


arrivalFacilityIcao​

readonly arrivalFacilityIcao: Subscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:138


arrivalIndex​

readonly arrivalIndex: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:126


arrivalProcedure​

readonly arrivalProcedure: Subscribable<undefined | Procedure>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:128


arrivalRunway​

readonly arrivalRunway: Subscribable<undefined | OneWayRunway>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:136


arrivalRunwayTransition​

readonly arrivalRunwayTransition: Subscribable<undefined | RunwayTransition>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:134


arrivalRunwayTransitionIndex​

readonly arrivalRunwayTransitionIndex: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:142


arrivalSegmentData​

readonly arrivalSegmentData: Subscribable<undefined | FlightPlanSegmentData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:152


arrivalString​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:143


arrivalStringFull​

readonly arrivalStringFull: MappedSubscribable<string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:150


arrivalTransition​

readonly arrivalTransition: Subscribable<undefined | EnrouteTransition>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:130


arrivalTransitionIndex​

readonly arrivalTransitionIndex: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:132


beforeFlightPlanLoaded​

readonly beforeFlightPlanLoaded: SubEvent<void, FlightPlan>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:284


bus​

readonly bus: EventBus

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:307

The EventBus.


departureProcedure​

readonly departureProcedure: Subscribable<undefined | Procedure>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:63


departureRunwayTransitionIndex​

readonly departureRunwayTransitionIndex: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:70


departureSegmentData​

readonly departureSegmentData: Subscribable<undefined | FlightPlanSegmentData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:104


departureString​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:71


departureText1​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:78


departureText2​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:89


departureTextOneLine​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:100


departureTransition​

readonly departureTransition: Subscribable<undefined | EnrouteTransition>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:65


departureTransitionIndex​

readonly departureTransitionIndex: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:68


departureTransitionName​

readonly departureTransitionName: MappedSubscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:66


destinationFacility​

readonly destinationFacility: Subscribable<undefined | AirportFacility>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:110


destinationIdent​

readonly destinationIdent: Subscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:108


destinationRunway​

readonly destinationRunway: Subscribable<undefined | OneWayRunway>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:112


destinationRunwayName​

readonly destinationRunwayName: MappedSubscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:113


destinationString​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:114


directToData​

readonly directToData: Subscribable<DirectToData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:215


directToExistingLeg​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:230


directToRandomHoldLegData​

readonly directToRandomHoldLegData: Subscribable<undefined | FlightPlanLegData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:226


directToRandomHoldLegListData​

readonly directToRandomHoldLegListData: MappedSubscribable<undefined | FlightPlanLegListData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:227


directToRandomLegData​

readonly directToRandomLegData: Subscribable<undefined | FlightPlanLegData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:221


directToRandomLegListData​

readonly directToRandomLegListData: MappedSubscribable<undefined | FlightPlanLegListData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:222


directToState​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:216


flightPlanLegsChanged​

readonly flightPlanLegsChanged: ReadonlySubEvent<void, FlightPlan>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:50

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


flightPlanName​

readonly flightPlanName: Subscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:45


fms​

readonly fms: Fms<"">

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:308

The Fms.


fromLeg​

readonly fromLeg: Subscribable<undefined | LegDefinition>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:250


fromLegSegment​

readonly fromLegSegment: MappedSubscribable<undefined | null | FlightPlanSegment>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:251


isAdvancedVnav​

readonly isAdvancedVnav: boolean

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:310

Whether to use advanced VNAV or not.


isApproachLoaded​

readonly isApproachLoaded: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:160


isDirectToExistingActive​

readonly isDirectToExistingActive: MappedSubscribable<boolean>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:218


isDirectToRandomActive​

readonly isDirectToRandomActive: MappedSubscribable<boolean>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:217


isDirectToRandomActiveWithHold​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:235


isDirectToRandomHoldLegActive​

readonly isDirectToRandomHoldLegActive: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:246


isThereAtLeastOneLeg​

readonly isThereAtLeastOneLeg: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:193


legAdded​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:289


legMap​

readonly legMap: ReadonlyMap<LegDefinition, FlightPlanLegData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:37

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: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:290


originFacility​

readonly originFacility: Subscribable<undefined | AirportFacility>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:56


originIdent​

readonly originIdent: Subscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:54


originRunway​

readonly originRunway: Subscribable<undefined | OneWayRunway>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:58


originRunwayName​

readonly originRunwayName: MappedSubscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:59


planIndex​

readonly planIndex: number

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:309

Which flight plan index to listen to.


segmentAdded​

readonly segmentAdded: SubEvent<void, FlightPlanSegmentData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:285


segmentChanged​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:288


segmentInserted​

readonly segmentInserted: SubEvent<void, FlightPlanSegmentData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:286


segmentMap​

readonly segmentMap: ReadonlyMap<FlightPlanSegment, FlightPlanSegmentData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:32

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: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:287


skipCourseReversal​

readonly skipCourseReversal: Subscribable<undefined | boolean>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:158


toLeg​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:259


toLegSegment​

readonly toLegSegment: MappedSubscribable<undefined | FlightPlanSegment>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:275


visualApproachOneWayRunwayDesignation​

readonly visualApproachOneWayRunwayDesignation: Subscribable<undefined | string>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:156

Methods​

getCurrentAltitude()​

getCurrentAltitude(): number

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:377

Gets the current altitude.

Returns​

number

The current altitude.


getSelectedAltitude()​

getSelectedAltitude(): number

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:385

Gets the selected altitude.

Returns​

number

The selected altitude.


init()​

init(): void

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:317

Tells the store to subscribe to the event bus.

Returns​

void

Throws​

Error if already initialized.


legItems()​

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

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:394

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.