Class RunOptionsModel

java.lang.Object
repast.simphony.ui.RunOptionsModel

public class RunOptionsModel extends Object
Model for getting and setting pause, end times, and sparkline length via the gui.
Author:
Nick Collier
  • Constructor Details

    • RunOptionsModel

      public RunOptionsModel()
  • Method Details

    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
    • getPauseAt

      public double getPauseAt()
      Gets the pause at tick.
      Returns:
      the pause at tick.
    • simStarted

      public void simStarted()
      Notifies this RunOptions model that simulation has started. This will commit the current values.
    • simStopped

      public void simStopped()
      Notifies this RunOptions model that simulation has stoped.
    • setPauseAt

      public void setPauseAt(double pauseAt)
      Sets the pause at tick.
      Parameters:
      pauseAt - the tick to pause at
    • getStopAt

      public double getStopAt()
      Gets the tick to stop at.
      Returns:
      the tick to stop at.
    • setStopAt

      public void setStopAt(double stopAt)
      Sets the tick to stop at
      Parameters:
      stopAt - the tick to stop at
    • getSparklineLength

      public int getSparklineLength()
      The sparkline length.
      Returns:
      the sparkline length.
    • setSparklineLength

      public void setSparklineLength(int sparklineLength)
      Sets the sparkline length
      Parameters:
      sparklineLength - the sparkline length
    • getSparklineType

      public boolean getSparklineType()
      The sparkline type.
      Returns:
      the sparklineType type.
    • setSparklineType

      public void setSparklineType(boolean sparklineType)
      Sets the sparkline type
      Parameters:
      sparklineType - the sparkline type
    • getScheduleTickDelay

      public int getScheduleTickDelay()
      The schedule tick delay.
      Returns:
      the schedule tick delay.
    • setScheduleTickDelay

      public void setScheduleTickDelay(int scheduleTickDelay)
      Set the Schedule tick delay.
      Parameters:
      scheduleTickDelay - the schedule tick delay.