Class SingleTokenCommutator

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

    public class SingleTokenCommutator
    extends Transformer
    implements SequenceActor
    The SingleTokenCommutator has a multiport input port and an output 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. On each call to the fire method, the actor reads one token from the current input, and writes one token to an output channel. If there is no token on the input, then it will not produce a token on the output. In the next iteration of this actor, it will read the next channel.
    Since:
    Ptolemy II 2.0
    Version:
    $Id$
    Author:
    Paul Whitaker, Mudit Goel, Edward A. Lee, Christopher Hylands, Jim Armstrong
    Pt.AcceptedRating:
    Yellow (cxh)
    Pt.ProposedRating:
    Yellow (cxh)