Class SequenceSource

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, SequenceActor, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable
    Direct Known Subclasses:
    DirectoryListing, Gem5Wrapper, Interpolator, Pulse, Ramp, ZeroOneSource

    public class SequenceSource
    extends LimitedFiringSource
    implements SequenceActor
    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 ggindicates to the scheduler that it should stop invocations of this actor. The default value of firingCountLimit is NONE, which results in postfire always returning true. Derived classes must call super.postfire() for this mechanism to work.
    Since:
    Ptolemy II 0.3
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Green (bilung)
    Pt.ProposedRating:
    Green (eal)