
SequenceSource |
ptolemy.actor.lib.SequenceSource |
Base class for sequence sources. A sequence source is
a source where the output value is logically a sequence, independent
of time, but dependent on the iteration number. For some time-based
domains, such as CT, actors of this type probably do not make sense
because the number of iterations that the actor experiences per unit
time is not easily determined or controlled. This actor has a parameter,
firingCountLimit, that optionally limits the number of iterations
for which the actor is fired. If this number is n > 0, then
the n-th invocation of postfire() returns false, which indicates
to the scheduler that it should stop invocations of this actor.
The default value of firingCountLimit
is zero, which results in postfire always returning
true. Derived classes must call super.postfire() for this mechanism to
work.
Author(s): Edward A. Lee
Version:$Id: SequenceSource.java,v 1.43 2005/07/08 19:56:06 cxh Exp $
Pt.Proposed Rating:Green (eal)
Pt.Accepted Rating:Green (bilung)
firingCountLimit
If greater than zero, then the number of iterations before the
actor indicates to the scheduler that it is finished by returning
false in its postfire() method.