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
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:
-
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
ConstructorDescriptionDefaultAction
(ScheduleParameters params, IAction actionToExecute, long orderIndex) Creates a DefaultAction to execute the specified action according to the specified scheduling parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
DefaultAction
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
-
-
Method Details
-
execute
public void execute()Executes the IAction specified in the constructor.
-