uwcse.location.core
Class MapMeasurement

java.lang.Object
  |
  +--uwcse.location.core.Measurement
        |
        +--uwcse.location.core.MapMeasurement

public class MapMeasurement
extends Measurement

The MapMeasurement class captures a sensor measurement reporting the full x,y,z placement of an object.

Version:
$Revision: 1.3 $
Author:
Jeffrey Hightower

Nested Class Summary
 
Nested classes inherited from class uwcse.location.core.Measurement
Measurement.TimestampComparator
 
Field Summary
protected  Point3d m_position
           
 
Fields inherited from class uwcse.location.core.Measurement
m_objectName, m_sensorName, m_timestamp
 
Constructor Summary
MapMeasurement()
          Create a map measurement at default point (0,0,0).
MapMeasurement(String objectName, String sensorName, Tuple3d position)
          Creates a map measurement.
MapMeasurement(MapMeasurement mm)
          Creates a map measurement as a copy of the given one.
 
Method Summary
 Object clone()
          Create a deep copy of this MapMeasurement.
 boolean equals(Object o)
          Test this object for semantic equality with another MapMeasurement.
 Point3d getPosition()
          Get the (x,y,z) position represented by this map measurement.
 void setPosition(Point3d position)
          Set the (x,y,z) position represented by this map measurement.
 String toString()
          Return a string representation of this MapMeasurement.
 
Methods inherited from class uwcse.location.core.Measurement
getObjectName, getSensorName, getTimestamp, hashCode, setObjectName, setSensorName, setTimestamp
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_position

protected Point3d m_position
Constructor Detail

MapMeasurement

public MapMeasurement()
Create a map measurement at default point (0,0,0).


MapMeasurement

public MapMeasurement(MapMeasurement mm)
Creates a map measurement as a copy of the given one.


MapMeasurement

public MapMeasurement(String objectName,
                      String sensorName,
                      Tuple3d position)
Creates a map measurement.

Method Detail

equals

public boolean equals(Object o)
Test this object for semantic equality with another MapMeasurement.

Overrides:
equals in class Measurement
Returns:
true if the object name, sensor name, and timestamp of both both Measurements are the same.

clone

public Object clone()
Create a deep copy of this MapMeasurement.

Overrides:
clone in class Measurement

toString

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

Overrides:
toString in class Measurement

getPosition

public Point3d getPosition()
Get the (x,y,z) position represented by this map measurement.


setPosition

public void setPosition(Point3d position)
Set the (x,y,z) position represented by this map measurement.



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