|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.temperature.SpyTemp
A simple interface to my temperature servlet at home.
| Constructor Summary | |
SpyTemp()
Get a SpyTemp object reading from the default temperature base. |
|
SpyTemp(String tempBase)
Get a SpyTemp object reading from the default temperature base. |
|
| Method Summary | |
double |
getTemp(String which)
Get the current reading for a given thermometer. |
String[] |
listTherms()
List all available thermometers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SpyTemp()
public SpyTemp(String tempBase)
tempBase - URL to the net.spy.temperature.Temperature servlet
that will be answering temperature requests.| Method Detail |
public String[] listTherms()
throws Exception
Exception - if there's a failure getting the list.
public double getTemp(String which)
throws Exception
which - which thermometer (from the above list) to read
Exception - if there's a problem getting the reading.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||