org.placelab.demo.apviewer
Class APViewer
java.lang.Object
org.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
|
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 |
TIMER_INTERVAL_MILLIS
public static final int TIMER_INTERVAL_MILLIS
- See Also:
- Constant Field Values
lastMeas
public Measurement lastMeas
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
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 Estimatee - the Estimate produced by the Trackerm - the latest Measurement used by the Tracker to produce the Estimate
run
public void run()
- Specified by:
run in interface java.lang.Runnable