|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.telemetry.analyzer.model.TelemetryStreamCollection
public class TelemetryStreamCollection
Provides a collection of telemetry streams. Note that this class does not constrain what kind of telemetry streams are present in a collection. Typically, you want to add only related streams, and each stream should contain points over the same interval.
Thread Safety: methods in this class are not synchronized.
Constructor Summary | |
---|---|
TelemetryStreamCollection(java.lang.String name,
org.hackystat.sensorbase.resource.projects.jaxb.Project project,
org.hackystat.utilities.time.interval.Interval interval)
Constructs this instance. |
Method Summary | |
---|---|
void |
add(TelemetryStream stream)
Adds a telemetry stream to this collection. |
TelemetryStream |
get(java.lang.Object tag)
Gets telemetry stream by tag value. |
org.hackystat.utilities.time.interval.Interval |
getInterval()
Gets the interval tag. |
java.lang.String |
getName()
Gets the name tag. |
org.hackystat.sensorbase.resource.projects.jaxb.Project |
getProject()
Gets the project tag. |
java.util.Collection<TelemetryStream> |
getTelemetryStreams()
Gets all the telemetry streams contained in this collection. |
java.util.Iterator<TelemetryStream> |
iterator()
Return an iterator over the TelemetryStreams in this collection. |
void |
setName(java.lang.String name)
Sets the name tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TelemetryStreamCollection(java.lang.String name, org.hackystat.sensorbase.resource.projects.jaxb.Project project, org.hackystat.utilities.time.interval.Interval interval)
name
- The name of this telemetry streams collection.project
- The project.interval
- The interval.Method Detail |
---|
public void setName(java.lang.String name)
name
- The name tag.public java.lang.String getName()
public org.hackystat.sensorbase.resource.projects.jaxb.Project getProject()
public org.hackystat.utilities.time.interval.Interval getInterval()
public void add(TelemetryStream stream) throws TelemetryDataModelException
stream
- The telemetry stream to be added.
TelemetryDataModelException
- If there is already a stream with the same tag.public TelemetryStream get(java.lang.Object tag)
tag
- Telemetry stream tag. Null is a valid value.
public java.util.Iterator<TelemetryStream> iterator()
iterator
in interface java.lang.Iterable<TelemetryStream>
public java.util.Collection<TelemetryStream> getTelemetryStreams()
TelemetryStream
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |