Skip to main content

Class: FlightPlanTextUpdater

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:23

Generates the rows to be used in the flight plan text inset.

Constructors

Constructor

new FlightPlanTextUpdater(store, flightPlanListManager): FlightPlanTextUpdater

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:31

Creates a new FlightPlanTextUpdater.

Parameters

ParameterTypeDescription
storeFlightPlanStoreThe flight plan store.
flightPlanListManagerFlightPlanListManagerThe list manager to use.

Returns

FlightPlanTextUpdater

Methods

destroy()

destroy(): void

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:201

Destroys subs and comps.

Returns

void


getUpdateData()

getUpdateData(topRow): FlightPlanTextData

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:41

Generates the data for the flight plan text inset.

Parameters

ParameterTypeDescription
topRowundefined | FlightPlanTextRowDataReference to the leg or segment list data that should be in the top row.

Returns

FlightPlanTextData

the data for the flight plan text inset.


shouldIgnoreItem()

static shouldIgnoreItem(item, originFacility?, destinationFacility?): boolean

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:188

Whether an item should be left out of the text rows.

Parameters

ParameterTypeDescription
itemFlightPlanListDatathe item to check.
originFacility?FacilityThe current origin facility.
destinationFacility?FacilityThe current destination facility.

Returns

boolean

True if item should be ignored.