Class: LegsPageController
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:22
LEGS PAGE Controller
Constructors
Constructor
new LegsPageController(
eventBus,fms,store,page,wptAlreadyExistsPrompt):LegsPageController
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:178
Creates the Controller.
Parameters
| Parameter | Type | Description |
|---|---|---|
eventBus | EventBus | The event bus |
fms | WT21Fms | The Fms |
store | LegsPageStore | The Store |
page | WT21FmcPage | The FMC Page |
wptAlreadyExistsPrompt | WaypointAlreadyExistsPrompt | The WPT ALREADY EXISTS prompt wrapper |
Returns
LegsPageController
Properties
currentPage
readonlycurrentPage:Subject<number>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:33
isForHoldSelection
isForHoldSelection:
boolean=false
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:25
legsList
legsList:
FmcListUtility<LegPageItem>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:166
lnavSequencing
lnavSequencing:
boolean=true
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:53
pageCount
readonlypageCount:ComputedSubject<number,number>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:34
ppos
readonlyppos:ConsumerSubject<LatLongAlt>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:55
activeHeaderString
readonlystaticactiveHeaderString:" ACT LEGS[blue]"=' ACT LEGS[blue]'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:30
discoAltitudeString
readonlystaticdiscoAltitudeString:"- DISCONTINUITY - "='- DISCONTINUITY - '
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:28
discoCourseString
readonlystaticdiscoCourseString:" THEN"=' THEN'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:29
discoIdentString
readonlystaticdiscoIdentString:"□□□□□"='□□□□□'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:27
modHeaderString
readonlystaticmodHeaderString:" MOD[white] LEGS[blue]"=' MOD[white] LEGS[blue]'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:31
Methods
destroy()
destroy():
void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:217
Destroys the Controller.
Returns
void
init()
init():
void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:189
Initializes the Controller
Returns
void
insertCurrentFplnHoldFacility()
insertCurrentFplnHoldFacility():
null|number
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:472
Inserts a flight plan hold based on the HOLD AT facility being the parent leg already present in the flight plan
Returns
null | number
the index of the inserted hold leg
Throws
if an error occurs during the process
isFmcPageInDirectToExistingState()
isFmcPageInDirectToExistingState():
boolean
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:851
Checks if we are in a Direct To Existing state for ACT plan, or MOD when plan is in MOD.
Returns
boolean
Whether we are in a Direct To Existing state for ACT plan, or MOD when plan is in MOD.
renderPageRows()
renderPageRows():
FmcRenderTemplate
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:344
Renders the Page
Returns
The FmcRenderTemplate
renderRow()
renderRow(
page,indexInDisplay,prevData,data,nextData?):FmcRenderTemplateRow[]
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:57
Parameters
| Parameter | Type |
|---|---|
page | AbstractFmcPage |
indexInDisplay | number |
prevData | undefined | LegPageItem |
data | undefined | LegPageItem |
nextData? | LegPageItem |
Returns
setDirectToCourse()
setDirectToCourse(
modPlan,newCourse):boolean
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:948
Sets the Direct To INTC CRS.
Parameters
| Parameter | Type | Description |
|---|---|---|
modPlan | FlightPlan | The MOD Flight Plan. |
newCourse | number | The scratchpad contents |
Returns
boolean
whether this was successfully completed.