Codeable Merger

Properties

canOutput : Bool

Is true if the output queue has a slot available for an item from one of the input queues.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Can Output

Functions

getInput (input : Int) → item : Struct<Item>

Returns the next item in the given input queue.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Input

Parameters
Name Type Description

Input input

Int

The index of the input queue you want to check (0 = right, 1 = middle, 2 = left)

Return Values
Name Type Description

Item item

Struct<Item>

The next item in the input queue.

transferItem (input : Int) → transfered : Bool

Allows to transfer an item from the given input queue to the output queue if possible.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Transfer Item

Parameters
Name Type Description

Input input

Int

The index of the input queue you want to transfer the next item to the output queue. (0 = right, 1 = middle, 2 = left)

Return Values
Name Type Description

Transfered transfered

Bool

true if it was able to transfer the item.

Signals

ItemOutputted (Struct<Item> Item item)

Triggers when an item is popped from the output queue (aka it got transferred to a conveyor).

Details
Parameters
Name Type Description

Item item

Struct<Item>

The item removed from the output queue.

ItemRequest (Int Input input, Struct<Item> Item item)

Triggers when a new item is ready in one of the input queues.

Details
Parameters
Name Type Description

Input input

Int

The index of the input queue at which the item is ready.

Item item

Struct<Item>

The new item in the input queue.