Class Consensus

java.lang.Object
  |
  +--Process
        |
        +--Consensus
All Implemented Interfaces:
MsgHandler

public class Consensus
extends Process


Constructor Summary
Consensus(Linker initComm, int f)
           
 
Method Summary
 int decide()
           
 void handleMsg(Msg m, int src, java.lang.String tag)
           
 void propose(int value)
           
 
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
 

Constructor Detail

Consensus

public Consensus(Linker initComm,
                 int f)
Method Detail

propose

public void propose(int value)

decide

public int decide()

handleMsg

public void handleMsg(Msg m,
                      int src,
                      java.lang.String tag)
Overrides:
handleMsg in class Process