Class BusAssembler

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class BusAssembler
    extends TypedAtomicActor
    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

    Since:
    Ptolemy II 2.1
    Version:
    $Id$
    Author:
    Zoltan Kemenczy, Research in Motion Limited
    See Also:
    IORelation
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (zkemenczy)