Skip to main content

Interface: PlanEvents

Events generated by changes in the flight plan.

Methods

onActiveLegChanged

onActiveLegChanged(index, segmentIndex, legIndex, previousSegmentIndex, previousLegIndex, type, batch?): void

A callback which is executed when an active leg is changed.

Parameters

NameTypeDescription
indexnumberThe global index of the leg.
segmentIndexnumberThe index of the flight plan segment.
legIndexnumber-
previousSegmentIndexnumberThe index of the previously active segment.
previousLegIndexnumberThe index of the previously active leg in the previously active segment.
typeActiveLegTypeThe type of leg that was changed.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:89


onBatchAsyncClosed

onBatchAsyncClosed(batch): void

A callback which is executed when a flight plan modification batch has been closed and all pending asynchronous operations assigned to the batch have finished.

Parameters

NameTypeDescription
batchReadonly<FlightPlanModBatch>The batch that was closed.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:197


onBatchClosed

onBatchClosed(batch): void

A callback which is executed when a flight plan modification batch is closed.

Parameters

NameTypeDescription
batchReadonly<FlightPlanModBatch>The batch that was closed.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:190


onBatchOpened

onBatchOpened(batch): void

A callback which is executed when a flight plan modification batch is opened.

Parameters

NameTypeDescription
batchReadonly<FlightPlanModBatch>The batch that was opened.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:184


onCalculatePended

onCalculatePended(index?, batch?): void

A callback which is executed when a flight plan vectorization begins.

Parameters

NameTypeDescription
index?numberThe global index of the flight plan leg that the path is to be generated from.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the calculation was assigned, in order of increasing nestedness. Not defined if the calculation was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:170


onCalculated

onCalculated(index?, batch?): void

A callback which is executed when a flight plan vectorization completes.

Parameters

NameTypeDescription
index?numberThe global index of the flight plan leg that the path was generated from.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the calculation was assigned, in order of increasing nestedness. Not defined if the calculation was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:178


onDirectDataChanged

onDirectDataChanged(directToData, batch?): void

A callback which is executed when direct to data is changed in the plan.

Parameters

NameTypeDescription
directToDataDirectToDataThe direct to data.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:162


onLegChanged

onLegChanged(segmentIndex, segmentLegIndex, type, leg, batch?): void

A callback which is executed when a flight plan leg is added, removed, or its vertical data is changed.

Parameters

NameTypeDescription
segmentIndexnumberThe index of the segment containing the changed flight plan leg.
segmentLegIndexnumberThe index of the changed flight plan leg in its containing segment.
typeLegEventTypeThe type of change.
legLegDefinitionThe leg that was changed.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:67


onLegUserDataDelete

onLegUserDataDelete(segmentIndex, segmentLegIndex, leg, key, batch?): void

A callback which is executed when a flight plan leg key-value user data pair is deleted.

Parameters

NameTypeDescription
segmentIndexnumberThe index of the segment containing the user data's flight plan leg.
segmentLegIndexnumberThe index of the user data's flight plan leg in its containing segment.
legLegDefinitionThe user data's flight plan leg.
keystringThe key of the user data that was deleted.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:154


onLegUserDataSet

onLegUserDataSet(segmentIndex, segmentLegIndex, leg, key, data, batch?): void

A callback which is executed when a flight plan leg key-value user data pair is set.

Parameters

NameTypeDescription
segmentIndexnumberThe index of the segment containing the user data's flight plan leg.
segmentLegIndexnumberThe index of the user data's flight plan leg in its containing segment.
legLegDefinitionThe user data's flight plan leg.
keystringThe key of the user data.
dataanyThe data that was set.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:143


onOriginDestChanged

onOriginDestChanged(type, airport?, batch?): void

A callback which is executed when the origin or destination changes.

Parameters

NameTypeDescription
typeOriginDestChangeTypeThe origin/destination change type.
airport?stringThe airport that was changed.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:106


onProcedureDetailsChanged

onProcedureDetailsChanged(details, batch?): void

A callback which is executed when the procedure details change.

Parameters

NameTypeDescription
detailsProcedureDetailsThe details that were changed.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:114


onSegmentChanged

onSegmentChanged(index, type, segment?, batch?): void

A callback which is executed when a flight plan segment is added, removed, or changed.

Parameters

NameTypeDescription
indexnumberThe index of the changed flight plan segment.
typeSegmentEventTypeThe type of change.
segment?FlightPlanSegmentThe segment that was changed.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:77


onUserDataDelete

onUserDataDelete(key, batch?): void

A callback which is executed when a global key-value user data pair is deleted.

Parameters

NameTypeDescription
keystringThe key of the user data that was deleted.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:131


onUserDataSet

onUserDataSet(key, data, batch?): void

A callback which is executed when a global key-value user data pair is set.

Parameters

NameTypeDescription
keystringThe key of the user data.
dataanyThe user data that was set.
batch?readonly Readonly<FlightPlanModBatch>[]The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.

Returns

void

Defined in

src/sdk/flightplan/FlightPlan.ts:123