Class DateToModelTime

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

    public class DateToModelTime
    extends Transformer
    A timed actor that outputs the local clock value that corresponds to the date. 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 date to this actor is compared to the model start date. The difference between those dates (in millisecond resolution) is multiplied by the time resolution of the local clock and then send to the output. Currently, this actor only works in the DE domain.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$, $Id$
    Author:
    Patricia Derler
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)