|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uwcse.location.core.Measurement
|
+--uwcse.location.core.LinearDistanceMeasurement
The LinearDistanceMeasurement class represents a linear distance measured between a sensor and an object.
| Nested Class Summary |
| Nested classes inherited from class uwcse.location.core.Measurement |
Measurement.TimestampComparator |
| Field Summary | |
protected double |
m_distanceInMeters
|
| Fields inherited from class uwcse.location.core.Measurement |
m_objectName, m_sensorName, m_timestamp |
| Constructor Summary | |
LinearDistanceMeasurement()
Create a linear distance measurement with length 0. |
|
LinearDistanceMeasurement(String objectName,
String sensorName,
double distanceInMeters)
Create a linear distance measurement in meters. |
|
LinearDistanceMeasurement(LinearDistanceMeasurement ldm)
Creates a linear distance measurement as a copy of the given one. |
|
| Method Summary | |
Object |
clone()
Create a deep copy of this LinearDistanceMeasurement. |
boolean |
equals(Object o)
Test this object for semantic equality with another LinearDistanceMeasurement. |
static double |
feetToMeters(double feet)
Static helper function to convert feet to meters with high precision using the International Bureau of Standards conversion values without truncation |
double |
getDistanceInFeet()
Get the distance in feet represented by this linear measurement. |
double |
getDistanceInMeters()
Get the distance in meters represented by this linear measurement. |
double |
getDistanceInMiles()
Get the distance in miles represented by this linear measurement. |
static double |
metersToFeet(double meters)
Static helper function to convert meters to feet with high precision using the International Bureau of Standards conversion values without truncation |
static double |
metersToMiles(double meters)
Static helper function to convert meters to statute miles with high precision using the International Bureau of Standards conversion values without truncation |
static double |
milesToMeters(double miles)
Static helper function to convert statute miles to meters with high precision using the International Bureau of Standards conversion values without truncation |
String |
toString()
Return a string representation of this LinearDistanceMeasurement. |
| 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 |
protected double m_distanceInMeters
| Constructor Detail |
public LinearDistanceMeasurement()
public LinearDistanceMeasurement(LinearDistanceMeasurement ldm)
public LinearDistanceMeasurement(String objectName,
String sensorName,
double distanceInMeters)
| Method Detail |
public boolean equals(Object o)
equals in class Measurementpublic Object clone()
clone in class Measurementpublic String toString()
toString in class Measurementpublic static double metersToFeet(double meters)
public static double feetToMeters(double feet)
public static double metersToMiles(double meters)
public static double milesToMeters(double miles)
public double getDistanceInMeters()
public double getDistanceInFeet()
public double getDistanceInMiles()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||