TimedSource
ptolemy.actor.lib.TimedSource

Base class for time-based sources. A time-based source is a source where the output value is a function of current time. For some sequence-based domains, such as SDF, actors of this type probably do not make sense because current time is not incremented. This actor has a parameter, stopTime, that optionally controls the duration for which the actor is fired. When current time reaches the stopTime, postfire() returns false. This indicates to the director that this actor should not be invoked again. The default value of stopTime is Infinity, which results in postfire always returning true. In other words, this makes the lifetime infinite. Derived classes must call super.postfire() for this mechanism to work.

Author(s): Edward A. Lee
Version:$Id: TimedSource.java,v 1.61 2005/07/08 19:56:08 cxh Exp $
Pt.Proposed Rating:Green (eal)
Pt.Accepted Rating:Green (bilung)




stopTime
The time at which postfire() should return false. This is a double that defaults to Infinity, which means that postfire() never returns false (or at least, doesn't do so due to stopTime having been exceeded).