Class EventToDate

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

    public class EventToDate
    extends Transformer
    A timed actor that outputs a date token that corresponds to the current model time (maintained by the local clock in the director). Such a correspondence is only given in models that synchronize to real time. In such models, the real time (date) when the model starts is recorded. An input to this actor is compared to the model start time (in model time). The difference between those dates (in millisecond resolution) is divided by the time resolution of the local clock, added to the start date of the model and then sent to the output.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Patricia Derler
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)