uwcse.location.core
Class PlanarSweepMeasurement

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

public class PlanarSweepMeasurement
extends Measurement

The PlanarSweepMeasurement Class contains the measurements from one planar sweep of a sensor.

Version:
$Revision: 1.3 $
Author:
Jeffrey Hightower

Nested Class Summary
 
Nested classes inherited from class uwcse.location.core.Measurement
Measurement.TimestampComparator
 
Field Summary
protected  double m_degRes
           
protected  int[] m_sweep
           
 
Fields inherited from class uwcse.location.core.Measurement
m_objectName, m_sensorName, m_timestamp
 
Constructor Summary
PlanarSweepMeasurement()
          Create an empty planar sweep measurement.
PlanarSweepMeasurement(String objectName, String sensorName, int[] sweep, double degreeResolution)
          Create a linear distance measurement in meters.
PlanarSweepMeasurement(PlanarSweepMeasurement psm)
          Creates a linear distance measurement as a copy of the given one.
 
Method Summary
 Object clone()
          Create a deep copy of this PlanarSweepMeasurement.
 boolean equals(Object o)
          Test this object for semantic equality with another PlanarSweepMeasurement.
 double getDegreeResolution()
          Get the angular resolution between beams of the sweep.
 int[] getSweep()
          Get the distance array (values in millimeters) represented by this sweep measurement.
 int hashCode()
          Overridden to maintain hash contract that equal objects return the same hash code.
 String toString()
          Return a string representation of this PlanarSweepMeasurement.
 
Methods inherited from class uwcse.location.core.Measurement
getObjectName, getSensorName, getTimestamp, setObjectName, setSensorName, setTimestamp
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_sweep

protected int[] m_sweep

m_degRes

protected double m_degRes
Constructor Detail

PlanarSweepMeasurement

public PlanarSweepMeasurement()
Create an empty planar sweep measurement.


PlanarSweepMeasurement

public PlanarSweepMeasurement(PlanarSweepMeasurement psm)
Creates a linear distance measurement as a copy of the given one.


PlanarSweepMeasurement

public PlanarSweepMeasurement(String objectName,
                              String sensorName,
                              int[] sweep,
                              double degreeResolution)
Create a linear distance measurement in meters.

Method Detail

equals

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

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

hashCode

public int hashCode()
Overridden to maintain hash contract that equal objects return the same hash code.

Overrides:
hashCode in class Measurement

clone

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

Overrides:
clone in class Measurement

toString

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

Overrides:
toString in class Measurement

getSweep

public int[] getSweep()
Get the distance array (values in millimeters) represented by this sweep measurement.


getDegreeResolution

public double getDegreeResolution()
Get the angular resolution between beams of the sweep.



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