Class TwoPhaseParticipant

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

public class TwoPhaseParticipant
extends Process


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

TwoPhaseParticipant

public TwoPhaseParticipant(Linker initComm)
Method Detail

propose

public void propose(boolean vote)

decide

public boolean decide()

handleMsg

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