uwcse.location.objects.mote
Class MoteDriver

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

public class MoteDriver
extends SensorDriver

A MoteDriver interacts with Berkeley MICA motes and generates ProxmityMeasurements.

Version:
$Revision: 1.2 $
Author:
Eugene Shih Date: $Date: 2004/02/09 23:47:06 $
See Also:
ProximityMeasurement

Nested Class Summary
static class MoteDriver.SynchronizedQueue
          A thread-safe queue implemented on top of a linked list.
 
Nested classes inherited from class uwcse.location.LocationService
LocationService.RediscoverServices
 
Field Summary
 
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
MoteDriver()
          Constructor
 
Method Summary
protected  void handleInput(MoteSerialReadWrite.basePacket packet)
          Extract the data from the Mote Packet.
static void main(String[] argv)
          Run the MoteDriver.
protected static void printUsageAndExit()
          Show the program argument usage and then exit.
 
Methods inherited from class uwcse.location.objects.SensorDriver
sendMeasurement, withdraw
 
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
 

Constructor Detail

MoteDriver

public MoteDriver()
           throws RainException,
                  LocationException
Constructor

Throws:
RainException
LocationException
Method Detail

handleInput

protected void handleInput(MoteSerialReadWrite.basePacket packet)
                    throws IOException
Extract the data from the Mote Packet. ProximityMeasurement objects are created and forwarded automatically.

Parameters:
packet - a packet containing information about a mote sensor and mote object
Throws:
IOException

printUsageAndExit

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


main

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



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