Skip to main content

Class: AoaSystemSelector

Defined in: workingtitle-instruments-epic2/shared/Systems/AoaSystemSelector.ts:18

Automatically selects the best AOA system.

Constructors​

Constructor​

new AoaSystemSelector(index, bus, candidateSystemIndexes, systemPriorities?): AoaSystemSelector

Defined in: workingtitle-instruments-epic2/shared/Systems/AoaSystemSelector.ts:56

Ctor

Parameters​

ParameterTypeDescription
indexnumberThe index of this selector.
busEventBusThe instrument event bus.
candidateSystemIndexesIterable<number> | SubscribableSet<number>The indexes of the AOA systems from which to select.
systemPriorities?readonly number[] | SubscribableMap<number, number> | ReadonlyMap<number, number>The priorities for selecting individual AOA systems. If two systems have the same desirability, then the one with the higher priority will be selected. If a system's priority is not defined, then it will default to a value of 0. The priorities can be specified as an array of AOA system indexes or a map of AOA system indexes to the priorities for selecting those systems. If specified as an array of indexes, then each system whose index appears in the array will be assigned a priority equal to array.length - array.indexOf(index).

Returns​

AoaSystemSelector

Properties​

selectedIndex​

readonly selectedIndex: Subscribable<number>

Defined in: workingtitle-instruments-epic2/shared/Systems/AoaSystemSelector.ts:22

Methods​

destroy()​

destroy(): void

Defined in: workingtitle-instruments-epic2/shared/Systems/AoaSystemSelector.ts:182

Destroys this selector.

Returns​

void


init()​

init(): void

Defined in: workingtitle-instruments-epic2/shared/Systems/AoaSystemSelector.ts:86

Initializes this selector. Once initialized, this selector will automatically select the best ADC among its candidates.

Returns​

void

Throws​

Error if this selector has been destroyed.