|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.placelab.client.tracker.Tracker
org.placelab.client.tracker.CompoundTracker
A CompoundTracker encapsulates multiple Tracker objects
in a single Tracker.
This is useful primarily for comparing multiple Trackers against
one another. For instance, using a CompoundTracker with a
TrackedMapView will produce multiple position reticles
on the map, one for each Tracker in the CompoundTracker.
| Constructor Summary | |
CompoundTracker()
|
|
| Method Summary | |
boolean |
acceptableMeasurement(Measurement m)
Returns true if the tracker can make use of this reading to meaningfully update the estimate. |
void |
addTracker(Tracker t)
Adds a Tracker to the CompoundTracker
All trackers added will be forwarded all requests to
update, either with or without Measurement. |
void |
clearTrackers()
Removes all the Trackers from the CompoundTracker. |
Estimate |
getEstimate()
|
java.util.Vector |
getTrackers()
Gets a Vector of all Trackers in this CompoundTracker |
void |
resetImpl()
Subclasses should implement this to reset themselves to their initial state. |
void |
updateEstimateImpl(Measurement m)
Subclasses should implement this to do the actual work of updating their Estimate with the given Measurement. |
void |
updateWithoutMeasurement(long durationMillis)
This method notifies a tracker that time has elapsed without a new mesurement. |
| Methods inherited from class org.placelab.client.tracker.Tracker |
addEstimateListener, fireEstimateUpdate, getLastUpdatedTime, gotMeasurement, numberOfMeasurements, removeEstimateListener, reset, spotterExceptionThrown, updateEstimate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompoundTracker()
| Method Detail |
public void addTracker(Tracker t)
Tracker to the CompoundTracker
All trackers added will be forwarded all requests to
update, either with or without Measurement.
t - the Tracker to addpublic java.util.Vector getTrackers()
public void clearTrackers()
CompoundEstimate
results.
public void updateEstimateImpl(Measurement m)
TrackerEstimate with the given Measurement.
updateEstimateImpl in class Trackerm - use this to update your Estimatepublic Estimate getEstimate()
getEstimate in class Trackerpublic boolean acceptableMeasurement(Measurement m)
Tracker
acceptableMeasurement in class Trackerpublic void updateWithoutMeasurement(long durationMillis)
Tracker
updateWithoutMeasurement in class Trackerpublic void resetImpl()
Tracker
resetImpl in class Tracker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||