Skip to main content

Class: WeightBalanceComputer

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightBalance/WeightBalanceComputer.ts:17

A computer for weight and balance calculations.

Constructors

Constructor

new WeightBalanceComputer(bus, config, weightBalanceSettingManager): WeightBalanceComputer

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightBalance/WeightBalanceComputer.ts:67

Creates a new instance of WeightBalanceComputer.

Parameters

ParameterTypeDescription
busEventBusThe event bus.
configWeightBalanceConfigA weight and balance configuration object.
weightBalanceSettingManagerWeightBalanceUserSettingManagerA manager for weight and balance user settings.

Returns

WeightBalanceComputer

Methods

destroy()

destroy(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightBalance/WeightBalanceComputer.ts:281

Destroys this computer. Once destroyed, this computer will no longer perform any calculations or updates, and cannot be paused or resumed.

Returns

void


init()

init(paused): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightBalance/WeightBalanceComputer.ts:111

Initializes this computer.

Parameters

ParameterTypeDefault valueDescription
pausedbooleanfalseWhether to initialize this computer as paused. Defaults to false.

Returns

void

Throws

Error if this computer has been destroyed.


pause()

pause(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightBalance/WeightBalanceComputer.ts:160

Pauses this computer. Once paused, this computer will not perform any calculations or updates until it is resumed.

Returns

void

Throws

Error if this computer has been destroyed.


reset()

reset(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightBalance/WeightBalanceComputer.ts:179

Resets all load station load weights to zero.

Returns

void

Throws

Error if this computer has been destroyed.


resume()

resume(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightBalance/WeightBalanceComputer.ts:141

Resumes this computer. Once resumed, this computer will perform calculations and updates as necessary until it is paused or destroyed.

Returns

void

Throws

Error if this computer has been destroyed.