Class ScheduledMethodControllerAction
java.lang.Object
repast.simphony.engine.controller.ScheduledMethodControllerAction
- All Implemented Interfaces:
ContextListener,ControllerAction
public class ScheduledMethodControllerAction
extends Object
implements ControllerAction, ContextListener
- Version:
- $Revision: 1.2 $ $Date: 2006/01/10 16:59:05 $
- Author:
- Nick Collier
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a ScheduledMethodControllerAction with no methods scheduled.ScheduledMethodControllerAction(List<Class<?>> clazzes) Creates a ScheduledMethodControllerAction based on the agent classes contained in the specified data. -
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).voidNotify this event of a change to a context.voidprocessAnnotations(Class<?> clazz) voidprocessAnnotations(List<Class<?>> clazzes) Process any ScheduledMethod annotations on the specified class.voidrunCleanup(RunState runState, Object contextId) Cleans up the action after a run just occurred.voidrunInitialize(RunState runState, Object contextId, Parameters runParams) Initializes the action for a single run (possibly one of many).
-
Constructor Details
-
ScheduledMethodControllerAction
public ScheduledMethodControllerAction()Creates a ScheduledMethodControllerAction with no methods scheduled. -
ScheduledMethodControllerAction
Creates a ScheduledMethodControllerAction based on the agent classes contained in the specified data.- Parameters:
clazzes-
-
-
Method Details
-
processAnnotations
Process any ScheduledMethod annotations on the specified class.- Parameters:
clazzes-
-
processAnnotations
-
batchInitialize
Description copied from interface:ControllerActionInitializes the action for a batch run (a set of runs).- Specified by:
batchInitializein interfaceControllerAction
-
runInitialize
Description copied from interface:ControllerActionInitializes the action for a single run (possibly one of many).- Specified by:
runInitializein interfaceControllerActionrunParams- the current run's parameters
-
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
-
eventOccured
Notify this event of a change to a context.- Specified by:
eventOccuredin interfaceContextListener- Parameters:
ev- The event of which to notify the listener.
-