uwcse.location.objects.sim
Class LogReaderDriver

java.lang.Object
  |
  +--com.intel.research.rain.Service
        |
        +--uwcse.location.LocationService
              |
              +--uwcse.location.FusionClientService
                    |
                    +--uwcse.location.objects.SensorDriver
                          |
                          +--uwcse.location.objects.sim.LogReaderDriver
All Implemented Interfaces:
MessageHandler
Direct Known Subclasses:
BeesoftLogConverter, SimulationDriver

public abstract class LogReaderDriver
extends SensorDriver

A LogReaderDriver is an abtract class providing functionality to read objects from a log and pass them to a handler such as Measurements into a simulator.

Version:
$Revision: 1.2 $
Author:
Jeffrey Hightower

Nested Class Summary
 
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
LogReaderDriver(String commandName)
           
LogReaderDriver(String commandName, Collection measurementSinkIDs)
           
 
Method Summary
protected  void handleNextLogObject(Object obj)
          Generic null handler for objects.
 void processLog(InputStream in)
          Read a logfile and pass deserialized objects to the handler.
 
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

LogReaderDriver

public LogReaderDriver(String commandName)
                throws RainException,
                       LocationException
Throws:
RainException
LocationException

LogReaderDriver

public LogReaderDriver(String commandName,
                       Collection measurementSinkIDs)
                throws RainException,
                       LocationException
Throws:
RainException
LocationException
Method Detail

processLog

public void processLog(InputStream in)
                throws IOException
Read a logfile and pass deserialized objects to the handler.

Throws:
IOException

handleNextLogObject

protected void handleNextLogObject(Object obj)
Generic null handler for objects.



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