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
| 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<undefined|LegDefinition>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:207
activeLegDistance
readonlyactiveLegDistance:Subscribable<NumberUnitInterface<Distance,SimpleUnit<Distance>>>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:205
activeLegDtkMag
readonlyactiveLegDtkMag:Subscribable<NumberUnitInterface<"navangle",NavAngleUnit>>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:201
activeLegDtkTrue
readonlyactiveLegDtkTrue:Subscribable<NumberUnitInterface<"navangle",NavAngleUnit>>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:203
activeLegGlobalIndex
readonlyactiveLegGlobalIndex:Subscribable<undefined|number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:199
activeLegListData
readonlyactiveLegListData:Subscribable<undefined|FlightPlanLegData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:209
activeLegSegmentIndex
readonlyactiveLegSegmentIndex:Subscribable<undefined|number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:211
activePlanIndex
readonlyactivePlanIndex:Subscribable<undefined|number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:42
addEnrouteWaypointButtonIsVisible
readonlyaddEnrouteWaypointButtonIsVisible:Subject<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:195
approachForDisplay
readonlyapproachForDisplay:Subscribable<undefined|ApproachProcedure>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:175
approachIndex
readonlyapproachIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:177
approachName
readonlyapproachName:MappedSubscribable<undefined|string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:178
approachProcedure
readonlyapproachProcedure:Subscribable<undefined|ApproachProcedure>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:162
approachSegmentData
readonlyapproachSegmentData:Subscribable<undefined|FlightPlanSegmentData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:189
approachStringPrefix
readonlyapproachStringPrefix:MappedSubscribable<"VTF Apr – "|"Approach – ">
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:183
approachTransition
readonlyapproachTransition:Subscribable<undefined|ApproachTransition>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:180
approachTransitionIndex
readonlyapproachTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:182
arrivalFacility
readonlyarrivalFacility:Subscribable<undefined|AirportFacility>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:140
arrivalFacilityIcao
readonlyarrivalFacilityIcao:Subscribable<undefined|string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:138
arrivalIndex
readonlyarrivalIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:126
arrivalProcedure
readonlyarrivalProcedure:Subscribable<undefined|Procedure>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:128
arrivalRunway
readonlyarrivalRunway:Subscribable<undefined|OneWayRunway>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:136
arrivalRunwayTransition
readonlyarrivalRunwayTransition:Subscribable<undefined|RunwayTransition>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:134
arrivalRunwayTransitionIndex
readonlyarrivalRunwayTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:142
arrivalSegmentData
readonlyarrivalSegmentData:Subscribable<undefined|FlightPlanSegmentData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:152
arrivalString
readonlyarrivalString:MappedSubject<[undefined|AirportFacility,undefined|Procedure,number,undefined|OneWayRunway],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:143
arrivalStringFull
readonlyarrivalStringFull:MappedSubscribable<string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:150
arrivalTransition
readonlyarrivalTransition:Subscribable<undefined|EnrouteTransition>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:130
arrivalTransitionIndex
readonlyarrivalTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:132
beforeFlightPlanLoaded
readonlybeforeFlightPlanLoaded:SubEvent<void,FlightPlan>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:284
bus
readonlybus:EventBus
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:307
The EventBus.
departureProcedure
readonlydepartureProcedure:Subscribable<undefined|Procedure>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:63
departureRunwayTransitionIndex
readonlydepartureRunwayTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:70
departureSegmentData
readonlydepartureSegmentData:Subscribable<undefined|FlightPlanSegmentData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:104
departureString
readonlydepartureString:MappedSubject<[undefined|AirportFacility,undefined|Procedure,number,undefined|OneWayRunway],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:71
departureText1
readonlydepartureText1:MappedSubject<[undefined|string,undefined|Procedure,undefined|string],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:78
departureText2
readonlydepartureText2:MappedSubject<[undefined|string,undefined|Procedure,undefined|string,string],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:89
departureTextOneLine
readonlydepartureTextOneLine:MappedSubject<[string,string],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:100
departureTransition
readonlydepartureTransition:Subscribable<undefined|EnrouteTransition>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:65
departureTransitionIndex
readonlydepartureTransitionIndex:Subscribable<number>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:68
departureTransitionName
readonlydepartureTransitionName:MappedSubscribable<undefined|string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:66
destinationFacility
readonlydestinationFacility:Subscribable<undefined|AirportFacility>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:110
destinationIdent
readonlydestinationIdent:Subscribable<undefined|string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:108
destinationRunway
readonlydestinationRunway:Subscribable<undefined|OneWayRunway>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:112
destinationRunwayName
readonlydestinationRunwayName:MappedSubscribable<undefined|string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:113
destinationString
readonlydestinationString:MappedSubject<[undefined|string,undefined|string],string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:114
directToData
readonlydirectToData:Subscribable<FlightPlanLegIndexes>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:215
directToExistingLeg
readonlydirectToExistingLeg:MappedSubject<[FlightPlanLegIndexes,DirectToState],undefined|null|LegDefinition>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:230
directToRandomHoldLegData
readonlydirectToRandomHoldLegData:Subscribable<undefined|FlightPlanLegData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:226
directToRandomHoldLegListData
readonlydirectToRandomHoldLegListData:MappedSubscribable<undefined|FlightPlanLegListData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:227
directToRandomLegData
readonlydirectToRandomLegData:Subscribable<undefined|FlightPlanLegData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:221
directToRandomLegListData
readonlydirectToRandomLegListData:MappedSubscribable<undefined|FlightPlanLegListData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:222
directToState
readonlydirectToState:MappedSubject<[undefined|number,FlightPlanLegIndexes,undefined|LegDefinition],DirectToState>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:216
flightPlanLegsChanged
readonlyflightPlanLegsChanged: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
readonlyflightPlanName:Subscribable<undefined|string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:45
fms
readonlyfms:Fms<"">
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:308
The Fms.
fromLeg
readonlyfromLeg:Subscribable<undefined|LegDefinition>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:250
fromLegSegment
readonlyfromLegSegment:MappedSubscribable<undefined|null|FlightPlanSegment>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:251
isAdvancedVnav
readonlyisAdvancedVnav:boolean
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:310
Whether to use advanced VNAV or not.
isApproachLoaded
readonlyisApproachLoaded:Subscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:160
isDirectToExistingActive
readonlyisDirectToExistingActive:MappedSubscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:218
isDirectToRandomActive
readonlyisDirectToRandomActive:MappedSubscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:217
isDirectToRandomActiveWithHold
readonlyisDirectToRandomActiveWithHold: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
readonlyisDirectToRandomHoldLegActive:Subscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:246
isThereAtLeastOneLeg
readonlyisThereAtLeastOneLeg:Subscribable<boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:193
legAdded
readonlylegAdded:SubEvent<void, [FlightPlanLegData,number,number]>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:289
legMap
readonlylegMap: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
readonlylegRemoved:SubEvent<void,FlightPlanLegData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:290
originFacility
readonlyoriginFacility:Subscribable<undefined|AirportFacility>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:56
originIdent
readonlyoriginIdent:Subscribable<undefined|string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:54
originRunway
readonlyoriginRunway:Subscribable<undefined|OneWayRunway>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:58
originRunwayName
readonlyoriginRunwayName:MappedSubscribable<undefined|string>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:59
planIndex
readonlyplanIndex:number
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:309
Which flight plan index to listen to.
segmentAdded
readonlysegmentAdded:SubEvent<void,FlightPlanSegmentData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:285
segmentChanged
readonlysegmentChanged:SubEvent<void, [FlightPlanSegmentData,number]>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:288
segmentInserted
readonlysegmentInserted:SubEvent<void,FlightPlanSegmentData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:286
segmentMap
readonlysegmentMap: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
readonlysegmentRemoved:SubEvent<void, [FlightPlanSegmentData,number]>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:287
skipCourseReversal
readonlyskipCourseReversal:Subscribable<undefined|boolean>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:158
toLeg
readonlytoLeg:MappedSubject<[undefined|LegDefinition,undefined|null|LegDefinition,boolean],undefined|FlightPlanLegData>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:259
toLegSegment
readonlytoLegSegment:MappedSubscribable<undefined|FlightPlanSegment>
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanStore.ts:275
visualApproachOneWayRunwayDesignation
readonlyvisualApproachOneWayRunwayDesignation: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
| 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.