|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--engine.Time
The main thread of the simulation & the time manager.
| Field Summary | |
(package private) static java.util.Vector |
afterFinish
Contains a list of instructions to execute after each time unit |
(package private) static boolean |
anyThreads
|
(package private) static java.util.Vector |
controlThreads
|
(package private) static java.util.Vector |
finishList
The stuff pending to the end of the time units, time - ordered ; |
(package private) static boolean |
keepWorking
make it false to stop the simulation |
(package private) static java.util.Vector |
lastFinisher
The stuff pending to the end of the time units, time - ordered ; |
(package private) boolean |
stop
|
(package private) static long |
time
Holds the start time of the simulation, for cronometration purpose |
(package private) static int |
time_2
|
| Constructor Summary | |
(package private) |
Time()
|
| Method Summary | |
static void |
addAfterFinish(Executable i)
|
static void |
addFinisher(Instruction i)
Appends an instruction for the end of the current time unit. |
static void |
addFinisher(int delay,
Instruction i)
Appends an instruction for the end of the oClock() + delay time unit. |
static long |
clk2()
|
static long |
oClock()
|
(package private) static void |
removeThread(java.lang.Thread t)
|
(package private) static void |
runSimulation()
the main simulation loop |
(package private) static void |
startSimulation()
starts all the threads |
(package private) static void |
stopSimulation()
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static long time
static int time_2
static java.util.Vector controlThreads
static java.util.Vector lastFinisher
static java.util.Vector finishList
static java.util.Vector afterFinish
static boolean anyThreads
static boolean keepWorking
boolean stop
| Constructor Detail |
Time()
| Method Detail |
static void startSimulation()
public static long oClock()
public static long clk2()
public static void addFinisher(int delay,
Instruction i)
public static void addFinisher(Instruction i)
public static void addAfterFinish(Executable i)
static void removeThread(java.lang.Thread t)
static void stopSimulation()
static void runSimulation()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||