UnionMerge
ptolemy.domains.de.lib.UnionMerge

A timed merge actor for the DE domain. Its operation is similar to the Merge actor but the output type is the union of the inputs. The labels for the output UnionToken are the names of the input ports. To use this actor, instantiate it, and then add input ports (instances of TypedIOPort). <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 port 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 ports. Otherwise, this actor requests refirings at the current time until no more events are left in the ports. By default, the discardEvents parameter is false.

Author(s): Edward A. Lee, Haiyang Zheng, Yuhong Xiong
Version:$Id: UnionMerge.doc.html,v 1.1 2006/02/22 18:42:26 mangal Exp $
Pt.Proposed Rating:Red (yuhongx)
Pt.Accepted Rating:Red (yuhongx)


output
The output port. The type of this port will be the union of the type of the input ports.


discardEvents
A flag to indicate whether the input events can be discarded. Its default value is false.