uwcse.location.objects.alien
Class AlienDriver

java.lang.Object
  |
  +--com.intel.research.rain.Service
        |
        +--uwcse.location.LocationService
              |
              +--uwcse.location.FusionClientService
                    |
                    +--uwcse.location.objects.SensorDriver
                          |
                          +--uwcse.location.objects.alien.AlienDriver
All Implemented Interfaces:
com.alien.enterpriseRFID.discovery.DiscoveryListener, MessageHandler

public class AlienDriver
extends SensorDriver
implements com.alien.enterpriseRFID.discovery.DiscoveryListener

A AlienDriver interacts with RFID reader hardware from Alien Technologies and generates ProximityMeasurements.

Version:
$Revision: 1.2 $
Author:
Jeffrey Hightower and Matthai Philipose
See Also:
ProximityMeasurement

Nested Class Summary
 
Nested classes inherited from class uwcse.location.LocationService
LocationService.RediscoverServices
 
Field Summary
protected  Set m_portReaderSet
           
 
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
AlienDriver()
           
 
Method Summary
static void main(String[] argv)
          Run the AlienDriver.
protected static void printUsageAndExit()
          Show the program argument usage and then exit.
 void readerAdded(com.alien.enterpriseRFID.discovery.DiscoveryItem di)
          Alien handlers for reader addition.
 void readerRemoved(com.alien.enterpriseRFID.discovery.DiscoveryItem di)
          Alien handler for when a reader has disappeared from a port so stop the corresponding thread.
 void readerRenewed(com.alien.enterpriseRFID.discovery.DiscoveryItem di)
          Alien handler for when a reader is re-found (same reader at same port); spawn a thread one hasn't already been spawned.
protected  void withdraw()
          Overridden to shutdown the timer tasks.
 
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_portReaderSet

protected Set m_portReaderSet
Constructor Detail

AlienDriver

public AlienDriver()
            throws RainException,
                   LocationException
Throws:
RainException
LocationException
Method Detail

withdraw

protected void withdraw()
Overridden to shutdown the timer tasks.

Overrides:
withdraw in class SensorDriver

printUsageAndExit

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


readerAdded

public void readerAdded(com.alien.enterpriseRFID.discovery.DiscoveryItem di)
Alien handlers for reader addition. A reader is found for the first time; add it to the set of readers.

Specified by:
readerAdded in interface com.alien.enterpriseRFID.discovery.DiscoveryListener

readerRenewed

public void readerRenewed(com.alien.enterpriseRFID.discovery.DiscoveryItem di)
Alien handler for when a reader is re-found (same reader at same port); spawn a thread one hasn't already been spawned.

Specified by:
readerRenewed in interface com.alien.enterpriseRFID.discovery.DiscoveryListener

readerRemoved

public void readerRemoved(com.alien.enterpriseRFID.discovery.DiscoveryItem di)
Alien handler for when a reader has disappeared from a port so stop the corresponding thread.

Specified by:
readerRemoved in interface com.alien.enterpriseRFID.discovery.DiscoveryListener

main

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



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