org.placelab.client
Class Placelab
java.lang.Object
org.placelab.client.Placelab
- All Implemented Interfaces:
- EstimateListener
- Direct Known Subclasses:
- PlacelabFusion, PlacelabPhone, PlacelabWifiBT
- public class Placelab
- extends java.lang.Object
- implements EstimateListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
spotterList
protected java.util.Vector spotterList
tracker
protected BeaconTracker tracker
mapper
protected Mapper mapper
latestEstimate
protected Estimate latestEstimate
Placelab
protected Placelab()
Placelab
public Placelab(java.util.Vector spotterList,
Mapper mapper,
BeaconTracker tracker)
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 Estimatee - the Estimate produced by the Trackerm - the latest Measurement used by the Tracker to produce the Estimate