org.hackystat.telemetry.analyzer.model
Class TelemetryDataPoint

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.model.TelemetryDataPoint

public class TelemetryDataPoint
extends java.lang.Object

Represents one data point a telemetry stream.

Author:
(Cedric) Qin Zhang

Constructor Summary
TelemetryDataPoint(org.hackystat.utilities.time.period.TimePeriod timePeriod, java.lang.Number value)
          Constructs this instance.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 org.hackystat.utilities.time.period.TimePeriod getPeriod()
          Gets the time period.
 java.lang.Number getValue()
          Gets the value.
 int hashCode()
          Gets the hash code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelemetryDataPoint

public TelemetryDataPoint(org.hackystat.utilities.time.period.TimePeriod timePeriod,
                          java.lang.Number value)
Constructs this instance.

Parameters:
timePeriod - A time period. It's either day, week, or month.
value - The value associated with the time period.
Method Detail

getPeriod

public org.hackystat.utilities.time.period.TimePeriod getPeriod()
Gets the time period.

Returns:
The time period.

getValue

public java.lang.Number getValue()
Gets the value.

Returns:
The value.

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Gets the hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.