|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectModel
jhomenet.hw.HomenetHardware
jhomenet.hw.sensor.Sensor
jhomenet.hw.sensor.ValueSensor
jhomenet.hw.sensor.TempSensor
public class TempSensor
| Field Summary | |
|---|---|
static float |
maxRangeValue
Define minimum and maximum acceptable range values. |
static float |
minRangeValue
Define minimum and maximum acceptable range values. |
| Fields inherited from class jhomenet.hw.sensor.Sensor |
|---|
currentData, INVALID_DATA, maxData, minData, pollingType, PROPERTYNAME_CURRENTDATA, PROPERTYNAME_MAXDATA, PROPERTYNAME_MINDATA, PROPERTYNAME_POLLINGTYPE, readFailed |
| Fields inherited from class jhomenet.hw.HomenetHardware |
|---|
configuration, driver, errorTracker, hardwareDescription, hardwareId, PROPERTYNAME_CONFIGURATION, PROPERTYNAME_SETUPDESC, setupDescription |
| Constructor Summary | |
|---|---|
TempSensor()
Constructor. |
|
TempSensor(java.lang.String hardwareID,
java.lang.String description)
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
initializeHardware()
Initialize the temperature sensor. |
protected void |
initializeHardwareDescription()
Set the hardware description. |
protected double |
readFromDriver()
Read the current temperature from the sensor. |
HardwareData |
readSensor()
Capture the sensor's data in the sensor's current unit (if applicable). |
| Methods inherited from class jhomenet.hw.sensor.Sensor |
|---|
capture, getCurrentAsString, getCurrentData, getMaxData, getMinData, getPollingType, getPollingTypeListModel, isFirstPoll, resetData, setCurrentData, setMaxData, setMinData, setPollingType, toString |
| Methods inherited from class jhomenet.hw.HomenetHardware |
|---|
equals, getConfiguration, getConfiguration, getDriverHardwareDescription, getDriverName, getErrorCount, getHardwareClassname, getHardwareDescription, getHardwareId, getSetupDescription, isRegistered, setConfiguration, setConfiguration, setDriver, setHardwareId, setSetupDescription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final float minRangeValue
public static final float maxRangeValue
| Constructor Detail |
|---|
public TempSensor(java.lang.String hardwareID,
java.lang.String description)
hardwareID - description - public TempSensor()
| Method Detail |
|---|
protected void initializeHardwareDescription()
HomenetHardware
initializeHardwareDescription in class HomenetHardwareHomenetHardware.initializeHardwareDescription()protected void initializeHardware()
initializeHardware in class HomenetHardwareHomenetHardware.initializeHardware()
public HardwareData readSensor()
throws SensorException
Sensor
readSensor in class SensorSensorExceptionSensor.readSensor()
protected double readFromDriver()
throws SensorException
readFromDriver in class SensorSensorExceptionSensor.readSensor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||