uwcse.location.objects.versus
Class VersusDriver

java.lang.Object
  |
  +--com.intel.research.rain.Service
        |
        +--uwcse.location.LocationService
              |
              +--uwcse.location.FusionClientService
                    |
                    +--uwcse.location.objects.SensorDriver
                          |
                          +--uwcse.location.objects.versus.VersusDriver
All Implemented Interfaces:
MessageHandler

public class VersusDriver
extends SensorDriver

A VersusDriver interacts with the infrared badge hardware from Versus Technologies and generates ProxmityMeasurements.

Version:
$Revision: 1.2 $
Author:
Jeffrey Hightower
See Also:
ProximityMeasurement

Nested Class Summary
protected  class VersusDriver.LineReaderThread
          A utility helper Thread used to read line-at-a-time data from any InputStream.
 
Nested classes inherited from class uwcse.location.LocationService
LocationService.RediscoverServices
 
Field Summary
protected  VersusDriver.LineReaderThread m_readerThread
           
 
Fields inherited from class uwcse.location.objects.SensorDriver
m_measurementSinkServiceIDSet, SINK_DISCOVERY_QUERY
 
Fields inherited from class uwcse.location.FusionClientService
FUSION_DISCOVERY_QUERY, m_fusionServiceIDSet
 
Fields inherited from class uwcse.location.LocationService
CONFIG_FILENAME, MESSAGE_ELEMENT, MESSAGE_EXTENSION, RPC_ELEMENT, RPC_EXCEPTION_ELEMENT, RPC_EXTENSION, RPC_RESULT_ELEMENT
 
Constructor Summary
VersusDriver(InputStream iStream)
           
 
Method Summary
protected  void handleInputLine(String input)
          Parse a string received from a Versus Badge Server.
protected  void handleVersusPacket(VersusPacket packet)
           
static void main(String[] argv)
          Run the VersusDriver.
protected static void printUsageAndExit()
          Show the program argument usage and then exit.
protected  void withdraw()
          Overridden to shutdown the input reader thread.
 
Methods inherited from class uwcse.location.objects.SensorDriver
sendMeasurement
 
Methods inherited from class uwcse.location.FusionClientService
callFusionServiceRpc, getFusionServiceIDSet
 
Methods inherited from class uwcse.location.LocationService
addObject, callLocationRpc, correctedTimeMillis, getObject, getSysclockError, handleTerminalCommand, multicastLocationMsg, multicastLocationMsgs, processLocationMsg, processLocationRpc, runTerminalCommandLoop, sendLocationMsg, sendLocationMsgs, setDescription
 
Methods inherited from class com.intel.research.rain.Service
getDaemon, getDispatcher, getServiceID, process, receive, setDaemon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_readerThread

protected VersusDriver.LineReaderThread m_readerThread
Constructor Detail

VersusDriver

public VersusDriver(InputStream iStream)
             throws RainException,
                    LocationException
Throws:
RainException
LocationException
Method Detail

withdraw

protected void withdraw()
Overridden to shutdown the input reader thread.

Overrides:
withdraw in class SensorDriver

handleInputLine

protected void handleInputLine(String input)
Parse a string received from a Versus Badge Server. ProximityMeasurment objects are created and forwarded automatically.


handleVersusPacket

protected void handleVersusPacket(VersusPacket packet)

printUsageAndExit

protected static void printUsageAndExit()
Show the program argument usage and then exit.


main

public static void main(String[] argv)
Run the VersusDriver.



This documentation is for the Location Stack v0.8. The latest distribution, the documentation, and the list of contributors to the Location Stack can always be found at http://portolano.cs.washington.edu/projects/location/

© Copyright 2004 University of Washington CSE