Class TestApp
java.lang.Object
   TestApp
TestApp
- All Implemented Interfaces: 
- LocationTracker
- public class TestApp- extends java.lang.Object- implements LocationTracker
This class exemplifies what an application would look like if it used
 the MobileClient class to provide location awareness to a device.
 Besides constructing a new MobileClient object, the most important
 part of the TestApp class is the roomChanged method, which is called
 by the MobileClient class when there has been a change in room data.
 The object received by the roomChanged method is a HashMap, which
 maps room-identifying strings to relative magnitudes.  Higher
 magnitudes represent a greater confidence in the room identified the
 string key.  This test application simply prints out the room
 distribution magnitudes, but other applications can use this
 information as necessary.
| Constructor Summary | 
| TestApp(boolean debug)
 | 
 
| Method Summary | 
| static void | main(java.lang.String[] args)Create a new TestApp object, which in turn creates a new
 MobileClient object.
 | 
|  void | roomChanged(java.util.HashMap distribution)This method is called by the Mobile Client class with a HashMap
 containing room strings and their associated relative confidence
 magnitudes.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TestApp
public TestApp(boolean debug)
roomChanged
public void roomChanged(java.util.HashMap distribution)
- This method is called by the Mobile Client class with a HashMap
 containing room strings and their associated relative confidence
 magnitudes.  The TestApp class simply displays these magnitudes.
 
- 
- Specified by:
- roomChangedin interface- LocationTracker
 
- 
- Parameters:
- distribution- The map of room-identifying strings to
                        associated relative confidence magnitudes.
 
main
public static void main(java.lang.String[] args)
- Create a new TestApp object, which in turn creates a new
 MobileClient object.  Once a MobileClient is created, updates
 containing room information periodically come in to this class.
 Running TestApp with the option "-d" provides extra debugging
 output.
 
- 
 
-