uwcse.location.objects.sim
Class MeasurementLogger

java.lang.Object
  |
  +--com.intel.research.rain.Service
        |
        +--uwcse.location.LocationService
              |
              +--uwcse.location.objects.sim.MeasurementLogger
All Implemented Interfaces:
MessageHandler

public class MeasurementLogger
extends LocationService

A service to collect and log Measurments generated by various hardware drivers for later reply by the simulation driver.

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

Nested Class Summary
 
Nested classes inherited from class uwcse.location.LocationService
LocationService.RediscoverServices
 
Field Summary
protected  Map m_typeToStatMap
           
 
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
MeasurementLogger(OutputStream outStream)
           
 
Method Summary
static void main(String[] argv)
           
protected static void printUsageAndExit()
          Show the program argument usage and then exit.
protected  void processLocationMsg(ServiceID from, LocationMsg@MeasurementMsg measMsg)
          Handle incoming Measurements by logging them.
protected  void withdraw()
          Supplement the inherited behavior to print summary statistics when shutting down.
 
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_typeToStatMap

protected Map m_typeToStatMap
Constructor Detail

MeasurementLogger

public MeasurementLogger(OutputStream outStream)
                  throws RainException,
                         LocationException
Throws:
RainException
LocationException
Method Detail

processLocationMsg

protected void processLocationMsg(ServiceID from,
                                  LocationMsg@MeasurementMsg measMsg)
Handle incoming Measurements by logging them.

Overrides:
processLocationMsg in class LocationService

withdraw

protected void withdraw()
Supplement the inherited behavior to print summary statistics when shutting down.

Overrides:
withdraw in class LocationService

printUsageAndExit

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


main

public static void main(String[] argv)


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