Class DefaultScheduleRegistry
java.lang.Object
repast.simphony.engine.environment.DefaultScheduleRegistry
- All Implemented Interfaces:
ScheduleRegistry
Default implementation of a ScheduleRegistry.
- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostRunAction(IAction action) Adds an action that should occur after a run of the model schedule.voidaddPreRunAction(IAction action) Adds an action that should occur before a run of the model schedule.Retrieves the schedule that models should use to schedule their actions.Retrieves the actions that are to occur after a run of the model schedule.Retrieves the actions that are to occur before a run of the model schedule.Retrieves the runner used for executing the schedule.voidremovePostRunAction(IAction action) Removes an action from the actions that should occur after a run of the model schedule.voidremovePreRunAction(IAction action) Removes an action from the actions that should occur before a run of the model schedule.voidsetModelSchedule(ISchedule modelSchedule) Sets the schedule users should use to schedule their actions.voidsetScheduleRunner(Runner runner) Sets the runner used for executing the schedule.
-
Constructor Details
-
DefaultScheduleRegistry
public DefaultScheduleRegistry()
-
-
Method Details
-
getModelSchedule
Retrieves the schedule that models should use to schedule their actions.- Specified by:
getModelSchedulein interfaceScheduleRegistry- Returns:
- the schedule to be used used by models
-
setModelSchedule
Sets the schedule users should use to schedule their actions. Users should not use this method as it is intended for internal Repast use. If a user would like a custom schedule to be used they should specify a ScheduleFactory to the Controller.- Specified by:
setModelSchedulein interfaceScheduleRegistry- Parameters:
modelSchedule- the schedule used by models
-
getPreRunActions
Retrieves the actions that are to occur before a run of the model schedule.- Specified by:
getPreRunActionsin interfaceScheduleRegistry- Returns:
- the actions that are to occur before a run of the model schedule
-
addPreRunAction
Adds an action that should occur before a run of the model schedule.- Specified by:
addPreRunActionin interfaceScheduleRegistry- Parameters:
action- an action that should occur before a run of the model schedule
-
removePreRunAction
Removes an action from the actions that should occur before a run of the model schedule.- Specified by:
removePreRunActionin interfaceScheduleRegistry- Parameters:
action- an action that should occur before a run of the model schedule
-
getPostRunActions
Retrieves the actions that are to occur after a run of the model schedule.- Specified by:
getPostRunActionsin interfaceScheduleRegistry- Returns:
- the actions that are to occur after a run of the model schedule
-
addPostRunAction
Adds an action that should occur after a run of the model schedule.- Specified by:
addPostRunActionin interfaceScheduleRegistry- Parameters:
action- an action that should occur after a run of the model schedule
-
removePostRunAction
Removes an action from the actions that should occur after a run of the model schedule.- Specified by:
removePostRunActionin interfaceScheduleRegistry- Parameters:
action- an action that should occur after a run of the model schedule
-
setScheduleRunner
Sets the runner used for executing the schedule.- Specified by:
setScheduleRunnerin interfaceScheduleRegistry- Parameters:
runner- the schedule runner
-
getScheduleRunner
Retrieves the runner used for executing the schedule.- Specified by:
getScheduleRunnerin interfaceScheduleRegistry- Returns:
- the schedule runner
-