Class CentSensor

java.lang.Object
  |
  +--Process
        |
        +--CentSensor
All Implemented Interfaces:
MsgHandler, java.lang.Runnable, Sensor

public class CentSensor
extends Process
implements java.lang.Runnable, Sensor


Constructor Summary
CentSensor(VCLinker initComm, SensorUser app)
           
 
Method Summary
 void handleMsg(Msg m, int src, java.lang.String tag)
           
 void localPredicateTrue(VectorClock vc)
           
 void run()
           
 
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

CentSensor

public CentSensor(VCLinker initComm,
                  SensorUser app)
Method Detail

localPredicateTrue

public void localPredicateTrue(VectorClock vc)
Specified by:
localPredicateTrue in interface Sensor

run

public void run()
Specified by:
run in interface java.lang.Runnable

handleMsg

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