Class: WTLineLegacyDefaultFlightPlanRepository
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:10
A (legacy) default implementation of WTLineFlightPlanRepository
Implements
Constructors
Constructor
new WTLineLegacyDefaultFlightPlanRepository(
flightPlanner
):WTLineLegacyDefaultFlightPlanRepository
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:17
Ctor
Parameters
Parameter | Type | Description |
---|---|---|
flightPlanner | FlightPlanner | the flight planner instance |
Returns
WTLineLegacyDefaultFlightPlanRepository
Properties
planInMod
readonly
planInMod:Subject
<boolean
>
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:11
A MutableSubscribable indicating if the FMS should be displaying a MOD plan
Implementation of
WTLineFlightPlanRepository
.planInMod
Methods
activateSecondaryPlan()
activateSecondaryPlan():
void
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:57
Activates the secondary flight plan.
Returns
void
Implementation of
WTLineFlightPlanRepository
.activateSecondaryPlan
copyActivePlanIntoSecondaryPlan()
copyActivePlanIntoSecondaryPlan():
void
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:50
Copies the active flight plan into the secondary flight plan.
Returns
void
Implementation of
WTLineFlightPlanRepository
.copyActivePlanIntoSecondaryPlan
getFlightPlan()
getFlightPlan(
index
):FlightPlan
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:64
Returns a flight plan given an index
Parameters
Parameter | Type |
---|---|
index | WTLineLegacyFlightPlans |
Returns
Implementation of
WTLineFlightPlanRepository
.getFlightPlan
getModPlanIndex()
getModPlanIndex(
index
):null
|WTLineLegacyFlightPlans
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:109
Returns the index of the MOD plan for a given main plan, or null
if there isn't one
Parameters
Parameter | Type | Description |
---|---|---|
index | WTLineLegacyMainFlightPlan | the plan index to query |
Returns
null
| WTLineLegacyFlightPlans
an index or null
Implementation of
WTLineFlightPlanRepository
.getModPlanIndex
getPlanIndexToDisplay()
getPlanIndexToDisplay(
index
):number
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:89
Returns the index of the plan to display given an index
Parameters
Parameter | Type | Description |
---|---|---|
index | WTLineLegacyFlightPlans | the index to query |
Returns
number
a number
Implementation of
WTLineFlightPlanRepository
.getPlanIndexToDisplay
getPlanIndexToEdit()
getPlanIndexToEdit(
index
):number
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:69
Returns the index of the plan to perform an edit on (creating a MOD plan as needed) given an index
Parameters
Parameter | Type | Description |
---|---|---|
index | WTLineLegacyFlightPlans | the index to query |
Returns
number
a number
Implementation of
WTLineFlightPlanRepository
.getPlanIndexToEdit
getPlanToDisplay()
getPlanToDisplay(
index
):FlightPlan
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:104
Returns the plan to display given an index
Parameters
Parameter | Type | Description |
---|---|---|
index | WTLineLegacyFlightPlans | the index to query |
Returns
a flight plan
Implementation of
WTLineFlightPlanRepository
.getPlanToDisplay
getPlanToEdit()
getPlanToEdit(
index
):FlightPlan
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:84
Returns the plan to perform an edit on (creating a MOD plan as needed) given an index
Parameters
Parameter | Type | Description |
---|---|---|
index | WTLineLegacyFlightPlans | the index to query |
Returns
a flight plan
Implementation of
WTLineFlightPlanRepository
.getPlanToEdit
initFlightPlans()
initFlightPlans():
void
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:38
Initializes the needed flight plans in the FMS
Returns
void
Implementation of
WTLineFlightPlanRepository
.initFlightPlans
isMainPlanIndex()
isMainPlanIndex(
index
):index is WTLineLegacyMainFlightPlan
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:118
Returns whether a given plan index is a main plan index
Parameters
Parameter | Type | Description |
---|---|---|
index | WTLineLegacyFlightPlans | the plan index to query |
Returns
index is WTLineLegacyMainFlightPlan
a boolean
Implementation of
WTLineFlightPlanRepository
.isMainPlanIndex
isPlanIndexModPlan()
isPlanIndexModPlan(
index
):boolean
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:128
Returns whether a given plan index corresponds to a MOD plan
Parameters
Parameter | Type | Description |
---|---|---|
index | WTLineLegacyFlightPlans | the plan index to query |
Returns
boolean
a boolean
Implementation of
WTLineFlightPlanRepository
.isPlanIndexModPlan
isPlanIndexSecondaryPlan()
isPlanIndexSecondaryPlan(
mainIndex
):boolean
Defined in: wtlinesdk/fms/WTLineLegacyDefaultFlightPlanRepository.ts:123
Returns whether a given main plan index is a secondary plan index
Parameters
Parameter | Type | Description |
---|---|---|
mainIndex | WTLineLegacyMainFlightPlan | the main plan index to query |
Returns
boolean
a boolean