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
ConstructorDescriptionCreates 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 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
Notify this event of a change to a context.void
processAnnotations
(Class<?> clazz) void
processAnnotations
(List<Class<?>> clazzes) Process any ScheduledMethod annotations on the specified class.void
runCleanup
(RunState runState, Object contextId) Cleans up the action after a run just occurred.void
runInitialize
(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:ControllerAction
Initializes the action for a batch run (a set of runs).- Specified by:
batchInitialize
in interfaceControllerAction
-
runInitialize
Description copied from interface:ControllerAction
Initializes the action for a single run (possibly one of many).- Specified by:
runInitialize
in interfaceControllerAction
runParams
- the current run's parameters
-
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
-
eventOccured
Notify this event of a change to a context.- Specified by:
eventOccured
in interfaceContextListener
- Parameters:
ev
- The event of which to notify the listener.
-