Skip to main content

Class: LegsPageController

LEGS PAGE Controller

Constructors

constructor

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

Creates the Controller.

Parameters

NameTypeDescription
eventBusEventBusThe event bus
fmsWT21FmsThe Fms
storeLegsPageStoreThe Store
pageWT21FmcPage<null>The FMC Page

Returns

LegsPageController

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:172

Properties

currentPage

Readonly currentPage: Subject<number>

Defined in

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


isForHoldSelection

isForHoldSelection: boolean = false

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:22


legsList

legsList: FmcListUtility<LegPageItem>

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:163


lnavSequencing: boolean = true

Defined in

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


pageCount

Readonly pageCount: ComputedSubject<number, number>

Defined in

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


ppos

Readonly ppos: ConsumerSubject<LatLongAlt>

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:52


activeHeaderString

Static Readonly activeHeaderString: " ACT LEGS[blue]"

Defined in

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


discoAltitudeString

Static Readonly discoAltitudeString: "- DISCONTINUITY - "

Defined in

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


discoCourseString

Static Readonly discoCourseString: " THEN"

Defined in

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


discoIdentString

Static Readonly discoIdentString: "□□□□□"

Defined in

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


modHeaderString

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

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.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/LegsPageController.ts:207


init

init(): void

Initializes the Controller

Returns

void

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:182


insertCurrentFplnHoldFacility

insertCurrentFplnHoldFacility(): null | number

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

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:473


isFmcPageInDirectToExistingState

isFmcPageInDirectToExistingState(): boolean

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.

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:815


renderPageRows

renderPageRows(): FmcRenderTemplate

Renders the Page

Returns

FmcRenderTemplate

The FmcRenderTemplate

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:345


renderRow

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

Parameters

NameType
pageAbstractFmcPage<any>
indexInDisplaynumber
prevDataundefined | LegPageItem
dataundefined | LegPageItem
nextData?LegPageItem

Returns

FmcRenderTemplateRow[]

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:54


setDirectToCourse

setDirectToCourse(modPlan, newCourse): boolean

Sets the Direct To INTC CRS.

Parameters

NameTypeDescription
modPlanFlightPlanThe MOD Flight Plan.
newCoursenumberThe scratchpad contents

Returns

boolean

whether this was successfully completed.

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/LegsPageController.ts:912