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
Parameter | Type | Description |
---|---|---|
_initialWaypoint | IntersectionFacility | is the initial intersection facility |
_initialData | AirwaySegment | is the intersection route to build from |
facilityLoader | FacilityLoader | is 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
Parameter | Type | Description |
---|---|---|
stepForward | boolean | is the direction to step; true = forward, false = backward |
arrayInsertFunc | (wpt ) => void | is 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
Parameter | Type | Description |
---|---|---|
array | IntersectionFacility [] | 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.