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
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The EventBus. |
fms | Epic2Fms | The Epic2Fms. |
planIndex | number | Which flight plan index to listen to. |
flightPlanner | FlightPlanner | The flight planner. |
verticalPathCalculator | SmoothingPathCalculator | The vertical path calculator. |
perfPlanRepository | PerformancePlanRepository<Epic2PerformancePlan> | The performance plan repository. |
settings | UserSettingManager<MfdAliasedUserSettingTypes> | The settings manager. |
speedPredictions? | Epic2SpeedPredictions | The active flight plan speed predictions |
Returns
FlightPlanStore
Properties
activeLeg
readonlyactiveLeg:Subscribable<undefined|LegDefinition>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:220
activeLegDistance
readonlyactiveLegDistance:Subscribable<NumberUnitInterface<Distance,SimpleUnit<Distance>>>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:218
activeLegDtkMag
readonlyactiveLegDtkMag:Subscribable<NumberUnitInterface<"navangle",NavAngleUnit>>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:214
activeLegDtkTrue
readonlyactiveLegDtkTrue:Subscribable<NumberUnitInterface<"navangle",NavAngleUnit>>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:216
activeLegGlobalIndex
readonlyactiveLegGlobalIndex:Subscribable<undefined|number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:212
activeLegListData
readonlyactiveLegListData:Subscribable<undefined|FlightPlanLegData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:222
activeLegSegment
readonlyactiveLegSegment:Subscribable<undefined|FlightPlanSegment>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:228
activeLegSegmentIndex
readonlyactiveLegSegmentIndex:Subscribable<undefined|number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:224
activeLegSegmentType
readonlyactiveLegSegmentType:Subscribable<undefined|FlightPlanSegmentType>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:226
activePlanIndex
readonlyactivePlanIndex:Subscribable<undefined|number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:49
amendWaypointForDisplay
readonlyamendWaypointForDisplay:Subject<undefined|FlightPlanLegData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:202
approachForDisplay
readonlyapproachForDisplay:Subscribable<undefined|ApproachProcedure>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:178
approachIndex
readonlyapproachIndex:Subscribable<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:180
approachName
readonlyapproachName:MappedSubscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:181
approachProcedure
readonlyapproachProcedure:Subscribable<undefined|ApproachProcedure>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:171
approachSegmentData
readonlyapproachSegmentData:Subscribable<undefined|FlightPlanSegmentData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:192
approachStringPrefix
readonlyapproachStringPrefix:MappedSubscribable<"VTF Apr – "|"Approach – ">
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:186
approachTransition
readonlyapproachTransition:Subscribable<undefined|ApproachTransition>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:183
approachTransitionIndex
readonlyapproachTransitionIndex:Subscribable<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:185
arrivalFacility
readonlyarrivalFacility:Subscribable<undefined|AirportFacility>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:149
arrivalFacilityIcao
readonlyarrivalFacilityIcao:Subscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:147
arrivalIndex
readonlyarrivalIndex:Subscribable<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:135
arrivalProcedure
readonlyarrivalProcedure:Subscribable<undefined|Procedure>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:137
arrivalRunway
readonlyarrivalRunway:Subscribable<undefined|OneWayRunway>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:145
arrivalRunwayTransition
readonlyarrivalRunwayTransition:Subscribable<undefined|RunwayTransition>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:143
arrivalRunwayTransitionIndex
readonlyarrivalRunwayTransitionIndex:Subscribable<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:151
arrivalSegmentData
readonlyarrivalSegmentData:Subscribable<undefined|FlightPlanSegmentData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:161
arrivalString
readonlyarrivalString:MappedSubject<[undefined|AirportFacility,number,number,undefined|OneWayRunway],string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:152
arrivalStringFull
readonlyarrivalStringFull:MappedSubscribable<string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:159
arrivalTransition
readonlyarrivalTransition:Subscribable<undefined|EnrouteTransition>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:139
arrivalTransitionIndex
readonlyarrivalTransitionIndex:Subscribable<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:141
beforeFlightPlanLoaded
readonlybeforeFlightPlanLoaded:SubEvent<void,FlightPlan>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:324
bus
readonlybus:EventBus
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:351
The EventBus.
departureProcedure
readonlydepartureProcedure:Subscribable<undefined|Procedure>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:70
departureProcedureIndex
readonlydepartureProcedureIndex:Subscribable<undefined|number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:72
departureRunwayTransitionIndex
readonlydepartureRunwayTransitionIndex:Subscribable<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:79
departureSegmentData
readonlydepartureSegmentData:Subscribable<undefined|FlightPlanSegmentData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:113
departureString
readonlydepartureString:MappedSubject<[undefined|AirportFacility,undefined|number,number,undefined|OneWayRunway],string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:80
departureText1
readonlydepartureText1:MappedSubject<[undefined|string,undefined|Procedure,undefined|string],string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:87
departureText2
readonlydepartureText2:MappedSubject<[undefined|string,undefined|Procedure,undefined|string,string],string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:98
departureTextOneLine
readonlydepartureTextOneLine:MappedSubject<[string,string],string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:109
departureTransition
readonlydepartureTransition:Subscribable<undefined|EnrouteTransition>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:74
departureTransitionIndex
readonlydepartureTransitionIndex:Subscribable<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:77
departureTransitionName
readonlydepartureTransitionName:MappedSubscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:75
destinationDistanceToGo
readonlydestinationDistanceToGo:Subscribable<NumberUnitInterface<Distance,Unit<Distance>>>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:304
destinationEstimatedTimeEnroute
readonlydestinationEstimatedTimeEnroute:Subscribable<NumberUnitInterface<Duration,Unit<Duration>>>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:307
destinationFacility
readonlydestinationFacility:Subscribable<undefined|AirportFacility>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:119
destinationFuelRemaining
readonlydestinationFuelRemaining:Subscribable<NumberUnitInterface<Weight,Unit<Weight>>>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:310
destinationIdent
readonlydestinationIdent:Subscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:117
destinationLeg
readonlydestinationLeg:AbstractSubscribable<undefined|FlightPlanLegData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:301
destinationRunway
readonlydestinationRunway:Subscribable<undefined|OneWayRunway>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:121
destinationRunwayName
readonlydestinationRunwayName:MappedSubscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:122
destinationString
readonlydestinationString:MappedSubject<[undefined|string,undefined|string],string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:123
directToData
readonlydirectToData:Subscribable<FlightPlanLegIndexes>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:232
directToExistingLeg
readonlydirectToExistingLeg:MappedSubject<[FlightPlanLegIndexes,DirectToState],undefined|null|LegDefinition>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:249
directToOriginalLeg
readonlydirectToOriginalLeg:Subject<undefined|number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:234
directToRandomHoldLegData
readonlydirectToRandomHoldLegData:Subscribable<undefined|FlightPlanLegData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:245
directToRandomHoldLegListData
readonlydirectToRandomHoldLegListData:MappedSubscribable<undefined|FlightPlanLegListData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:246
directToRandomLegData
readonlydirectToRandomLegData:Subscribable<undefined|FlightPlanLegData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:240
directToRandomLegListData
readonlydirectToRandomLegListData:MappedSubscribable<undefined|FlightPlanLegListData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:241
directToState
readonlydirectToState:MappedSubject<[undefined|number,FlightPlanLegIndexes,undefined|LegDefinition],DirectToState>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:233
flightArea
readonlyflightArea:ConsumerSubject<Epic2FlightArea>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:205
flightPlanLegsChanged
readonlyflightPlanLegsChanged: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
readonlyflightPlanName:Subscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:52
fms
readonlyfms:Epic2Fms
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:352
The Epic2Fms.
fromLeg
readonlyfromLeg:Subscribable<undefined|LegDefinition>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:271
fromLegSegment
readonlyfromLegSegment:MappedSubscribable<undefined|null|FlightPlanSegment>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:272
isApproachLoaded
readonlyisApproachLoaded:Subscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:169
isDirectToExistingActive
readonlyisDirectToExistingActive:MappedSubscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:237
isDirectToRandomActive
readonlyisDirectToRandomActive:Subscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:236
isDirectToRandomActiveWithHold
readonlyisDirectToRandomActiveWithHold:MappedSubject<[boolean,undefined|FlightPlanLegListData,undefined|FlightPlanLegListData],false|"with-hold"|"no-hold">
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:254
isDirectToRandomHoldLegActive
readonlyisDirectToRandomHoldLegActive:Subscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:265
isDtoRandomEntryShown
readonlyisDtoRandomEntryShown:Subject<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:267
isExitingHold
readonlyisExitingHold:Subject<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:204
isFlightPlanListExpanded
readonlyisFlightPlanListExpanded:Subject<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:207
isInHold
readonlyisInHold:ConsumerSubject<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:203
isLnavTracking
readonlyisLnavTracking:Subject<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:208
isThereAtLeastOneLeg
readonlyisThereAtLeastOneLeg:Subscribable<boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:200
legAdded
readonlylegAdded:SubEvent<void, [FlightPlanLegData,number,number]>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:329
legMap
readonlylegMap: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
readonlylegRemoved:SubEvent<void,FlightPlanLegData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:330
originFacility
readonlyoriginFacility:Subscribable<undefined|AirportFacility>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:63
originIdent
readonlyoriginIdent:Subscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:61
originRunway
readonlyoriginRunway:Subscribable<undefined|OneWayRunway>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:65
originRunwayName
readonlyoriginRunwayName:MappedSubscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:66
perfPlanRepository
readonlyperfPlanRepository:PerformancePlanRepository<Epic2PerformancePlan>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:356
The performance plan repository.
planIndex
readonlyplanIndex:number
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:353
Which flight plan index to listen to.
planLength
readonlyplanLength:Subscribable<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:198
segmentAdded
readonlysegmentAdded:SubEvent<void,FlightPlanSegmentData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:325
segmentChanged
readonlysegmentChanged:SubEvent<void, [FlightPlanSegmentData,number]>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:328
segmentInserted
readonlysegmentInserted:SubEvent<void,FlightPlanSegmentData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:326
segmentMap
readonlysegmentMap: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
readonlysegmentRemoved:SubEvent<void, [FlightPlanSegmentData,number]>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:327
selectedEnrouteWaypoint
readonlyselectedEnrouteWaypoint:Subject<undefined|FlightPlanListData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:201
selectedRnavMinima
readonlyselectedRnavMinima:Subscribable<RnavMinima>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:194
settings
readonlysettings:UserSettingManager<MfdAliasedUserSettingTypes>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:357
The settings manager.
skipCourseReversal
readonlyskipCourseReversal:Subscribable<undefined|boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:167
tocBeforeTod
readonlytocBeforeTod:MappedSubject<[number,number],boolean>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:321
tocDistance
readonlytocDistance:ConsumerSubject<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:320
tocIndex
readonlytocIndex:ConsumerSubject<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:318
todIndex
readonlytodIndex:ConsumerSubject<number>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:317
toLeg
readonlytoLeg:MappedSubject<[undefined|LegDefinition],undefined|FlightPlanLegData>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:280
toLegSegment
readonlytoLegSegment:MappedSubscribable<undefined|FlightPlanSegment>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:297
visualApproachOneWayRunwayDesignation
readonlyvisualApproachOneWayRunwayDesignation:Subscribable<undefined|string>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:165
vtfApproachState
readonlyvtfApproachState: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
| 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.