Skip to main content

Class: FplnPageController

FPLN page controller

Constructors

constructor

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

Creates the Controller.

Parameters

NameTypeDescription
eventBusEventBusThe event bus
fmsWT21FmsThe FMS.
storeFplnPageStoreThe store.
pageWT21FmcPage<null>The FMC Page.

Returns

FplnPageController

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:145

Properties

altnField

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

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:50


currentPage

Readonly currentPage: Subject<number>

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:30


destinationField

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

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:35


fplnLegList

fplnLegList: FmcListUtility<RoutePageLegItem>

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:132


pageCount

Readonly pageCount: ComputedSubject<number, number>

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:31


activeHeaderString

Static Readonly activeHeaderString: " ACT FPLN[blue]"

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:27


discoIdentString

Static Readonly discoIdentString: "□□□□□"

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:24


discontinuityHeader

Static Readonly discontinuityHeader: "---- DISCONTINUITY -----"

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:23


emptyAirwayString

Static Readonly emptyAirwayString: "-----"

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:26


emptyIdentString

Static Readonly emptyIdentString: "-----"

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:25


modHeaderString

Static Readonly modHeaderString: " MOD[white] FPLN[blue]"

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:28

Methods

destroy

destroy(): void

Destroys the Controller.

Returns

void

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:169


handleCancelMod

handleCancelMod(): void

Handles when Cancel Mod is pressed

Returns

void

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:806


init

init(): void

Initializes the Controller

Returns

void

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:162


onAirwayInput

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

Parameters

NameType
dataundefined | RoutePageLegItem
scratchpadContentsstring
isDelete?boolean

Returns

Promise<string | boolean>

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:482


onWaypointInput

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

Takes a waypoint.

Parameters

NameTypeDescription
dataundefined | RoutePageLegItemThe RoutePageLegItem.
scratchpadContentsstringThe Scratchpad Contents.
isDelete?booleanWhether this is a delete.

Returns

Promise<string | boolean>

Whether this entry was successfully completed.

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:498


renderPage

renderPage(): FmcRenderTemplate

Renders the Page

Returns

FmcRenderTemplate

The FmcRenderTemplate

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:229


renderRow

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

Parameters

NameType
pageAbstractFmcPage<any>
indexInDisplaynumber
prevDataundefined | RoutePageLegItem
dataundefined | RoutePageLegItem

Returns

FmcRenderTemplateRow[]

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:88


setDestination

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

Sets the destination for the flight plan.

Parameters

NameTypeDescription
identnull | stringThe ICAO to set
isDelete?booleanWhether this was a delete

Returns

Promise<string | boolean>

Whether this was successful

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:768


setOrigin

setOrigin(ident): Promise<void>

Sets the origin for the flight plan.

Parameters

NameTypeDescription
identnull | stringThe ICAO to set

Returns

Promise<void>

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FplnPageController.ts:733