Skip to main content

Class: FplnPageController

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:24

FPLN page controller

Constructors​

Constructor​

new FplnPageController(eventBus, fms, store, page, wptAlreadyExistsPrompt): FplnPageController

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:156

Creates the Controller.

Parameters​

ParameterTypeDescription
eventBusEventBusThe event bus
fmsWT21FmsThe FMS.
storeFplnPageStoreThe store.
pageWT21FmcPageThe FMC Page.
wptAlreadyExistsPromptWaypointAlreadyExistsPromptThe WPT ALREADY EXISTS prompt wrapper

Returns​

FplnPageController

Properties​

altnField​

readonly altnField: TextInputField<string | null, string | null>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:54


currentPage​

readonly currentPage: Subject<number>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:34


destinationField​

destinationField: TextInputField<string | null, string | null>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:39


fplnLegList​

fplnLegList: FmcListUtility<RoutePageLegItem>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:142


pageCount​

readonly pageCount: ComputedSubject<number, number>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:35


activeHeaderString​

readonly static activeHeaderString: " ACT FPLN[blue]" = ' ACT FPLN[blue]'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:31


discoIdentString​

readonly static discoIdentString: "□□□□□" = '□□□□□'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:28


discontinuityHeader​

readonly static discontinuityHeader: "---- DISCONTINUITY -----" = '---- DISCONTINUITY -----'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:27


emptyAirwayString​

readonly static emptyAirwayString: "-----" = '-----'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:30


emptyIdentString​

readonly static emptyIdentString: "-----" = '-----'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:29


modHeaderString​

readonly static modHeaderString: " MOD[white] FPLN[blue]" = ' MOD[white] FPLN[blue]'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:32

Methods​

destroy()​

destroy(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:184

Destroys the Controller.

Returns​

void


handleCancelMod()​

handleCancelMod(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:867

Handles when Cancel Mod is pressed

Returns​

void


init()​

init(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:177

Initializes the Controller

Returns​

void


onAirwayInput()​

onAirwayInput(data, scratchpadContents, isDelete?): Promise<string | boolean>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:506

Parameters​

ParameterType
dataRoutePageLegItem | undefined
scratchpadContentsstring
isDelete?boolean

Returns​

Promise<string | boolean>


onWaypointInput()​

onWaypointInput(data, scratchpadContents, isDelete?): Promise<string | boolean>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:522

Takes a waypoint.

Parameters​

ParameterTypeDescription
dataRoutePageLegItem | undefinedThe RoutePageLegItem.
scratchpadContentsstringThe Scratchpad Contents.
isDelete?booleanWhether this is a delete.

Returns​

Promise<string | boolean>

Whether this entry was successfully completed.


renderPage()​

renderPage(): FmcRenderTemplate

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:244

Renders the Page

Returns​

FmcRenderTemplate

The FmcRenderTemplate


renderRow()​

renderRow(page, indexInDisplay, prevData, data): FmcRenderTemplateRow[]

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:92

Parameters​

ParameterType
pageAbstractFmcPage
indexInDisplaynumber
prevDataRoutePageLegItem | undefined
dataRoutePageLegItem | undefined

Returns​

FmcRenderTemplateRow[]


setDestination()​

setDestination(ident, isDelete?): Promise<string | boolean>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:829

Sets the destination for the flight plan.

Parameters​

ParameterTypeDescription
identstring | nullThe ICAO to set
isDelete?booleanWhether this was a delete

Returns​

Promise<string | boolean>

Whether this was successful


setOrigin()​

setOrigin(ident): Promise<void>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FplnPageController.ts:794

Sets the origin for the flight plan.

Parameters​

ParameterTypeDescription
identstring | nullThe ICAO to set

Returns​

Promise<void>