Class SingleEvent

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

    public class SingleEvent
    extends TypedAtomicActor
    This actor produces an event with the specified value at the specified time. In its initialize() method, it requests a firing at the specified time. If the time parameter changes before that time is reached, then the event is effectively canceled. No event will be produced.

    If used with a director that implements SuperdenseTimeDirector, then this actor will produce its output event at microstep 1. If it is fired at microstep 0 at the specified model time, then it requests a refiring at the current time. This ensures piecewise continuity.

    Note that you do not really need this actor. The DiscreteClock actor can produce any finite sequence of events by setting is period to Infinity.

    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Red (liuj)
    Pt.ProposedRating:
    Yellow (eal)