com.ebay.carad.os.vitalsigns
Class DataPoint

java.lang.Object
  extended by com.ebay.carad.os.vitalsigns.DataPoint
All Implemented Interfaces:
java.lang.Comparable

public class DataPoint
extends java.lang.Object
implements java.lang.Comparable

A point of data logged at a given time, which represents the meat of most standard "data in timeline" type reports.

Sorts itself in order of logtime ascending.

Version:
$Id$
Author:
Jeremy Thomerson

Field Summary
private  float mData
           
private  long mLogTime
           
 
Constructor Summary
DataPoint()
           
DataPoint(long logTime, float data)
           
 
Method Summary
 int compareTo(java.lang.Object other)
          Sorts itself in order of logtime ascending.
 boolean equals(java.lang.Object other)
           
 float getData()
           
 long getLogTime()
           
 int hashCode()
           
 void setData(float data)
           
 void setLogTime(long logTime)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mLogTime

private long mLogTime

mData

private float mData
Constructor Detail

DataPoint

public DataPoint()

DataPoint

public DataPoint(long logTime,
                 float data)
Method Detail

getData

public float getData()

setData

public void setData(float data)

getLogTime

public long getLogTime()

setLogTime

public void setLogTime(long logTime)

compareTo

public int compareTo(java.lang.Object other)
Sorts itself in order of logtime ascending.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
other - the other Object to compare self to.
Returns:
see interface

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2004-2009. All Rights Reserved.