|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.nau.cs.scu.TempSensor
public class TempSensor
This class serves as a stand-in for simulating the temperature sensors on the device. Temperature at the moment is non-changing and is set when initializing the sensor. This class could be expanded for more realistic temperature simulation at a later date.
| Constructor Summary | |
|---|---|
TempSensor(double t)
Initialize the sensor with a temperature value. |
|
| Method Summary | |
|---|---|
double |
getTemperature()
Return the current temperature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TempSensor(double t)
t - The temperature which the sensor will always return.| Method Detail |
|---|
public double getTemperature()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||