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
|
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.LocationService |
addObject, callLocationRpc, correctedTimeMillis, getObject, getSysclockError, handleTerminalCommand, multicastLocationMsg, multicastLocationMsgs, processLocationMsg, processLocationRpc, runTerminalCommandLoop, sendLocationMsg, sendLocationMsgs, setDescription |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_portReaderSet
protected Set m_portReaderSet
AlienDriver
public AlienDriver()
throws RainException,
LocationException
- Throws:
RainException
LocationException
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