org.placelab.client.tracker
Class FixedTwoDPositionEstimate

java.lang.Object
  extended byorg.placelab.client.tracker.FixedTwoDPositionEstimate
All Implemented Interfaces:
Estimate

public class FixedTwoDPositionEstimate
extends java.lang.Object
implements Estimate

An Estimate whose Coordinate is a FixedTwoDCoordinate.


Field Summary
protected  FixedTwoDCoordinate position
           
protected  long stdDevFlong
          flong representing error in estimate
protected  long timestamp
          timestamp in millis
 
Constructor Summary
FixedTwoDPositionEstimate()
           
FixedTwoDPositionEstimate(FixedTwoDPositionEstimate e)
           
FixedTwoDPositionEstimate(long timestamp, FixedTwoDCoordinate position, long stdDevFlong)
           
 
Method Summary
 void construct(long timestamp, Coordinate position, java.lang.String stdDevString)
           
 Coordinate getCoord()
           
 FixedTwoDCoordinate getFlongPosition()
           
 java.lang.String getStdDevAsString()
           
 long getStdDevFlong()
           
 int getStdDevInMeters()
           
 long getTimestamp()
           
static FixedTwoDPositionEstimate intersect(FixedTwoDPositionEstimate[] fe)
           
 void setStdDevFlong(long stdDevFlong)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

position

protected FixedTwoDCoordinate position

stdDevFlong

protected long stdDevFlong
flong representing error in estimate


timestamp

protected long timestamp
timestamp in millis

Constructor Detail

FixedTwoDPositionEstimate

public FixedTwoDPositionEstimate()

FixedTwoDPositionEstimate

public FixedTwoDPositionEstimate(FixedTwoDPositionEstimate e)

FixedTwoDPositionEstimate

public FixedTwoDPositionEstimate(long timestamp,
                                 FixedTwoDCoordinate position,
                                 long stdDevFlong)
Method Detail

construct

public void construct(long timestamp,
                      Coordinate position,
                      java.lang.String stdDevString)
Specified by:
construct in interface Estimate

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface Estimate
Returns:
the time when this Estimate was computed

getCoord

public Coordinate getCoord()
Specified by:
getCoord in interface Estimate

getFlongPosition

public FixedTwoDCoordinate getFlongPosition()

getStdDevFlong

public long getStdDevFlong()

setStdDevFlong

public void setStdDevFlong(long stdDevFlong)

getStdDevAsString

public java.lang.String getStdDevAsString()
Specified by:
getStdDevAsString in interface Estimate

getStdDevInMeters

public int getStdDevInMeters()
Specified by:
getStdDevInMeters in interface Estimate

toString

public java.lang.String toString()

intersect

public static FixedTwoDPositionEstimate intersect(FixedTwoDPositionEstimate[] fe)
                                           throws FixedPointLongException
Throws:
FixedPointLongException