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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbatchCleanup(RunState runState, Object contextId) Cleans up the action after a batch run (a set of runs).voidbatchInitialize(RunState runState, Object contextId) Initializes the action for a batch run (a set of runs).voidrunCleanup(RunState runState, Object contextId) Cleans up the action after a run just occurred.voidrunInitialize(RunState runState, Object contextId, Parameters runParams) Add a watch context listener to the master context and processes any objects already in the master context.intGets 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:
runInitializein interfaceControllerAction- Parameters:
runState-contextId-runParams- the current run's parameters
-
batchInitialize
Description copied from interface:ControllerActionInitializes the action for a batch run (a set of runs).- Specified by:
batchInitializein interfaceControllerAction
-
runCleanup
Description copied from interface:ControllerActionCleans up the action after a run just occurred.- Specified by:
runCleanupin interfaceControllerAction- Parameters:
runState- information on the run that just occurred
-
batchCleanup
Description copied from interface:ControllerActionCleans up the action after a batch run (a set of runs).- Specified by:
batchCleanupin interfaceControllerAction- Parameters:
runState- information on the set of runs that just occurred
-