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
readonly
activeLeg:Subscribable
<undefined
|LegDefinition
>
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
<undefined
|number
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:212
activeLegListData
readonly
activeLegListData:Subscribable
<undefined
|FlightPlanLegData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:222
activeLegSegment
readonly
activeLegSegment:Subscribable
<undefined
|FlightPlanSegment
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:228
activeLegSegmentIndex
readonly
activeLegSegmentIndex:Subscribable
<undefined
|number
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:224
activeLegSegmentType
readonly
activeLegSegmentType:Subscribable
<undefined
|FlightPlanSegmentType
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:226
activePlanIndex
readonly
activePlanIndex:Subscribable
<undefined
|number
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:49
amendWaypointForDisplay
readonly
amendWaypointForDisplay:Subject
<undefined
|FlightPlanLegData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:202
approachForDisplay
readonly
approachForDisplay:Subscribable
<undefined
|ApproachProcedure
>
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
<undefined
|string
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:181
approachProcedure
readonly
approachProcedure:Subscribable
<undefined
|ApproachProcedure
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:171
approachSegmentData
readonly
approachSegmentData:Subscribable
<undefined
|FlightPlanSegmentData
>
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
<undefined
|ApproachTransition
>
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
<undefined
|AirportFacility
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:149
arrivalFacilityIcao
readonly
arrivalFacilityIcao:Subscribable
<undefined
|string
>
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
<undefined
|Procedure
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:137
arrivalRunway
readonly
arrivalRunway:Subscribable
<undefined
|OneWayRunway
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:145
arrivalRunwayTransition
readonly
arrivalRunwayTransition:Subscribable
<undefined
|RunwayTransition
>
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
<undefined
|FlightPlanSegmentData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:161
arrivalString
readonly
arrivalString:MappedSubject
<[undefined
|AirportFacility
,number
,number
,undefined
|OneWayRunway
],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
<undefined
|EnrouteTransition
>
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
<undefined
|Procedure
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:70
departureProcedureIndex
readonly
departureProcedureIndex:Subscribable
<undefined
|number
>
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
<undefined
|FlightPlanSegmentData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:113
departureString
readonly
departureString:MappedSubject
<[undefined
|AirportFacility
,undefined
|number
,number
,undefined
|OneWayRunway
],string
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:80
departureText1
readonly
departureText1:MappedSubject
<[undefined
|string
,undefined
|Procedure
,undefined
|string
],string
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:87
departureText2
readonly
departureText2:MappedSubject
<[undefined
|string
,undefined
|Procedure
,undefined
|string
,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
<undefined
|EnrouteTransition
>
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
<undefined
|string
>
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
<undefined
|AirportFacility
>
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
<undefined
|string
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:117
destinationLeg
readonly
destinationLeg:AbstractSubscribable
<undefined
|FlightPlanLegData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:301
destinationRunway
readonly
destinationRunway:Subscribable
<undefined
|OneWayRunway
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:121
destinationRunwayName
readonly
destinationRunwayName:MappedSubscribable
<undefined
|string
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:122
destinationString
readonly
destinationString:MappedSubject
<[undefined
|string
,undefined
|string
],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
],undefined
|null
|LegDefinition
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:249
directToOriginalLeg
readonly
directToOriginalLeg:Subject
<undefined
|number
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:234
directToRandomHoldLegData
readonly
directToRandomHoldLegData:Subscribable
<undefined
|FlightPlanLegData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:245
directToRandomHoldLegListData
readonly
directToRandomHoldLegListData:MappedSubscribable
<undefined
|FlightPlanLegListData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:246
directToRandomLegData
readonly
directToRandomLegData:Subscribable
<undefined
|FlightPlanLegData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:240
directToRandomLegListData
readonly
directToRandomLegListData:MappedSubscribable
<undefined
|FlightPlanLegListData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:241
directToState
readonly
directToState:MappedSubject
<[undefined
|number
,FlightPlanLegIndexes
,undefined
|LegDefinition
],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
<undefined
|string
>
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
<undefined
|LegDefinition
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:271
fromLegSegment
readonly
fromLegSegment:MappedSubscribable
<undefined
|null
|FlightPlanSegment
>
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
,undefined
|FlightPlanLegListData
,undefined
|FlightPlanLegListData
],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
<undefined
|AirportFacility
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:63
originIdent
readonly
originIdent:Subscribable
<undefined
|string
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:61
originRunway
readonly
originRunway:Subscribable
<undefined
|OneWayRunway
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:65
originRunwayName
readonly
originRunwayName:MappedSubscribable
<undefined
|string
>
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
<undefined
|FlightPlanListData
>
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
<undefined
|boolean
>
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
<[undefined
|LegDefinition
],undefined
|FlightPlanLegData
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:280
toLegSegment
readonly
toLegSegment:MappedSubscribable
<undefined
|FlightPlanSegment
>
Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanStore.ts:297
visualApproachOneWayRunwayDesignation
readonly
visualApproachOneWayRunwayDesignation:Subscribable
<undefined
|string
>
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
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.