BusAssembler
ptolemy.actor.lib.BusAssembler

Aggregate all input relation channels into one output "bus" relation. The width of the output port (bus relation) is set to the sum of the input port widths. During the fire method, the input port channels are scanned sequentially for tokens with the output channel index incremented for each input channel scanned. If an input channel has a token, it is copied to the corresponding output channel.

Note: The width of a single relation (e.g. connected to an input port) may be controlled by adding a width parameter with an IntToken value representing the desired relation width



Author(s): Zoltan Kemenczy, Research in Motion Limited
Version:$Id: BusAssembler.java,v 1.27 2005/10/28 19:20:13 cxh Exp $
Pt.Proposed Rating:Red (zkemenczy)
Pt.Accepted Rating:Red (cxh)


output
The input port.