Class: FlightPlanSegment
Defined in: src/sdk/flightplan/FlightPlanning.ts:178
A segment of a flight plan.
Constructors
Constructor
new FlightPlanSegment(
segmentIndex
,offset
,legs
,segmentType
,airway?
):FlightPlanSegment
Defined in: src/sdk/flightplan/FlightPlanning.ts:189
Creates a new FlightPlanSegment.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
segmentIndex | number | undefined | The index of the segment within the flight plan. |
offset | number | undefined | The leg offset within the original flight plan that the segment starts at. |
legs | LegDefinition [] | undefined | The legs in the flight plan segment. |
segmentType | FlightPlanSegmentType | FlightPlanSegmentType.Enroute | The type of segment this is. |
airway? | string | undefined | The airway associated with this segment, if any. |
Returns
FlightPlanSegment
Properties
airway?
optional
airway:string
Defined in: src/sdk/flightplan/FlightPlanning.ts:190
The airway associated with this segment, if any.
legs
legs:
LegDefinition
[]
Defined in: src/sdk/flightplan/FlightPlanning.ts:189
The legs in the flight plan segment.
offset
offset:
number
Defined in: src/sdk/flightplan/FlightPlanning.ts:189
The leg offset within the original flight plan that the segment starts at.
segmentIndex
segmentIndex:
number
Defined in: src/sdk/flightplan/FlightPlanning.ts:189
The index of the segment within the flight plan.
segmentType
segmentType:
FlightPlanSegmentType
=FlightPlanSegmentType.Enroute
Defined in: src/sdk/flightplan/FlightPlanning.ts:190
The type of segment this is.
Empty
static
Empty:FlightPlanSegment
Defined in: src/sdk/flightplan/FlightPlanning.ts:194
An empty flight plan segment.