Class: FlightPlanStore
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:23
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:303
Creates a new FlightPlanStore.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The EventBus. |
fms | Fms<""> | The Fms. |
planIndex | number | Which flight plan index to listen to. |
isAdvancedVnav | boolean | Whether to use advanced VNAV or not. |
Returns
FlightPlanStore
Properties
activeLeg
readonlyactiveLeg:Subscribable<LegDefinition|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:204
activeLegDistance
readonlyactiveLegDistance:Subscribable<NumberUnitInterface<Distance,SimpleUnit<Distance>>>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:202
activeLegDtkMag
readonlyactiveLegDtkMag:Subscribable<NumberUnitInterface<"navangle",NavAngleUnit>>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:198
activeLegDtkTrue
readonlyactiveLegDtkTrue:Subscribable<NumberUnitInterface<"navangle",NavAngleUnit>>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:200
activeLegGlobalIndex
readonlyactiveLegGlobalIndex:Subscribable<number|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:196
activeLegListData
readonlyactiveLegListData:Subscribable<FlightPlanLegData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:206
activeLegSegmentIndex
readonlyactiveLegSegmentIndex:Subscribable<number|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:208
activePlanIndex
readonlyactivePlanIndex:Subscribable<number|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:39
addEnrouteWaypointButtonIsVisible
readonlyaddEnrouteWaypointButtonIsVisible:Subject<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:192
approachForDisplay
readonlyapproachForDisplay:Subscribable<ApproachProcedure|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:172
approachIndex
readonlyapproachIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:174
approachName
readonlyapproachName:MappedSubscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:175
approachProcedure
readonlyapproachProcedure:Subscribable<ApproachProcedure|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:159
approachSegmentData
readonlyapproachSegmentData:Subscribable<FlightPlanSegmentData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:186
approachStringPrefix
readonlyapproachStringPrefix:MappedSubscribable<"VTF Apr – "|"Approach – ">
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:180
approachTransition
readonlyapproachTransition:Subscribable<ApproachTransition|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:177
approachTransitionIndex
readonlyapproachTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:179
arrivalFacility
readonlyarrivalFacility:Subscribable<AirportFacility|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:137
arrivalFacilityIcao
readonlyarrivalFacilityIcao:Subscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:135
arrivalIndex
readonlyarrivalIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:123
arrivalProcedure
readonlyarrivalProcedure:Subscribable<Procedure|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:125
arrivalRunway
readonlyarrivalRunway:Subscribable<OneWayRunway|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:133
arrivalRunwayTransition
readonlyarrivalRunwayTransition:Subscribable<RunwayTransition|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:131
arrivalRunwayTransitionIndex
readonlyarrivalRunwayTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:139
arrivalSegmentData
readonlyarrivalSegmentData:Subscribable<FlightPlanSegmentData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:149
arrivalString
readonlyarrivalString:MappedSubject<[AirportFacility|undefined,Procedure|undefined,number,OneWayRunway|undefined],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:140
arrivalStringFull
readonlyarrivalStringFull:MappedSubscribable<string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:147
arrivalTransition
readonlyarrivalTransition:Subscribable<EnrouteTransition|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:127
arrivalTransitionIndex
readonlyarrivalTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:129
beforeFlightPlanLoaded
readonlybeforeFlightPlanLoaded:SubEvent<void,FlightPlan>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:281
bus
readonlybus:EventBus
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:304
The EventBus.
departureProcedure
readonlydepartureProcedure:Subscribable<Procedure|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:60
departureRunwayTransitionIndex
readonlydepartureRunwayTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:67
departureSegmentData
readonlydepartureSegmentData:Subscribable<FlightPlanSegmentData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:101
departureString
readonlydepartureString:MappedSubject<[AirportFacility|undefined,Procedure|undefined,number,OneWayRunway|undefined],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:68
departureText1
readonlydepartureText1:MappedSubject<[string|undefined,Procedure|undefined,string|undefined],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:75
departureText2
readonlydepartureText2:MappedSubject<[string|undefined,Procedure|undefined,string|undefined,string],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:86
departureTextOneLine
readonlydepartureTextOneLine:MappedSubject<[string,string],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:97
departureTransition
readonlydepartureTransition:Subscribable<EnrouteTransition|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:62
departureTransitionIndex
readonlydepartureTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:65
departureTransitionName
readonlydepartureTransitionName:MappedSubscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:63
destinationFacility
readonlydestinationFacility:Subscribable<AirportFacility|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:107
destinationIdent
readonlydestinationIdent:Subscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:105
destinationRunway
readonlydestinationRunway:Subscribable<OneWayRunway|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:109
destinationRunwayName
readonlydestinationRunwayName:MappedSubscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:110
destinationString
readonlydestinationString:MappedSubject<[string|undefined,string|undefined],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:111
directToData
readonlydirectToData:Subscribable<FlightPlanLegIndexes>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:212
directToExistingLeg
readonlydirectToExistingLeg:MappedSubject<[FlightPlanLegIndexes,DirectToState],LegDefinition|null|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:227
directToRandomHoldLegData
readonlydirectToRandomHoldLegData:Subscribable<FlightPlanLegData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:223
directToRandomHoldLegListData
readonlydirectToRandomHoldLegListData:MappedSubscribable<FlightPlanLegListData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:224
directToRandomLegData
readonlydirectToRandomLegData:Subscribable<FlightPlanLegData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:218
directToRandomLegListData
readonlydirectToRandomLegListData:MappedSubscribable<FlightPlanLegListData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:219
directToState
readonlydirectToState:MappedSubject<[number|undefined,FlightPlanLegIndexes,LegDefinition|undefined],DirectToState>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:213
flightPlanLegsChanged
readonlyflightPlanLegsChanged:ReadonlySubEvent<void,FlightPlan>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:47
An event which fires when legs are added to or removed from this store's flight plan.
flightPlanName
readonlyflightPlanName:Subscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:42
fms
readonlyfms:Fms<"">
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:305
The Fms.
fromLeg
readonlyfromLeg:Subscribable<LegDefinition|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:247
fromLegSegment
readonlyfromLegSegment:MappedSubscribable<FlightPlanSegment|null|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:248
isAdvancedVnav
readonlyisAdvancedVnav:boolean
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:307
Whether to use advanced VNAV or not.
isApproachLoaded
readonlyisApproachLoaded:Subscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:157
isDirectToExistingActive
readonlyisDirectToExistingActive:MappedSubscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:215
isDirectToRandomActive
readonlyisDirectToRandomActive:MappedSubscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:214
isDirectToRandomActiveWithHold
readonlyisDirectToRandomActiveWithHold:MappedSubject<[boolean,FlightPlanLegListData|undefined,FlightPlanLegListData|undefined],false|"with-hold"|"no-hold">
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:232
isDirectToRandomHoldLegActive
readonlyisDirectToRandomHoldLegActive:Subscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:243
isThereAtLeastOneLeg
readonlyisThereAtLeastOneLeg:Subscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:190
legAdded
readonlylegAdded:SubEvent<void, [FlightPlanLegData,number,number]>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:286
legMap
readonlylegMap:ReadonlyMap<LegDefinition,FlightPlanLegData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:34
Unordered map of leg definitions to leg list data items. Legs are added/removed to/from this map to match the flight plan.
legRemoved
readonlylegRemoved:SubEvent<void,FlightPlanLegData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:287
originFacility
readonlyoriginFacility:Subscribable<AirportFacility|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:53
originIdent
readonlyoriginIdent:Subscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:51
originRunway
readonlyoriginRunway:Subscribable<OneWayRunway|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:55
originRunwayName
readonlyoriginRunwayName:MappedSubscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:56
planIndex
readonlyplanIndex:number
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:306
Which flight plan index to listen to.
segmentAdded
readonlysegmentAdded:SubEvent<void,FlightPlanSegmentData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:282
segmentChanged
readonlysegmentChanged:SubEvent<void, [FlightPlanSegmentData,number]>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:285
segmentInserted
readonlysegmentInserted:SubEvent<void,FlightPlanSegmentData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:283
segmentMap
readonlysegmentMap:ReadonlyMap<FlightPlanSegment,FlightPlanSegmentData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:29
Unordered map of FlightPlanSegments to segment list data items. Segments are added/removed to/from this map to match the flight plan.
segmentRemoved
readonlysegmentRemoved:SubEvent<void, [FlightPlanSegmentData,number]>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:284
skipCourseReversal
readonlyskipCourseReversal:Subscribable<boolean|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:155
toLeg
readonlytoLeg:MappedSubject<[LegDefinition|undefined,LegDefinition|null|undefined,boolean],FlightPlanLegData|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:256
toLegSegment
readonlytoLegSegment:MappedSubscribable<FlightPlanSegment|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:272
visualApproachOneWayRunwayDesignation
readonlyvisualApproachOneWayRunwayDesignation:Subscribable<string|undefined>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:153
Methods
getCurrentAltitude()
getCurrentAltitude():
number
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:374
Gets the current altitude.
Returns
number
The current altitude.
getSelectedAltitude()
getSelectedAltitude():
number
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:382
Gets the selected altitude.
Returns
number
The selected altitude.
init()
init():
void
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:314
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:391
Gets the leg list data items in forward order.
Parameters
| Parameter | Type | Description |
|---|---|---|
startIndex? | number | The 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.