jhomenet.server.hw.sensor
Class LightningSensor
java.lang.Object
ValueSensor
jhomenet.server.hw.sensor.LightningSensor
- All Implemented Interfaces:
- IHardwareDriverInitializer<ICountDriver>
public class LightningSensor
- extends ValueSensor
- implements IHardwareDriverInitializer<ICountDriver>
A lightning sensor class.
Id: $Id: /cvsroot/jhomenet/files/src/jhomenet/ $
- Author:
- Dave Irwin (jhomenet at gmail dot com)
Constructor Summary |
LightningSensor(java.lang.String hardwareAddr,
java.lang.String hardwareSetupDescription)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRIKE
public static final STRIKE
- Define the default unit.
strikesPerSecond
public static final Unit strikesPerSecond
strikesPerHour
public static final Unit strikesPerHour
LightningSensor
public LightningSensor(java.lang.String hardwareAddr,
java.lang.String hardwareSetupDescription)
- Parameters:
hardwareAddr
- hardwareSetupDescription
-
copy
public HomenetHardware copy()
- See Also:
jhomenet.commons.hw.HomenetHardware#copy()
initAvailableUnits
protected void initAvailableUnits(java.util.Set<Unit> availableUnits)
- See Also:
jhomenet.commons.hw.sensor.ValueSensor#initAvailableUnits(java.util.Set)
readFromSensor
public HardwareValueData readFromSensor(int channel)
throws HardwareException
- Throws:
HardwareException
- See Also:
jhomenet.commons.hw.sensor.Sensor#readFromSensor(int)
setHardwareDriver
public void setHardwareDriver(ICountDriver hardwareDriver)
- Specified by:
setHardwareDriver
in interface IHardwareDriverInitializer<ICountDriver>
- See Also:
jhomenet.server.hw.driver.IHardwareDriverInitializer#setHardwareDriver(T)
Copyright © 2004-2007 David Irwin. All Rights Reserved.