Class: FlightPlanSegmentData
Represents a flight plan segment data object. It stores lots of useful info about the segment in handy dandy subscribables.
Implements
Constructors
constructor
• new FlightPlanSegmentData(segment
, planIndex
, store
, plan
): FlightPlanSegmentData
Creates a new leg list data object.
Parameters
Name | Type | Description |
---|---|---|
segment | FlightPlanSegment | The containing segment. |
planIndex | number | The index of the flight plan that this leg belongs to. |
store | FlightPlanStore | The flight plan store. |
plan | FlightPlan | The flight plan that this leg exists in. |
Returns
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:92
Properties
airway
• Readonly
airway: Subscribable
<undefined
| string
>
The airway name of the segment, or undefined
if the segment is not an airway.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:68
distance
• Readonly
distance: NumberUnitSubject
<Distance
, SimpleUnit
<Distance
>>
The total distance of all legs in the segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:78
estimatedTimeEnroute
• Readonly
estimatedTimeEnroute: NumberUnitSubject
<Duration
, SimpleUnit
<Duration
>>
The total estimated time enroute of all legs in the segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:81
isAirway
• Readonly
isAirway: Subscribable
<boolean
>
Whether the segment is an airway.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:71
plan
• Readonly
plan: FlightPlan
The flight plan that this leg exists in.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:97
planIndex
• Readonly
planIndex: number
The index of the flight plan that this leg belongs to.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:95
segment
• Readonly
segment: FlightPlanSegment
A reference to the segment in the flight plan.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:94
segmentIndex
• Readonly
segmentIndex: Subscribable
<number
>
The index of the segment in the flight plan.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:75
type
• Readonly
type: "segment"
The type of flight plan list item.
Implementation of
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:64
Methods
destroy
▸ destroy(): void
Call when this leg is rmoved from the plan.
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:122
onAirwayChanged
▸ onAirwayChanged(airway
): void
Handles the airway changing.
Parameters
Name | Type | Description |
---|---|---|
airway | undefined | string | The new airway. |
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:117
updateSegmentIndex
▸ updateSegmentIndex(segmentIndex
): void
Sets the new segment index.
Parameters
Name | Type | Description |
---|---|---|
segmentIndex | number | The new segment index. |
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanSegmentListData.ts:109