uwcse.location.core
Class TrueStateMeasurement

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

public class TrueStateMeasurement
extends Measurement

The TrueStateMeasurement class is used to represent a ground truth measurement for evaluation purposes.

Version:
$Revision: 1.4 $
Author:
Jeffrey Hightower

Nested Class Summary
 
Nested classes inherited from class uwcse.location.core.Measurement
Measurement.TimestampComparator
 
Field Summary
protected  State m_state
           
 
Fields inherited from class uwcse.location.core.Measurement
m_objectName, m_sensorName, m_timestamp
 
Constructor Summary
TrueStateMeasurement()
          Create a map measurement at default point (0,0,0).
TrueStateMeasurement(String objectName, String sensorName, State state)
          Creates a map measurement.
TrueStateMeasurement(TrueStateMeasurement tsm)
          Creates a map measurement as a copy of the given one.
 
Method Summary
 Object clone()
          Create a deep copy of this TrueStateMeasurement.
 boolean equals(Object o)
          Test this object for semantic equality with another TrueStateMeasurement.
 State getState()
          Get the truth state represented by this measurement.
 void setState(State state)
          Set the true state represented by this measurement.
 String toString()
          Return a string representation of this TrueStateMeasurement.
 
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_state

protected State m_state
Constructor Detail

TrueStateMeasurement

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


TrueStateMeasurement

public TrueStateMeasurement(TrueStateMeasurement tsm)
Creates a map measurement as a copy of the given one.


TrueStateMeasurement

public TrueStateMeasurement(String objectName,
                            String sensorName,
                            State state)
Creates a map measurement.

Method Detail

equals

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

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 TrueStateMeasurement.

Overrides:
clone in class Measurement

toString

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

Overrides:
toString in class Measurement

getState

public State getState()
Get the truth state represented by this measurement.


setState

public void setState(State state)
Set the true state represented by this 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