org.placelab.client
Class Placelab

java.lang.Object
  extended byorg.placelab.client.Placelab
All Implemented Interfaces:
EstimateListener
Direct Known Subclasses:
PlacelabFusion, PlacelabPhone, PlacelabWifiBT

public class Placelab
extends java.lang.Object
implements EstimateListener


Field Summary
protected  Estimate latestEstimate
           
protected  Mapper mapper
           
protected  java.util.Vector spotterList
           
protected  BeaconTracker tracker
           
 
Constructor Summary
protected Placelab()
           
  Placelab(java.util.Vector spotterList, Mapper mapper, BeaconTracker tracker)
           
 
Method Summary
 void addEstimateListener(EstimateListener el)
           
 void addSpotterListener(SpotterListener sl)
           
 void estimateUpdated(Tracker t, Estimate e, Measurement m)
          Implement this method to respond to updates from the Tracker(s) you are registered with.
 Estimate getLatestEstimate()
           
 Mapper getMapper()
           
 BeaconTracker getTracker()
           
 void removeEstimateListener(EstimateListener el)
           
 void removeSpotterListener(SpotterListener sl)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spotterList

protected java.util.Vector spotterList

tracker

protected BeaconTracker tracker

mapper

protected Mapper mapper

latestEstimate

protected Estimate latestEstimate
Constructor Detail

Placelab

protected Placelab()

Placelab

public Placelab(java.util.Vector spotterList,
                Mapper mapper,
                BeaconTracker tracker)
Method Detail

getTracker

public BeaconTracker getTracker()

getMapper

public Mapper getMapper()

addEstimateListener

public void addEstimateListener(EstimateListener el)

removeEstimateListener

public void removeEstimateListener(EstimateListener el)

addSpotterListener

public void addSpotterListener(SpotterListener sl)

removeSpotterListener

public void removeSpotterListener(SpotterListener sl)

start

public void start()
           throws PlacelabException
Throws:
PlacelabException

stop

public void stop()
          throws PlacelabException
Throws:
PlacelabException

getLatestEstimate

public Estimate getLatestEstimate()
                           throws PlacelabException
Throws:
PlacelabException

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