Skip to main content

Class: WeightBalanceComputer

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

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:71

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:256

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:83

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:139

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:161

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:117

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.