Skip to main content

Class: AirwayBuilder

Defined in: src/sdk/navigation/FacilityLoader.ts:1004

The Airway Builder.

Constructors

Constructor

new AirwayBuilder(_initialWaypoint, _initialData, facilityLoader): AirwayBuilder

Defined in: src/sdk/navigation/FacilityLoader.ts:1014

Creates an instance of the AirwayBuilder

Parameters

ParameterTypeDescription
_initialWaypointIntersectionFacilityis the initial intersection facility
_initialDataAirwaySegmentis the intersection route to build from
facilityLoaderFacilityLoaderis an instance of the facility loader

Returns

AirwayBuilder

Accessors

hasStarted

Get Signature

get hasStarted(): boolean

Defined in: src/sdk/navigation/FacilityLoader.ts:1023

Get whether this builder has started loading waypoints

Returns

boolean

whether this builder has started


isDone

Get Signature

get isDone(): boolean

Defined in: src/sdk/navigation/FacilityLoader.ts:1031

Get whether this builder is done loading waypoints

Returns

boolean

whether this builder is done loading waypoints


waypoints

Get Signature

get waypoints(): null | IntersectionFacility[]

Defined in: src/sdk/navigation/FacilityLoader.ts:1039

Get the airway waypoints

Returns

null | IntersectionFacility[]

the airway waypoints, or null

Methods

_step()

_step(stepForward, arrayInsertFunc): Promise<void>

Defined in: src/sdk/navigation/FacilityLoader.ts:1047

Steps through the airway waypoints

Parameters

ParameterTypeDescription
stepForwardbooleanis the direction to step; true = forward, false = backward
arrayInsertFunc(wpt) => voidis the arrayInsertFunc

Returns

Promise<void>


_stepBackward()

_stepBackward(): Promise<void>

Defined in: src/sdk/navigation/FacilityLoader.ts:1080

Steps Backward through the airway waypoints

Returns

Promise<void>

the step backward function


_stepForward()

_stepForward(): Promise<void>

Defined in: src/sdk/navigation/FacilityLoader.ts:1071

Steps Forward through the airway waypoints

Returns

Promise<void>

the step forward function


setWaypointsArray()

setWaypointsArray(array): void

Defined in: src/sdk/navigation/FacilityLoader.ts:1090

Sets the array into which this builder will load waypoints.

Parameters

ParameterTypeDescription
arrayIntersectionFacility[]is the array into which the builder will load waypoints

Returns

void


startBuild()

startBuild(): Promise<AirwayStatus>

Defined in: src/sdk/navigation/FacilityLoader.ts:1099

Begins loading waypoints for this builder's parent airway.

Returns

Promise<AirwayStatus>

a Promise to return a status code corresponding to Airway.Status when this builder has finished loading waypoints.