The Funnel Block accepts multiple discrete event message input ports (in1, in2, in3) and simply passes them through, unchanged, as the discrete event message.
ADL does not allow multiple entries into a single input of a single block but the Funnel Block makes it possible to do so; note, however, that the messages will not pass through the block simultaneously since discrete event messages are always processed sequentially, one stream at a time.
ADL normally does not allow multiple connections into a single discrete input. For instance, in the illustration shown below, the user is attempting to accumulate the trade quantities generated from two separate instruments into a single Value Accumulator. However, the attempted connection is prohibited by ADL.
However, by using the Funnel Block, you can make multiple connections into the Value Accumulator. But, two separate discrete event messages generated by each of the two instruments will never pass through the Funnel Block simultaneously. Even if both instruments trade at the same time, the corresponding discrete event messages will be generated and output sequentially, one after the other.
To change default block settings, double-click the block to open the Block Editor.
|Name||Name to display beneath the block on the ADL canvas|
|BodyColor||Background color of the block|
|Description||Optional text to explain how the block is used|