Class DefaultAction

java.lang.Object
repast.simphony.engine.schedule.AbstractAction
repast.simphony.engine.schedule.DefaultAction
All Implemented Interfaces:
IAction, ISchedulableAction

public class DefaultAction extends AbstractAction
Default SchedulableAction used by as a default by the scheduling mechanism. A DefaultAction essentially combines an IAction to execute with the data necessary to schedule that IAction for execution.
Author:
Nick Collier
See Also:
  • Constructor Details

    • DefaultAction

      public DefaultAction(ScheduleParameters params, IAction actionToExecute, long orderIndex)
      Creates a DefaultAction to execute the specified action according to the specified scheduling parameters.
      Parameters:
      params - the scheduling parameters for this DefaultAction
      actionToExecute - the IAction to execute when this DefaultAction is executed
      orderIndex - the order in which this was added to a schedule
  • Method Details

    • execute

      public void execute()
      Executes the IAction specified in the constructor.