|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.dailyprojectdata.resource.codeissue.MultiToolSnapshot
public class MultiToolSnapshot
Provides a mechanism for generating a "snapshot" for each of several tools. The "snapshot" is the set of sensor data instances for the given tool with the latest runtime value. To use this tool, create an instance, then add() each sensor data instance of interest to it. When finished, you can obtain a snapshot for any given tool, which is the set of sensor data instances associated with that tool with the latest runtime value.
Constructor Summary | |
---|---|
MultiToolSnapshot()
Create a MultiToolSnapshot. |
Method Summary | |
---|---|
void |
add(org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData data)
Processes the SensorData instance, potentially adding it if its runtime is equal to or greater than the runtime associated with the stored instances of that tool. |
java.util.Set<org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData> |
getSensorData(java.lang.String tool)
Returns the latest snapshot associated with the specified tool. |
java.util.Set<java.lang.String> |
getTools()
Returns the set of all Tools in this MultiToolSnapshot. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiToolSnapshot()
Method Detail |
---|
public void add(org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData data)
data
- The sensor data instance.public java.util.Set<java.lang.String> getTools()
public java.util.Set<org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData> getSensorData(java.lang.String tool)
tool
- The tool name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |