|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Process
|
+--RingLeader
| Constructor Summary | |
RingLeader(Linker initComm,
int number)
|
|
| Method Summary | |
int |
getLeader()
|
void |
handleMsg(Msg m,
int src,
java.lang.String tag)
|
void |
startElection()
|
| Methods inherited from class Process |
broadcastMsg, isNeighbor, myWait, receiveMsg, sendMsg, sendMsg, sendMsg, sendMsg, sendToNeighbors |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface MsgHandler |
receiveMsg |
| Constructor Detail |
public RingLeader(Linker initComm,
int number)
| Method Detail |
public int getLeader()
getLeader in interface Election
public void handleMsg(Msg m,
int src,
java.lang.String tag)
handleMsg in interface MsgHandlerhandleMsg in class Processpublic void startElection()
startElection in interface Election
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||