Skip to main content

Abstract Class: SelectDepArrController<T, S>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:13

Controller for departure/arrival selection components.

Extended by

Type Parameters

Type ParameterDefault type
T extends DepartureProcedure | ArrivalProcedure-
S extends SelectDepArrStore<T>SelectDepArrStore<T>

Constructors

Constructor

new SelectDepArrController<T, S>(store, selectNextCb, fms, calculator, procType): SelectDepArrController<T, S>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:36

Constructor.

Parameters

ParameterTypeDescription
storeSA data store.
selectNextCb() => voidCallback when the next control should be focused.
fmsFmsThe FMS instance.
calculatorFlightPathCalculatorThe flight path calculator used by this controller to build preview flight plans.
procTypeDEPARTURE | ARRIVALThe procedure type for this controller.

Returns

SelectDepArrController<T, S>

Properties

buildSequenceOpId

protected buildSequenceOpId: number = 0

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:240


calculator

protected readonly calculator: FlightPathCalculator

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:40

The flight path calculator used by this controller to build preview flight plans.


canLoad

readonly canLoad: Subject<boolean>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:26


facilityChangedHandler()

readonly facilityChangedHandler: (facility) => void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:14

Responds to when the waypoint input's selected facility changes.

Parameters

ParameterTypeDescription
facilityundefined | FacilityThe selected facility.

Returns

void


fms

protected readonly fms: Fms

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:39

The FMS instance.


inputIcao

readonly inputIcao: Subject<string>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:25


onLoadExecute()

abstract onLoadExecute: () => void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:289

Called when the load procedure button is clicked.

Returns

void


procFocusedHandler()

readonly procFocusedHandler: (proc) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:16

Responds to when a procedure item is focused.

Parameters

ParameterTypeDescription
procTThe focused procedure.

Returns

Promise<void>


procSelectedHandler()

readonly procSelectedHandler: (index, item, isRefresh) => void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:15

Callback handler for when a procedure is selected.

Parameters

ParameterTypeDescription
indexnumberThe index of the selected procedure.
itemTThe procedure selected.
isRefreshbooleanIf select event happened based on a data refresh.

Returns

void


procSelectionClosedHandler()

readonly procSelectionClosedHandler: (source, selectionMade) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:21

Handles when the procedure selection dialog is closed.

Parameters

ParameterTypeDescription
sourceSelectControl2<T>The SelectControl controlling the dialog that was closed.
selectionMadebooleanWhether a selection was made.

Returns

Promise<void>


procType

protected readonly procType: DEPARTURE | ARRIVAL

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:41

The procedure type for this controller.


runwayFocusedHandler()

readonly runwayFocusedHandler: (trans) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:18

Responds to when a runway transition item is focused.

Parameters

ParameterTypeDescription
transRunwayTransitionThe focused transition.

Returns

Promise<void>


runwaySelectedHandler()

readonly runwaySelectedHandler: (index, item, isRefresh) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:17

Responds to when a runway transition is selected.

Parameters

ParameterTypeDescription
indexnumberThe index of the selected transition.
itemRunwayTransitionThe transition selected.
isRefreshbooleanIf select event happened based on a data refresh.

Returns

Promise<void>


rwyTransSelectionClosedHandler()

readonly rwyTransSelectionClosedHandler: (source, selectionMade) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:22

Handles when the runway transition selection dialog is closed.

Parameters

ParameterTypeDescription
sourceSelectControl2<RunwayTransition>The SelectControl controlling the dialog that was closed.
selectionMadebooleanWhether a selection was made.

Returns

Promise<void>


selectNextCb()

protected readonly selectNextCb: () => void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:38

Callback when the next control should be focused.

Returns

void


store

protected readonly store: S

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:37

A data store.


transFocusedHandler()

readonly transFocusedHandler: (trans) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:20

Responds to when an enroute transition item is focused.

Parameters

ParameterTypeDescription
transEnrouteTransitionThe focused transition.

Returns

Promise<void>


transSelectedHandler()

readonly transSelectedHandler: (index, item, isRefresh) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:19

Responds to when an enroute transition is selected.

Parameters

ParameterTypeDescription
indexnumberThe index of the selected transition.
itemEnrouteTransitionThe transition selected.
isRefreshbooleanIf select event happened based on a data refresh.

Returns

Promise<void>


