Package sim.engine

Class IterativeRepeat

java.lang.Object
sim.engine.IterativeRepeat
All Implemented Interfaces:
Serializable, Steppable, Stoppable

public class IterativeRepeat extends Object implements Steppable, Stoppable
This is a helper class used internally in Schedule to schedule steppables repeating. It's exposed here to enable access by distributed MASON. You generally shouldn't play with this class.
See Also:
  • Field Details

    • lock

      protected Object[] lock
  • Constructor Details

    • IterativeRepeat

      public IterativeRepeat(Steppable step, double time, double interval, int ordering)
  • Method Details

    • getOrdering

      public int getOrdering()
    • getInterval

      public double getInterval()
    • getTime

      public double getTime()
    • getSteppable

      public Steppable getSteppable()
    • getKey

      public Schedule.Key getKey()
    • step

      public void step(SimState state)
      Specified by:
      step in interface Steppable
    • stop

      public void stop()
      Specified by:
      stop in interface Stoppable
    • toString

      public String toString()
      Overrides:
      toString in class Object