|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.engine.BasicAction
public abstract class BasicAction
Abstract base class for any action in a simulation that can be executed
by a Schedule.
Schedule| Field Summary | |
|---|---|
static int |
INTERVAL_UPDATER
|
static int |
ONE_TIME_UPDATER
|
protected uchicago.src.sim.engine.BasicAction.Updater |
updater
|
| Constructor Summary | |
|---|---|
BasicAction()
|
|
| Method Summary | |
|---|---|
void |
addToGroup(ScheduleGroup group)
|
abstract void |
execute()
Executes this BasicAction. |
double |
getIntervalTime()
|
java.lang.String |
getName()
Gets the name of this BasicAction. |
double |
getNextTime()
|
void |
reSchedule(ActionQueue queue)
Reschedule this BasicAction if necessary. |
void |
setIntervalTime(double intervalTime)
|
void |
setName(java.lang.String aName)
Sets the name of this BasicAction. |
void |
setNextTime(double nextTime)
Sets the next time (tick) this BasicAction will be executed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INTERVAL_UPDATER
public static final int ONE_TIME_UPDATER
protected uchicago.src.sim.engine.BasicAction.Updater updater
| Constructor Detail |
|---|
public BasicAction()
| Method Detail |
|---|
public void setNextTime(double nextTime)
public double getNextTime()
public double getIntervalTime()
public void setIntervalTime(double intervalTime)
public void setName(java.lang.String aName)
aName - the name for this BasicActionpublic java.lang.String getName()
public abstract void execute()
public void reSchedule(ActionQueue queue)
public void addToGroup(ScheduleGroup group)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||