Package repast.simphony.ws
Class RunnerSupport
java.lang.Object
repast.simphony.ws.RunnerSupport
Manages RunListeners.
- Author:
- Nick Collier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRunListener
(RunListener listener) Adds the specified listener to the list of RunListener-s to be notified of any run related events, such as stopped, started, and so on.protected void
Fires a paused message to all registered run listeners.protected void
Fires a restarted message to all registered run listeners.protected void
Fires a started message to all registered run listeners.protected void
Fires a stopped message to all registered run listeners.void
removeRunListener
(RunListener listener)
-
Field Details
-
runListeners
-
-
Constructor Details
-
RunnerSupport
public RunnerSupport()
-
-
Method Details
-
addRunListener
Adds the specified listener to the list of RunListener-s to be notified of any run related events, such as stopped, started, and so on.- Parameters:
listener
- the listener to add.
-
removeRunListener
-
fireStartedMessage
protected void fireStartedMessage()Fires a started message to all registered run listeners. -
fireStoppedMessage
protected void fireStoppedMessage()Fires a stopped message to all registered run listeners. -
firePausedMessage
protected void firePausedMessage()Fires a paused message to all registered run listeners. -
fireRestartedMessage
protected void fireRestartedMessage()Fires a restarted message to all registered run listeners.
-