org.placelab.demo.virtualgps
Class VirtualGPS

java.lang.Object
  extended byorg.placelab.client.Placelab
      extended byorg.placelab.client.PlacelabFusion
          extended byorg.placelab.demo.virtualgps.VirtualGPS
All Implemented Interfaces:
EstimateListener

public class VirtualGPS
extends PlacelabFusion

Takes the Place Lab location and outputs it as NMEA formatted sentences over a serial port allowing you to use any external application that understands NMEA (e.g. Microsoft MapPoint or Delorme Street Atlas). The serial port should be specified with the system properties placelab.virutal_gps_device, and placelab.virtual_gps_baud


Field Summary
protected  java.io.PrintStream out
           
 
Fields inherited from class org.placelab.client.Placelab
latestEstimate, mapper, spotterList, tracker
 
Constructor Summary
VirtualGPS(Mapper _mapper, BeaconTracker _tracker)
           
 
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.
static void main(java.lang.String[] args)
           
 void spotterExceptionThrown(Spotter s, SpotterException ex)
           
 
Methods inherited from class org.placelab.client.Placelab
addEstimateListener, addSpotterListener, getLatestEstimate, getMapper, getTracker, removeEstimateListener, removeSpotterListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected java.io.PrintStream out
Constructor Detail

VirtualGPS

public VirtualGPS(Mapper _mapper,
                  BeaconTracker _tracker)
Method Detail

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
Overrides:
estimateUpdated in class Placelab

spotterExceptionThrown

public void spotterExceptionThrown(Spotter s,
                                   SpotterException ex)

main

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