uchicago.src.sim.engine
Class ScheduleGroup
java.lang.Object
uchicago.src.sim.engine.BasicAction
uchicago.src.sim.engine.ScheduleGroup
- Direct Known Subclasses:
- RandomScheduleGroup
public class ScheduleGroup
- extends BasicAction
A specialized BasicAction containing other BasicActions. This is used
by the scheduling mechanism and should not be used by modelers.
- Version:
- $Revision: 1.6 $ $Date: 2004/11/03 19:50:57 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
actions
protected java.util.ArrayList actions
queue
protected ActionQueue queue
ScheduleGroup
public ScheduleGroup(ActionQueue queue)
addBasicAction
public void addBasicAction(BasicAction action)
clear
public void clear()
size
public int size()
execute
public void execute()
- Description copied from class:
BasicAction
- Executes this BasicAction. Typically invokes a Method on some
Object.
- Specified by:
execute in class BasicAction
reSchedule
public void reSchedule(ActionQueue aQueue)
- Reschedules all the BasicAction contained by this ScheduleGroup. Note
that this ignores the aQueue parameter and uses the ActionQueue passed
in as part the constructor.
- Overrides:
reSchedule in class BasicAction
indexSort
public void indexSort()
- Sorts the BasicActions in this ScheduleGroup according to their
indices.
removeAction
public void removeAction(BasicAction action)