org.placelab.demo.apviewer
Class APViewer

java.lang.Object
  extended byorg.placelab.demo.apviewer.APViewer
All Implemented Interfaces:
EstimateListener, java.lang.Runnable

public class APViewer
extends java.lang.Object
implements java.lang.Runnable, EstimateListener

A sample graphical application that displays the currently viewable access points and an estimate of position


Field Summary
 Measurement lastMeas
           
static int TIMER_INTERVAL_MILLIS
           
 
Constructor Summary
APViewer(org.eclipse.swt.widgets.Display theDisplay, org.eclipse.swt.widgets.Shell shell, Placelab daemon)
           
APViewer(org.eclipse.swt.widgets.Display theDisplay, org.eclipse.swt.widgets.Shell shell, PlacelabWithProxy daemon)
           
APViewer(org.eclipse.swt.widgets.Display theDisplay, org.eclipse.swt.widgets.Shell shell, java.lang.String logfile)
           
 
Method Summary
 void estimateUpdated(Tracker t, Estimate e, Measurement m)
          Implement this method to respond to updates from the Tracker(s) you are registered with.
protected  void init(org.eclipse.swt.widgets.Display theDisplay, org.eclipse.swt.widgets.Shell shell)
           
static void main(java.lang.String[] args)
          If this program is passed a file name it will be used as a log to be passed to a log spotter.
 void run()
           
 void runLoop()
           
 void setShellSize(org.eclipse.swt.widgets.Shell s, org.eclipse.swt.widgets.Display d)
           
 void updated(BeaconMeasurement meas)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMER_INTERVAL_MILLIS

public static final int TIMER_INTERVAL_MILLIS
See Also:
Constant Field Values

lastMeas

public Measurement lastMeas
Constructor Detail

APViewer

public APViewer(org.eclipse.swt.widgets.Display theDisplay,
                org.eclipse.swt.widgets.Shell shell,
                java.lang.String logfile)
         throws java.io.IOException

APViewer

public APViewer(org.eclipse.swt.widgets.Display theDisplay,
                org.eclipse.swt.widgets.Shell shell,
                PlacelabWithProxy daemon)
         throws java.io.IOException

APViewer

public APViewer(org.eclipse.swt.widgets.Display theDisplay,
                org.eclipse.swt.widgets.Shell shell,
                Placelab daemon)
         throws java.io.IOException
Method Detail

main

public static void main(java.lang.String[] args)
If this program is passed a file name it will be used as a log to be passed to a log spotter. If not a live WiFi spotter will be created.


init

protected void init(org.eclipse.swt.widgets.Display theDisplay,
                    org.eclipse.swt.widgets.Shell shell)

runLoop

public void runLoop()

setShellSize

public void setShellSize(org.eclipse.swt.widgets.Shell s,
                         org.eclipse.swt.widgets.Display d)

updated

public void updated(BeaconMeasurement meas)

estimateUpdated

public void estimateUpdated(Tracker t,
                            Estimate e,
                            Measurement m)
Description copied from interface: EstimateListener
Implement this method to respond to updates from the Tracker(s) you are registered with.

Specified by:
estimateUpdated in interface EstimateListener
Parameters:
t - the Tracker producing the Estimate
e - the Estimate produced by the Tracker
m - the latest Measurement used by the Tracker to produce the Estimate

run

public void run()
Specified by:
run in interface java.lang.Runnable