Skip to main content

Class: FlightPlanLegIterator

A Utility Class that supports iterating through a flight plan either forward or reverse.

Constructors

constructor

new FlightPlanLegIterator(): FlightPlanLegIterator

Returns

FlightPlanLegIterator

Methods

isBusy

isBusy(): boolean

Method that checks whether the FlightPlanLegIterator is busy.

Returns

boolean

Whether the cursor is busy.

Defined in

src/sdk/flightplan/FlightPlanLegIterator.ts:40


iterateForward

iterateForward(lateralPlan, each): void

Iterates through the active flight plan in forward order.

Parameters

NameTypeDescription
lateralPlanFlightPlanThe lateral flight plan to iterate through.
each(data: IteratorCursor) => voidThe function to call for each flight plan leg.

Returns

void

Throws

an Error if the cursor is busy.

Defined in

src/sdk/flightplan/FlightPlanLegIterator.ts:93


iterateReverse

iterateReverse(lateralPlan, each): void

Iterates through the active flight plan in reverse order.

Parameters

NameTypeDescription
lateralPlanFlightPlanThe lateral flight plan to iterate through.
each(data: IteratorCursor) => voidThe function to call for each flight plan leg.

Returns

void

Throws

an Error if the cursor is busy.

Defined in

src/sdk/flightplan/FlightPlanLegIterator.ts:50