Package repast.simphony.ui
Class RunOptionsModel
java.lang.Object
repast.simphony.ui.RunOptionsModel
Model for getting and setting pause, end times, and sparkline length via the
gui.
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
double
Gets the pause at tick.int
The schedule tick delay.int
The sparkline length.boolean
The sparkline type.double
Gets the tick to stop at.void
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
Notifies this RunOptions model that simulation has started.void
Notifies this RunOptions model that simulation has stoped.
-
Constructor Details
-
RunOptionsModel
public RunOptionsModel()
-
-
Method Details
-
addPropertyChangeListener
-
removePropertyChangeListener
-
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.
-