uwcse.location
Class ArrangementService

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

public class ArrangementService
extends FusionClientService

A service providing arrangement queries of multiple objects such as containment and proximity.

Author:
Jeffrey Hightower

Nested Class Summary
 
Nested classes inherited from class uwcse.location.LocationService
LocationService.RediscoverServices
 
Field Summary
 
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
ArrangementService()
          Create a location display service with the given properties.
ArrangementService(ServiceID fusionServiceID)
          Create a location display service with the given properties using the explicitly specified fusion service (bypasses discovery).
 
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@SubscriberLocationReportMsg report)
          Handle a location report msg.
protected  void withdraw()
          Overridden to stop all timer tasks and cancel all subscriptions.
 
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

ArrangementService

public ArrangementService()
                   throws RainException,
                          LocationException
Create a location display service with the given properties.

Throws:
RainException
LocationException

ArrangementService

public ArrangementService(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
Method Detail

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