Package repast.simphony.engine.schedule
Interface IScheduleFactory
-
- All Known Implementing Classes:
DefaultGraphScheduleFactory
,DefaultScheduleFactory
public interface IScheduleFactory
Interface for Factories producing Schedules.- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
- See Also:
Schedule
,ISchedulableAction
,ISchedulableActionFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISchedule
createSchedule()
Creates a Schedule that by default uses the factory set in this interface to create its scheduled actions.ISchedule
createSchedule(ISchedulableActionFactory factory)
Creates a Schedule that will use the specified ISchedulableActionFactory to create its scheduled actions.void
setDefaultSchedulableActionFactory(ISchedulableActionFactory defaultFactory)
Sets the action factory that will be used when createSchedule is called with no arguments.
-
-
-
Method Detail
-
createSchedule
ISchedule createSchedule(ISchedulableActionFactory factory)
Creates a Schedule that will use the specified ISchedulableActionFactory to create its scheduled actions.- Parameters:
factory
- the factory to use to create the actions that the Schedule will schedule- Returns:
- a schedule that uses the specified factory
-
createSchedule
ISchedule createSchedule()
Creates a Schedule that by default uses the factory set in this interface to create its scheduled actions. The behavior that occurs when a default action factory has not been set is per-implementation specific, but in most cases there should be a reasonable default.- Returns:
- a schedule that uses the default factory
-
setDefaultSchedulableActionFactory
void setDefaultSchedulableActionFactory(ISchedulableActionFactory defaultFactory)
Sets the action factory that will be used when createSchedule is called with no arguments.- Parameters:
defaultFactory
- the default factory to use if one isn't specified
-
-