|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.telemetry.analyzer.model.TelemetryStream
public class TelemetryStream
Represents a single telemetry stream, which contains an ordered series of TelemetryDataPoint instances.
Constructor Summary | |
---|---|
TelemetryStream(java.lang.Object tag)
Constructs this instance. |
Method Summary | |
---|---|
void |
addDataPoint(TelemetryDataPoint dataPoint)
Adds a data point to this telemetry stream. |
java.util.List<TelemetryDataPoint> |
getDataPoints()
Gets a list of data points in this telemetry stream, ordered by time period. |
java.lang.Number |
getDataPointValue(org.hackystat.utilities.time.period.TimePeriod timePeriod)
Gets the value associated with the specified time period. |
java.lang.Object |
getTag()
Gets the tag associated with this telemetry stream. |
void |
setTag(java.lang.Object tag)
Sets the tag associated with this telemetry stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TelemetryStream(java.lang.Object tag)
tag
- An object that helps to recognize this telemetry stream. Null is
a valid value.Method Detail |
---|
public java.lang.Object getTag()
public void setTag(java.lang.Object tag)
tag
- The new tag valuepublic void addDataPoint(TelemetryDataPoint dataPoint) throws TelemetryDataModelException
dataPoint
- The data point to be added.
TelemetryDataModelException
- If the data for the time period already exists.public java.lang.Number getDataPointValue(org.hackystat.utilities.time.period.TimePeriod timePeriod) throws TelemetryDataModelException
timePeriod
- The time period.
TelemetryDataModelException
- If there is no value associated with the
time period.public java.util.List<TelemetryDataPoint> getDataPoints()
TelemetryDataPoint
objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |