Skip to main content

Class: FplnPageController

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

FPLN page controller

Constructors

Constructor

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

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

Creates the Controller.

Parameters

ParameterTypeDescription
eventBusEventBusThe event bus
fmsWT21FmsThe FMS.
storeFplnPageStoreThe store.
pageWT21FmcPageThe FMC Page.

Returns

FplnPageController

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

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

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


discoIdentString

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

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


discontinuityHeader

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

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


emptyAirwayString

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

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


emptyIdentString

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

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


modHeaderString

readonly static modHeaderString: " MOD[white] FPLN[blue]" = ' 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

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

Destroys the Controller.

Returns

void


handleCancelMod()

handleCancelMod(): void

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

Handles when Cancel Mod is pressed

Returns

void


init()

init(): void

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

Initializes the Controller

Returns

void


onAirwayInput()

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

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

Parameters

ParameterType
dataundefined | RoutePageLegItem
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/WT21/FMC/Pages/FplnPageController.ts:498

Takes a waypoint.

Parameters

ParameterTypeDescription
dataundefined | RoutePageLegItemThe 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/WT21/FMC/Pages/FplnPageController.ts:229

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/WT21/FMC/Pages/FplnPageController.ts:88

Parameters

ParameterType
pageAbstractFmcPage
indexInDisplaynumber
prevDataundefined | RoutePageLegItem
dataundefined | RoutePageLegItem

Returns

FmcRenderTemplateRow[]


setDestination()

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

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

Sets the destination for the flight plan.

Parameters

ParameterTypeDescription
identnull | stringThe 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/WT21/FMC/Pages/FplnPageController.ts:733

Sets the origin for the flight plan.

Parameters

ParameterTypeDescription
identnull | stringThe ICAO to set

Returns

Promise<void>