Package repast.simphony.engine.schedule
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:
IAction
,ISchedulableAction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class repast.simphony.engine.schedule.AbstractAction
AbstractAction.IntervalRescheduler, AbstractAction.OneTimeRescheduler, AbstractAction.Rescheduler
-
-
Field Summary
-
Fields inherited from class repast.simphony.engine.schedule.AbstractAction
frequency, interval, nextTime, nonModelAction, priority, pType, rescheduler
-
-
Constructor Summary
Constructors Constructor Description DefaultAction(ScheduleParameters params, IAction actionToExecute, long orderIndex)
Creates a DefaultAction to execute the specified action according to the specified scheduling parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Executes the IAction specified in the constructor.-
Methods inherited from class repast.simphony.engine.schedule.AbstractAction
addForExecution, getNextTime, getOrderIndex, getPriority, getPriorityType, isNonModelAction, reschedule, setFrequency, setIsNonModelAction, setIsNonModelAction
-
-
-
-
Constructor Detail
-
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 DefaultActionactionToExecute
- the IAction to execute when this DefaultAction is executedorderIndex
- the order in which this was added to a schedule
-
-