|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectController
public class Controller
This class serves as the Global Name Server(GNS). It also sends out message requesting the PEs to compute their local min time, based on which it will compute the GVT.
Field Summary | |
---|---|
(package private) boolean |
endOfSim
|
(package private) Flag |
eosFlag
|
(package private) Flag |
gvtFlag
|
(package private) int |
newGVT
|
(package private) PE[] |
PEs
|
(package private) int |
sleepTime
all the PEs in this simulation |
(package private) boolean |
timeForGvt
|
Constructor Summary | |
---|---|
Controller(PE[] pes,
Flag ef,
Flag gf)
Constructer. |
Method Summary | |
---|---|
(package private) int |
computeGVT()
Compute GVT/ |
void |
run()
Implements TimerTask's abstract run method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int sleepTime
Flag eosFlag
boolean endOfSim
Flag gvtFlag
boolean timeForGvt
PE[] PEs
int newGVT
Constructor Detail |
---|
public Controller(PE[] pes, Flag ef, Flag gf)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
int computeGVT()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |