|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsim.event.Scheduler
public class Scheduler
This class schedules events and implements the time advance mechanism. No constructor is needed for the class since all data members are static.
| Constructor Summary | |
|---|---|
Scheduler()
|
|
| Method Summary | |
|---|---|
static double |
currentTime()
Return the current time in the simulation. |
static void |
schedule(Event event,
double timeDelay)
This schedule method places an event on the Future Event List (FEL) for later execution. |
static void |
schedule(Event event,
double timeDelay,
int priority)
This schedule method places an event on the Future Event List (FEL) for later execution. |
static void |
startSim()
Start the simulation by processing the first event and subsequent events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scheduler()
| Method Detail |
|---|
public static void schedule(Event event,
double timeDelay)
event - event to scheduletimeDelay - how far in the future to schedule the event
public static void schedule(Event event,
double timeDelay,
int priority)
event - event to scheduletimeDelay - how far in the future to schedule the eventpriority - priority of the event (low = 0, high = 10)public static void startSim()
public static double currentTime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||