Class DistSensor

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

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


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

DistSensor

public DistSensor(VCLinker initComm,
                  SensorUser app)
Method Detail

run

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

handleToken

public void handleToken()

handleMsg

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

localPredicateTrue

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