Package repast.simphony.ui
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 Summary
Constructors Constructor Description RunOptionsModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener listener)
double
getPauseAt()
Gets the pause at tick.int
getScheduleTickDelay()
The schedule tick delay.int
getSparklineLength()
The sparkline length.boolean
getSparklineType()
The sparkline type.double
getStopAt()
Gets the tick to stop at.void
removePropertyChangeListener(PropertyChangeListener listener)
void
setPauseAt(double pauseAt)
Sets the pause at tick.void
setScheduleTickDelay(int scheduleTickDelay)
Set the Schedule tick delay.void
setSparklineLength(int sparklineLength)
Sets the sparkline lengthvoid
setSparklineType(boolean sparklineType)
Sets the sparkline typevoid
setStopAt(double stopAt)
Sets the tick to stop atvoid
simStarted()
Notifies this RunOptions model that simulation has started.void
simStopped()
Notifies this RunOptions model that simulation has stoped.
-
-
-
Method Detail
-
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.
-
-