|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--engine.ControlThread
Implements a thread of control which executes concurrently
| Field Summary | |
(package private) static int |
activeThreads
counts the active threads (those witch are not always...) |
static boolean |
doRun
true if the simulation is in course |
(package private) Instruction |
ins
the instruction list to be executed by this thread |
(package private) java.lang.Object |
semaphore
|
(package private) boolean |
sleepy
true if this thread is suspended |
| Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
| Constructor Summary | |
(package private) |
ControlThread(Instruction ins)
|
(package private) |
ControlThread(Instruction ins,
java.lang.ThreadGroup tg)
|
| Method Summary | |
void |
forceStop()
|
static void |
goSleepy()
|
static void |
goSleepy(java.lang.Object semaphore)
|
void |
run()
|
void |
wakeUp()
|
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static volatile boolean doRun
Instruction ins
volatile boolean sleepy
static volatile int activeThreads
java.lang.Object semaphore
| Constructor Detail |
ControlThread(Instruction ins,
java.lang.ThreadGroup tg)
ControlThread(Instruction ins)
| Method Detail |
public void run()
public static void goSleepy()
throws SimulationStoppedException
public static void goSleepy(java.lang.Object semaphore)
throws SimulationStoppedException
public void wakeUp()
public void forceStop()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||