Class WatcherControllerAction
java.lang.Object
repast.simphony.engine.controller.WatcherControllerAction
- All Implemented Interfaces:
ControllerAction
Controller action that associates the watcher mechanism with the master
context and processes any objects already in the master context. Note that
this should only be an action on the master context as all the objects in the
sim are in the master context.
- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
batchCleanup
(RunState runState, Object contextId) Cleans up the action after a batch run (a set of runs).void
batchInitialize
(RunState runState, Object contextId) Initializes the action for a batch run (a set of runs).void
runCleanup
(RunState runState, Object contextId) Cleans up the action after a run just occurred.void
runInitialize
(RunState runState, Object contextId, Parameters runParams) Add a watch context listener to the master context and processes any objects already in the master context.int
Gets the number of watches.
-
Constructor Details
-
WatcherControllerAction
-
-
Method Details
-
watchCount
public int watchCount()Gets the number of watches.- Returns:
- the number of watches
-
runInitialize
Add a watch context listener to the master context and processes any objects already in the master context. Any other contexts will be ignored.- Specified by:
runInitialize
in interfaceControllerAction
- Parameters:
runState
-contextId
-runParams
- the current run's parameters
-
batchInitialize
Description copied from interface:ControllerAction
Initializes the action for a batch run (a set of runs).- Specified by:
batchInitialize
in interfaceControllerAction
-
runCleanup
Description copied from interface:ControllerAction
Cleans up the action after a run just occurred.- Specified by:
runCleanup
in interfaceControllerAction
- Parameters:
runState
- information on the run that just occurred
-
batchCleanup
Description copied from interface:ControllerAction
Cleans up the action after a batch run (a set of runs).- Specified by:
batchCleanup
in interfaceControllerAction
- Parameters:
runState
- information on the set of runs that just occurred
-