Class Barrier

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

    public class Barrier
    extends TypedAtomicActor
    implements BranchActor
    This actor implements multiway rendezvous on all channels of the input port, collects the tokens, and then performs a multiway rendezvous on all channels of the output port, sending the collected data. A token provided on an input channel is sent to the corresponding output channel. If there are fewer output channels than input channels, then the corresponding input data are discarded. If there are fewer input channels than output channels, then the last input channel provides the token for the remaining ones. If there are no input channels, then an exception is thrown.
    Since:
    Ptolemy II 5.2
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Yellow (eal)