A timed merge actor for the DE domain. It merges a set of input signals
into a single output signal based on the order of the tags
associated with the events of signals. A tag is a tuple of a timestamp
(as double) and a microstep or index (as non-negative integer). Tags have a
lexicographic order.
<p>
This actor has an input port (a multiport) and an output port
(a single port). The types of the ports are undeclared and will be
resolved by the type resolution mechanism, with the constraint that
the output type must be greater than or equal to the input type.
<p>
There is a boolean parameter <i>discardEvents</i> associated
with this actor, which decides how to handle simultaneously
available inputs. Each time this actor fires, it reads the first
available tokens from an input channel and sends them to the output
port. If the <i>discardEvents</i> parameter is configured to true,
then this actor discards all the remaining inputs in the rest of
channels. Otherwise, this actor requests refirings at the current
time until no more events are left in the channels. By default,
the discardEvents parameter is false.
Edward A. Lee, Haiyang Zheng
$Id: Merge.java 70402 2014-10-23 00:52:20Z cxh $
Ptolemy II 0.4
Green (hyzheng)
Green (hyzheng)
A flag to indicate whether the input events can be discarded.
Its default value is false.