|
|||||||||||
| 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.ProximityMeasurement
The ProximityMeasurement class represents a sensor reading of two objects which are nearby one another based on the limited range of a physical phenomenon (e.g. reception of an infrared emission).
| Nested Class Summary |
| Nested classes inherited from class uwcse.location.core.Measurement |
Measurement.TimestampComparator |
| Field Summary | |
protected boolean |
m_isProximal
|
| Fields inherited from class uwcse.location.core.Measurement |
m_objectName, m_sensorName, m_timestamp |
| Constructor Summary | |
ProximityMeasurement()
Create a ProximityMeasurement |
|
ProximityMeasurement(String objectName,
String sensorName)
Create a proximity measurement for two proximal objects. |
|
ProximityMeasurement(String objectName,
String sensorName,
boolean isProximal)
Create a proximity measurement. |
|
ProximityMeasurement(ProximityMeasurement pm)
Creates a proximity measurement as a copy of the given one. |
|
| Method Summary | |
Object |
clone()
Create a deep copy of this CompassMeasurement. |
boolean |
equals(Object o)
Test this object for semantic equality with another ProximityMeasurement. |
boolean |
isProximal()
Returns true if this measurement indicates a valid proximity. |
String |
toString()
Return a string representation of this ProximityMeasurement. |
| 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 boolean m_isProximal
| Constructor Detail |
public ProximityMeasurement()
public ProximityMeasurement(String objectName,
String sensorName)
public ProximityMeasurement(ProximityMeasurement pm)
public ProximityMeasurement(String objectName,
String sensorName,
boolean isProximal)
isProximal - A boolean indicating valid proximity. Usually this
should be set true unless this measurement's purpose is specifically to
indicate that two objects are not proximal.| Method Detail |
public boolean equals(Object o)
equals in class Measurementpublic String toString()
toString in class Measurementpublic Object clone()
clone in class Measurementpublic boolean isProximal()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||