|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.util.TemperatureSet
public class TemperatureSet
Temperature container
Constructor Summary | |
---|---|
TemperatureSet()
Constructor |
|
TemperatureSet(java.lang.String label)
Constructor |
|
TemperatureSet(java.lang.String label,
java.util.Collection<Temperature> TList)
Constructor |
|
TemperatureSet(java.lang.String label,
Temperature[] TList)
Constructor |
Method Summary | |
---|---|
boolean |
addTemperature(long ts,
double C)
Adds the specified temperature to this data set |
boolean |
addTemperature(Temperature T)
Adds the specified temperature to this data set |
static java.lang.String |
CreateGoogleDataTableJavaScript(boolean F,
TemperatureSet... TSList)
Creates a Google DataTable containing the specified TemperatureSet Data |
java.lang.String |
getLabel(java.lang.String dft)
Gets the temperature data set label |
double |
getMaximumTemperature()
Get maximum Temperature |
double |
getMinimumTemperature()
Get minimum Temperature |
int |
getSize()
Get size of TemperatureSet |
java.util.Collection<Temperature> |
getTemperatures()
Gets the temperature data set |
static void |
main(java.lang.String[] argv)
|
void |
setLabel(java.lang.String label)
Sets the temperature data set label |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemperatureSet()
public TemperatureSet(java.lang.String label)
public TemperatureSet(java.lang.String label, Temperature[] TList)
public TemperatureSet(java.lang.String label, java.util.Collection<Temperature> TList)
Method Detail |
---|
public static java.lang.String CreateGoogleDataTableJavaScript(boolean F, TemperatureSet... TSList)
F
- True for Fahrenheit, false for CelsiusTSList
- The TemperatureSet data array
public void setLabel(java.lang.String label)
public java.lang.String getLabel(java.lang.String dft)
public boolean addTemperature(long ts, double C)
ts
- The timestamp (in seconds)C
- The temperature (in Celsius)public boolean addTemperature(Temperature T)
public double getMinimumTemperature()
public double getMaximumTemperature()
public int getSize()
public java.util.Collection<Temperature> getTemperatures()
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |