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
Constructors Constructor Description ScheduledMethodControllerAction()
Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
eventOccured(ContextEvent ev)
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).
-
-
-
Method Detail
-
processAnnotations
public void processAnnotations(List<Class<?>> clazzes)
Process any ScheduledMethod annotations on the specified class.- Parameters:
clazzes
-
-
processAnnotations
public void processAnnotations(Class<?> clazz)
-
batchInitialize
public void batchInitialize(RunState runState, Object contextId)
Description copied from interface:ControllerAction
Initializes the action for a batch run (a set of runs).- Specified by:
batchInitialize
in interfaceControllerAction
-
runInitialize
public void runInitialize(RunState runState, Object contextId, Parameters runParams)
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
public void runCleanup(RunState runState, Object contextId)
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
public void batchCleanup(RunState runState, Object contextId)
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
public void eventOccured(ContextEvent ev)
Notify this event of a change to a context.- Specified by:
eventOccured
in interfaceContextListener
- Parameters:
ev
- The event of which to notify the listener.
-
-