Package repast.simphony.engine.graph
Class DefaultGraphScheduleFactory
- java.lang.Object
-
- repast.simphony.engine.graph.DefaultGraphScheduleFactory
-
- All Implemented Interfaces:
IScheduleFactory
public class DefaultGraphScheduleFactory extends Object implements IScheduleFactory
ScheduleFactory that producesDefaultGraphSchedule
s.- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
-
-
Constructor Summary
Constructors Constructor Description DefaultGraphScheduleFactory()
Synonymous with DefaultGraphScheduleFactory(new DefaultSchedulableaActionFactory()).DefaultGraphScheduleFactory(ISchedulableActionFactory defaultActionFactory)
Constructs this graph schedule factory which will default to producing graphs with the specified action factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IGraphSchedule
createSchedule()
Constructs a DefaultGraphSchedule using the default action factory specified in this class's construction.IGraphSchedule
createSchedule(ISchedulableActionFactory factory)
Creates a schedule using the specified action factoryvoid
setDefaultSchedulableActionFactory(ISchedulableActionFactory defaultFactory)
Sets the default action factory to be used with constructing schedules
-
-
-
Constructor Detail
-
DefaultGraphScheduleFactory
public DefaultGraphScheduleFactory()
Synonymous with DefaultGraphScheduleFactory(new DefaultSchedulableaActionFactory()).
-
DefaultGraphScheduleFactory
public DefaultGraphScheduleFactory(ISchedulableActionFactory defaultActionFactory)
Constructs this graph schedule factory which will default to producing graphs with the specified action factory.- Parameters:
defaultActionFactory
- the factory the schedule will use to construct actions
-
-
Method Detail
-
createSchedule
public IGraphSchedule createSchedule(ISchedulableActionFactory factory)
Creates a schedule using the specified action factory- Specified by:
createSchedule
in interfaceIScheduleFactory
- Parameters:
factory
- the factory to use to construct actions- Returns:
- a schedule that uses the specified factory
-
createSchedule
public IGraphSchedule createSchedule()
Constructs a DefaultGraphSchedule using the default action factory specified in this class's construction.- Specified by:
createSchedule
in interfaceIScheduleFactory
- Returns:
- a schedule that uses the default factory
- See Also:
DefaultGraphScheduleFactory(ISchedulableActionFactory)
-
setDefaultSchedulableActionFactory
public void setDefaultSchedulableActionFactory(ISchedulableActionFactory defaultFactory)
Sets the default action factory to be used with constructing schedules- Specified by:
setDefaultSchedulableActionFactory
in interfaceIScheduleFactory
- Parameters:
defaultFactory
- the default factory to use when constructing schedules- See Also:
createSchedule()
-
-