uwcse.location.core
Class LocationReport

java.lang.Object
  |
  +--uwcse.location.core.LocationReport
Direct Known Subclasses:
StateLocationReport

public abstract class LocationReport
extends Object

A location report contains the location of an object and the uncertainty of that location.

Version:
$Revision: 1.3 $
Author:
Jeffrey Hightower

Constructor Summary
LocationReport()
          Create an empty location report.
LocationReport(LocationReport report)
          Create a location report as a copy of the given one.
LocationReport(Tracker tracker)
          Create a location report for the given tracker.
 
Method Summary
 Measurement getLastMeasurement()
          Get the most recent sensor measurement about the object prior to this location report, or null if the information is not available.
abstract  State getMostLikelyState()
          Get the most likely State of the object.
 long getTimestamp()
          Get the timestamp in milliseconds since epoch associated with this location report.
 String toString()
          Return a string representation of this location report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocationReport

public LocationReport()
Create an empty location report.


LocationReport

public LocationReport(Tracker tracker)
Create a location report for the given tracker.


LocationReport

public LocationReport(LocationReport report)
Create a location report as a copy of the given one.

Method Detail

getMostLikelyState

public abstract State getMostLikelyState()
Get the most likely State of the object.


getLastMeasurement

public Measurement getLastMeasurement()
Get the most recent sensor measurement about the object prior to this location report, or null if the information is not available.


getTimestamp

public long getTimestamp()
Get the timestamp in milliseconds since epoch associated with this location report.


toString

public String toString()
Return a string representation of this location report.

Overrides:
toString in class Object


This documentation is for the Location Stack v0.8. The latest distribution, the documentation, and the list of contributors to the Location Stack can always be found at http://portolano.cs.washington.edu/projects/location/

© Copyright 2004 University of Washington CSE