Skip to main content

Type Alias: PerformancePlanProxy<P>

PerformancePlanProxy<P> = P & { [k in keyof P]: ProxiedPerformancePlanProperty<P, k> } & PerformancePlanProxyCallbacks<P> & object

Defined in: src/sdk/performance/PerformancePlanProxy.ts:22

Proxy for accessing the performance plan data for the currently used flight plan.

This exposes all mutable subscribables defined in PerformancePlan, but allows "switching" the backing performance plan that the mutable subscribables reflect.

This is useful to tie CDU pages and CDU components to the relevant mutable subscribables without having to manually switch them around depending on MOD/ACT, for example.

Type Declaration

defaultValuesPlan

defaultValuesPlan: P

Performance plan data for default values (used to reset properties)

switchToPlan()

switchToPlan(plan, initial): void

Switches the proxy to another performance plan

Parameters

ParameterTypeDescription
planPthe performance plan to switch to
initialbooleanwhether this is the initial setting of the backing performance plan

Returns

void

Type Parameters

Type Parameter
P extends PerformancePlan