Skip to main content

Class: Epic2FlightPlanRouteUtils

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Fms/Epic2FlightPlanRouteUtils.ts:11

Methods for working with Epic2 flight plan routes.

Constructors

Constructor

new Epic2FlightPlanRouteUtils(): Epic2FlightPlanRouteUtils

Returns

Epic2FlightPlanRouteUtils

Properties

DEFAULT_LOAD_ROUTE_BATCH_NAME

readonly static DEFAULT_LOAD_ROUTE_BATCH_NAME: "flight-plan-route-load" = 'flight-plan-route-load'

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Fms/Epic2FlightPlanRouteUtils.ts:13

The default name for flight plan modification batches opened when loading a flight plan route into a flight plan.

Methods

createRouteFromFlightPlan()

static createRouteFromFlightPlan(facLoader, flightPlan): Promise<FlightPlanRoute>

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Fms/Epic2FlightPlanRouteUtils.ts:21

Creates a flight plan route representing the structure of a flight plan.

Parameters

ParameterTypeDescription
facLoaderFacilityLoaderThe facility loader to use to retrieve facilities referenced in the flight plan.
flightPlanFlightPlanThe flight plan from which to create the route.

Returns

Promise<FlightPlanRoute>

A flight plan route representing the structure of the specified flight plan.


legToFlightPlanRouteEnrouteLeg()

static legToFlightPlanRouteEnrouteLeg(facLoader, leg, out?): Promise<FlightPlanRouteEnrouteLeg>

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Fms/Epic2FlightPlanRouteUtils.ts:158

Converts a flight plan leg into a flight plan route enroute leg.

Parameters

ParameterTypeDescription
facLoaderFacilityLoaderThe facility loader to use to retrieve facilities referenced in the flight plan leg.
legFlightPlanLegThe flight plan leg.
out?FlightPlanRouteEnrouteLegThe flight plan route enroute leg object to which to write the results. If not defined, then a new object will be created.

Returns

Promise<FlightPlanRouteEnrouteLeg>

The converted flight plan route enroute leg. If the specified flight plan leg could not be converted, then the converted enroute leg will be empty.