Skip to main content

Class: SelectApproachController<S>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:17

Controller for SelectApproach component.

Extended by​

Type Parameters​

Type ParameterDefault type
S extends SelectApproachStoreSelectApproachStore

Constructors​

Constructor​

new SelectApproachController<S>(bus, store, selectNextCb, fms, calculator, viewService, fplKey, hasSequence): SelectApproachController<S>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:52

Creates an instance of select approach controller.

Parameters​

ParameterTypeDefault valueDescription
busEventBusundefinedThe Event Bus.
storeSundefinedThe store.
selectNextCb() => voidundefinedCallback when the next control should be focused.
fmsFmsundefinedInstance of FMS.
calculatorFlightPathCalculatorundefinedThe flight path calculator used by this controller to build preview flight plans.
viewServiceViewServiceundefinedThe view service used by this controller.
fplKeystringundefinedThe FPL ViewService Key.
hasSequencebooleanfalseIf this instance of the controller should support a sequence display.

Returns​

SelectApproachController<S>

Properties​

approachFocusedHandler()​

readonly approachFocusedHandler: (item) => Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:20

Responds to when an approach item is focused.

Parameters​

ParameterTypeDescription
itemApproachListItemThe focused item.

Returns​

Promise<void>


approachSelectedHandler()​

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

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:19

Responds to when an approach is selected.

Parameters​

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

Returns​

void


approachSelectionClosedHandler()​

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

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:23

Handles when the approach selection dialog is closed.

Parameters​

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

Returns​

Promise<void>


buildSequenceOpId​

protected buildSequenceOpId: number = 0

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:274


bus​

protected readonly bus: EventBus

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:53

The Event Bus.


calculator​

protected readonly calculator: FlightPathCalculator

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:57

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


canActivate​

readonly canActivate: Subject<boolean>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:28


canLoad​

readonly canLoad: Subject<boolean>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:27


canLoadOrText​

readonly canLoadOrText: MappedSubscribable<"" | "OR">

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:29


controlPub​

protected readonly controlPub: Publisher<MinimumsEvents>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:32


facilityChangedHandler()​

readonly facilityChangedHandler: (facility) => void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:18

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

Parameters​

ParameterTypeDescription
facilityFacility | undefinedThe selected facility.

Returns​

void


fms​

protected readonly fms: Fms

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:56

Instance of FMS.


fplKey​

protected readonly fplKey: string

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:59

The FPL ViewService Key.


g1000ControlPub​

protected readonly g1000ControlPub: Publisher<G1000ControlEvents>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:33


hasSequence​

protected readonly hasSequence: boolean = false

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:60

If this instance of the controller should support a sequence display.


inputIcao​

readonly inputIcao: Subject<string>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:26


onAfterFacilityLoad​

onAfterFacilityLoad: () => void | undefined

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:39

A callback called after a facility is completed loading.


selectNextCb()​

protected readonly selectNextCb: () => void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:55

Callback when the next control should be focused.

Returns​

void


skipCourseReversal​

protected skipCourseReversal: boolean = false

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:31


store​

protected readonly store: S

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:54

The store.


transFocusedHandler()​

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

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:22

Responds to when a transition item is focused.

Parameters​

ParameterTypeDescription
itemTransitionListItemThe focused item.

Returns​

Promise<void>


transSelectedHandler()​

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

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:21

Responds to when a transition is selected.

Parameters​

ParameterTypeDescription
indexnumberThe index of the transition selected.
itemTransitionListItemThe item 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/Shared/UI/Procedure/Approach/SelectApproachController.tsx:24

Handles when the transition selection dialog is closed.

Parameters​

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

Returns​

Promise<void>


viewService​

protected readonly viewService: ViewService

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:58

The view service used by this controller.

Methods​

buildSequence()​

protected buildSequence(airport?, approach?, transition?): Promise<boolean>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:283

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

Parameters​

ParameterTypeDescription
airport?AirportFacilityThe airport of the approach to preview.
approach?ApproachListItemThe approach to preview.
transition?TransitionListItemThe transition of the approach preview.

Returns​

Promise<boolean>

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


getInitialICAO()​

protected getInitialICAO(): string | undefined

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:88

Returns​

string | undefined

Inherit Doc​


initialize()​

initialize(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:76

Initialize the controller.

Returns​

void


onActivateExecuted()​

onActivateExecuted(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:345

Callback handler for when activate is pressed.

Returns​

void


onApproachFocused()​

protected onApproachFocused(item): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:215

Responds to when an approach item is focused.

Parameters​

ParameterTypeDescription
itemApproachListItemThe focused item.

Returns​

Promise<void>


onApproachSelected()​

protected onApproachSelected(index, item, isRefresh): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:203

Responds to when an approach is selected.

Parameters​

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

Returns​

void


onApproachSelectionClosed()​

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

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:180

Handles when the approach selection dialog is closed.

Parameters​

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

Returns​

Promise<void>


onLoadExecuted()​

onLoadExecuted(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:334

Callback handler for when load is pressed.

Returns​

void


onMinimumsOptionSelected()​

onMinimumsOptionSelected(index): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:156

Callback handler for when a minimums option is selected.

Parameters​

ParameterTypeDescription
indexnumberThe index of the option selected.

Returns​

void


onTransFocused()​

protected onTransFocused(item): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:270

Responds to when a transition item is focused.

Parameters​

ParameterTypeDescription
itemTransitionListItemThe focused item.

Returns​

Promise<void>


onTransSelected()​

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

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:225

Responds to when a transition is selected.

Parameters​

ParameterTypeDescription
indexnumberThe index of the transition selected.
itemTransitionListItemThe item 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/Shared/UI/Procedure/Approach/SelectApproachController.tsx:191

Handles when the transition selection dialog is closed.

Parameters​

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

Returns​

Promise<void>


removeCourseReversalFromPreviewPlan()​

protected removeCourseReversalFromPreviewPlan(): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:253

Removes a course reversal from the preview plan.

Returns​

Promise<void>


updateMinimumsValue()​

updateMinimumsValue(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Procedure/Approach/SelectApproachController.tsx:162

Callback handler for when a minimums value is selected.

Returns​

void