transSelectionClosedHandler()

readonly transSelectionClosedHandler: (source, selectionMade) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:23

Handles when the enroute transition selection dialog is closed.

Parameters

ParameterTypeDescription
sourceSelectControl2<EnrouteTransition>The SelectControl controlling the dialog that was closed.
selectionMadebooleanWhether a selection was made.

Returns

Promise<void>

Methods

buildSequence()

protected buildSequence(airport, procedure, procIndex, transIndex, rwyTransIndex): Promise<boolean>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:251

Builds the sequence list and flight plan for the procedure preview.

Parameters

ParameterTypeDescription
airportundefined | AirportFacilityThe airport of the procedure to preview.
procedureundefined | TThe procedure to preview.
procIndexnumberThe index of the procedure to preview.
transIndexnumberThe enroute transition index of the procedure to preview.
rwyTransIndexnumberThe runway transition index of the procedure to preview.

Returns

Promise<boolean>

A Promise which is fulfilled with whether a preview sequence was successfully built.


getInitialICAO()

abstract protected getInitialICAO(): undefined | string

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:64

Gets the initial ICAO on load.

Returns

undefined | string

The initial ICAO string or undefined.


initializeIcaoInput()

initializeIcaoInput(): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:48

Initializes the airport ICAO input.

Returns

void


onFacilityChanged()

protected onFacilityChanged(facility): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:70

Responds to when the waypoint input's selected facility changes.

Parameters

ParameterTypeDescription
facilityundefined | FacilityThe selected facility.

Returns

void


onLoadSelected()

onLoadSelected(): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:284

Callback handler for when load is pressed.

Returns

void


onProcFocused()

protected onProcFocused(proc): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:155

Responds to when a procedure item is focused.

Parameters

ParameterTypeDescription
procTThe focused procedure.

Returns

Promise<void>


onProcSelected()

protected onProcSelected(index, item, isRefresh): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:141

Callback handler for when a procedure is selected.

Parameters

ParameterTypeDescription
indexnumberThe index of the selected procedure.
itemTThe procedure selected.
isRefreshbooleanIf select event happened based on a data refresh.

Returns

void


onProcSelectionClosed()

protected onProcSelectionClosed(source, selectionMade): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:89

Handles when the procedure selection dialog is closed.

Parameters

ParameterTypeDescription
sourceSelectControl2<T>The SelectControl controlling the dialog that was closed.
selectionMadebooleanWhether a selection was made.

Returns

Promise<void>


onRunwayFocused()

protected onRunwayFocused(trans): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:192

Responds to when a runway transition item is focused.

Parameters

ParameterTypeDescription
transRunwayTransitionThe focused transition.

Returns

Promise<void>


onRunwaySelected()

protected onRunwaySelected(index, item, isRefresh): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:174

Responds to when a runway transition is selected.

Parameters

ParameterTypeDescription
indexnumberThe index of the selected transition.
itemRunwayTransitionThe transition selected.
isRefreshbooleanIf select event happened based on a data refresh.

Returns

Promise<void>


onRwyTransSelectionClosed()

protected onRwyTransSelectionClosed(source, selectionMade): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:106

Handles when the runway transition selection dialog is closed.

Parameters

ParameterTypeDescription
sourceSelectControl2<RunwayTransition>The SelectControl controlling the dialog that was closed.
selectionMadebooleanWhether a selection was made.

Returns

Promise<void>


onTransFocused()

protected onTransFocused(trans): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:228

Responds to when an enroute transition item is focused.

Parameters

ParameterTypeDescription
transEnrouteTransitionThe focused transition.

Returns

Promise<void>


onTransSelected()

protected onTransSelected(index, item, isRefresh): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:210

Responds to when an enroute transition is selected.

Parameters

ParameterTypeDescription
indexnumberThe index of the selected transition.
itemEnrouteTransitionThe transition selected.
isRefreshbooleanIf select event happened based on a data refresh.

Returns

Promise<void>


onTransSelectionClosed()

protected onTransSelectionClosed(source, selectionMade): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Procedure/DepArr/SelectDepArrController.ts:123

Handles when the enroute transition selection dialog is closed.

Parameters

ParameterTypeDescription
sourceSelectControl2<EnrouteTransition>The SelectControl controlling the dialog that was closed.
selectionMadebooleanWhether a selection was made.

Returns

Promise<void>