uwcse.location.client
Class DisplayService
java.lang.Object
|
+--com.intel.research.rain.Service
|
+--uwcse.location.LocationService
|
+--uwcse.location.FusionClientService
|
+--uwcse.location.client.DisplayService
- All Implemented Interfaces:
- MessageHandler
- public class DisplayService
- extends FusionClientService
A service for displaying location readings.
- Author:
- Matthai Philipose and Jeffrey Hightower
|
Nested Class Summary |
static class |
DisplayService.Args
A class to contain the command line argument values. |
|
Constructor Summary |
DisplayService(Collection requestedNames,
boolean shouldIllustrateSensingArg,
ServiceID fusionServiceID)
Create a location display service with the given properties using the
explicitly specified fusion service (bypasses discovery). |
| 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 |
DisplayService
public DisplayService(Collection requestedNames,
boolean shouldIllustrateSensingArg,
ServiceID fusionServiceID)
throws RainException,
LocationException
- Create a location display service with the given properties using the
explicitly specified fusion service (bypasses discovery).
- Throws:
RainException
LocationException
processLocationMsg
protected void processLocationMsg(ServiceID from,
LocationMsg@SubscriberLocationReportMsg report)
- Handle a location report msg.
- Overrides:
processLocationMsg in class LocationService
withdraw
protected void withdraw()
- Overridden to stop all timer tasks and cancel all subscriptions.
- Overrides:
withdraw in class FusionClientService
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