Package repast.simphony.engine.schedule
Class DefaultSchedulableDescriptor
- java.lang.Object
-
- repast.simphony.engine.schedule.DefaultDescriptor
-
- repast.simphony.engine.schedule.DefaultSchedulableDescriptor
-
- All Implemented Interfaces:
Descriptor
,SchedulableDescriptor
public class DefaultSchedulableDescriptor extends DefaultDescriptor implements SchedulableDescriptor
Default implementation of aSchedulableDescriptor
.- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
-
-
Constructor Summary
Constructors Constructor Description DefaultSchedulableDescriptor()
DefaultSchedulableDescriptor(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAction
getAction()
Retrieves the action to be scheduled.ScheduleParameters
getScheduleParameters()
Retrieves the parameters for when the action should occur.void
setAction(IAction action)
Sets the action to be scheduled.void
setScheduleParameters(ScheduleParameters scheduleParameters)
Sets the parameters for when the action should occur.-
Methods inherited from class repast.simphony.engine.schedule.DefaultDescriptor
getName, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface repast.simphony.engine.schedule.Descriptor
getName, setName
-
-
-
-
Constructor Detail
-
DefaultSchedulableDescriptor
public DefaultSchedulableDescriptor(String name)
-
DefaultSchedulableDescriptor
public DefaultSchedulableDescriptor()
-
-
Method Detail
-
getScheduleParameters
public ScheduleParameters getScheduleParameters()
Retrieves the parameters for when the action should occur.- Specified by:
getScheduleParameters
in interfaceSchedulableDescriptor
- Returns:
- parameters for the action's execution
-
setScheduleParameters
public void setScheduleParameters(ScheduleParameters scheduleParameters)
Sets the parameters for when the action should occur.- Specified by:
setScheduleParameters
in interfaceSchedulableDescriptor
- Parameters:
scheduleParameters
- parameters for the action's execution
-
getAction
public IAction getAction()
Retrieves the action to be scheduled.- Specified by:
getAction
in interfaceSchedulableDescriptor
- Returns:
- the action to be scheduled
-
setAction
public void setAction(IAction action)
Sets the action to be scheduled.- Specified by:
setAction
in interfaceSchedulableDescriptor
- Parameters:
action
- the action to be scheduled
-
-