org.placelab.spotter
Class OldPlacelabStumblerLogSpotter

java.lang.Object
  extended byorg.placelab.spotter.AbstractSpotter
      extended byorg.placelab.spotter.SyncSpotter
          extended byorg.placelab.spotter.LogSpotter
              extended byorg.placelab.spotter.OldPlacelabStumblerLogSpotter
All Implemented Interfaces:
Spotter

public class OldPlacelabStumblerLogSpotter
extends LogSpotter


Field Summary
static boolean done
           
static int GPS_THRESHOLD
           
 int lineNum
           
 
Fields inherited from class org.placelab.spotter.LogSpotter
NO_DELAY
 
Constructor Summary
OldPlacelabStumblerLogSpotter(java.lang.String file)
           
 
Method Summary
static java.lang.String blah(int i)
           
 void close()
          Unloads resources used by the spotter.
 int getGPSThreshold()
           
 Measurement getMeasurementFromLog()
          Returns a single Measurement from the log, or null if there are no Measurements remaining.
static java.lang.String jingoLat(double d)
           
static java.lang.String jingoLon(double d)
           
static void main(java.lang.String[] args)
           
 void open()
          Load resources used by the spotter.
 void setGPSThreshold(int millis)
           
 
Methods inherited from class org.placelab.spotter.LogSpotter
getMeasurementImpl, getRate, logIsFinished, newSpotter, nextScanInterval, setRate
 
Methods inherited from class org.placelab.spotter.SyncSpotter
errorInBackgroundThreadAndThreadDeath, getMeasurement, scanUsingBackgroundThread, scanUsingEventSystem, startScanning, startScanning, stopScanning
 
Methods inherited from class org.placelab.spotter.AbstractSpotter
addListener, notifyEndOfScan, notifyEndOfScan, notifyGotException, notifyGotException, notifyGotMeasurement, notifyGotMeasurement, removeListener, scanOnce, scanOnce, waitForThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GPS_THRESHOLD

public static int GPS_THRESHOLD

done

public static boolean done

lineNum

public int lineNum
Constructor Detail

OldPlacelabStumblerLogSpotter

public OldPlacelabStumblerLogSpotter(java.lang.String file)
Method Detail

open

public void open()
          throws SpotterException
Description copied from interface: Spotter
Load resources used by the spotter. Applications should be able to invoke this methods multiple times in sequence and have the "right" things happen. All Spotters should be opened before being used.

Throws:
SpotterException - if the necessary hardware or software for this spotter is not present

close

public void close()
Description copied from interface: Spotter
Unloads resources used by the spotter. Multiple calls to close are ok.


setGPSThreshold

public void setGPSThreshold(int millis)

getGPSThreshold

public int getGPSThreshold()

getMeasurementFromLog

public Measurement getMeasurementFromLog()
Description copied from class: LogSpotter
Returns a single Measurement from the log, or null if there are no Measurements remaining. This method is only of interest to implementers of LogSpotters, users should instead call Spotter.getMeasurement()

Specified by:
getMeasurementFromLog in class LogSpotter

main

public static void main(java.lang.String[] args)

jingoLat

public static java.lang.String jingoLat(double d)

jingoLon

public static java.lang.String jingoLon(double d)

blah

public static java.lang.String blah(int i)