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 Details

    • ScheduledMethodControllerAction

      public ScheduledMethodControllerAction()
      Creates a ScheduledMethodControllerAction with no methods scheduled.
    • ScheduledMethodControllerAction

      public ScheduledMethodControllerAction(List<Class<?>> clazzes)
      Creates a ScheduledMethodControllerAction based on the agent classes contained in the specified data.
      Parameters:
      clazzes -
  • Method Details

    • 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 interface ControllerAction
    • 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 interface ControllerAction
      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 interface ControllerAction
      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 interface ControllerAction
      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 interface ContextListener
      Parameters:
      ev - The event of which to notify the listener.