Class DelayStart

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

    public class DelayStart
    extends TypedAtomicActor
    This actor, which has no ports, delays the execution of the model until a specified time by sleeping the thread that calls the initialize() method until the specified time. If the time is in the past, then there is no delay. The time is assumed to be today, and is given as in "1:00 pm" for one in the afternoon.

    If this actor is used in SDF, then the director must be set to allow disconnected graphs. Note that it makes no sense to use this actor in PN or CSP, since it will only delay the start of its own thread.

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