Class: FlightPlanSegment
Defined in: src/sdk/flightplan/FlightPlanning.ts:140
A segment of a flight plan.
Constructors
Constructor
new FlightPlanSegment(
segmentIndex,offset,legs,segmentType,airway?):FlightPlanSegment
Defined in: src/sdk/flightplan/FlightPlanning.ts:151
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?
optionalairway:string
Defined in: src/sdk/flightplan/FlightPlanning.ts:152
The airway associated with this segment, if any.
legs
legs:
LegDefinition[]
Defined in: src/sdk/flightplan/FlightPlanning.ts:151
The legs in the flight plan segment.
offset
offset:
number
Defined in: src/sdk/flightplan/FlightPlanning.ts:151
The leg offset within the original flight plan that the segment starts at.
segmentIndex
segmentIndex:
number
Defined in: src/sdk/flightplan/FlightPlanning.ts:151
The index of the segment within the flight plan.
segmentType
segmentType:
FlightPlanSegmentType=FlightPlanSegmentType.Enroute
Defined in: src/sdk/flightplan/FlightPlanning.ts:152
The type of segment this is.
Empty
staticEmpty:FlightPlanSegment
Defined in: src/sdk/flightplan/FlightPlanning.ts:156
An empty flight plan segment.