jhomenet.hw.driver.test
Class TestDriver

java.lang.Object
  extended by jhomenet.hw.driver.test.TestDriver
All Implemented Interfaces:
HardwareDriver

public class TestDriver
extends java.lang.Object
implements HardwareDriver

Filename: $Source$ Description:


Method Summary
 double getCount(java.lang.String hardwareID)
          TODO: Summary - text up to the first period becomes the javadoc summary.
 java.lang.String getDriverHardwareDescription(java.lang.String hardwareID)
          Get a description of the hardware driver.
 java.lang.String getDriverName()
          Get the driver name.
 java.util.ArrayList<java.lang.String> getHardwareIDs()
          Get a list of the hardware IDs.
 double getTemp(java.lang.String hardwareID)
          TODO: Summary - text up to the first period becomes the javadoc summary.
 double getVoltage(java.lang.String hardwareID)
          TODO: Summary - text up to the first period becomes the javadoc summary.
 double getWindDirection(java.lang.String hardwareID)
          TODO: Summary - text up to the first period becomes the javadoc summary.
 double getWindSpeed(java.lang.String hardwareID)
          TODO: Summary - text up to the first period becomes the javadoc summary.
static HardwareDriver instance()
           
 void switchDeviceOff(java.lang.String hardwareID)
          TODO: Summary - text up to the first period becomes the javadoc summary.
 void switchDeviceOn(java.lang.String hardwareID)
          TODO: Summary - text up to the first period becomes the javadoc summary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static HardwareDriver instance()

getDriverName

public java.lang.String getDriverName()
Description copied from interface: HardwareDriver
Get the driver name.

Specified by:
getDriverName in interface HardwareDriver
Returns:
Driver name
See Also:
HardwareDriver.getDriverName()

getDriverHardwareDescription

public java.lang.String getDriverHardwareDescription(java.lang.String hardwareID)
Description copied from interface: HardwareDriver
Get a description of the hardware driver.

Specified by:
getDriverHardwareDescription in interface HardwareDriver
Returns:
A description of the driver hardware
See Also:
HardwareDriver.getDriverHardwareDescription(java.lang.String)

getHardwareIDs

public java.util.ArrayList<java.lang.String> getHardwareIDs()
Description copied from interface: HardwareDriver
Get a list of the hardware IDs.

Specified by:
getHardwareIDs in interface HardwareDriver
Returns:
List of known hardware
See Also:
HardwareDriver.getHardwareIDs()

switchDeviceOn

public void switchDeviceOn(java.lang.String hardwareID)
                    throws HardwareDriverException
TODO: Summary - text up to the first period becomes the javadoc summary. Then include detail about how this works, including boundry conditions, assumptions and any known 'gotchas'.

Specified by:
switchDeviceOn in interface HardwareDriver
Throws:
HardwareDriverException
See Also:
HardwareDriver.switchDeviceOn(java.lang.String)

switchDeviceOff

public void switchDeviceOff(java.lang.String hardwareID)
                     throws HardwareDriverException
TODO: Summary - text up to the first period becomes the javadoc summary. Then include detail about how this works, including boundry conditions, assumptions and any known 'gotchas'.

Specified by:
switchDeviceOff in interface HardwareDriver
Throws:
HardwareDriverException
See Also:
HardwareDriver.switchDeviceOff(java.lang.String)

getTemp

public double getTemp(java.lang.String hardwareID)
               throws HardwareDriverException
TODO: Summary - text up to the first period becomes the javadoc summary. Then include detail about how this works, including boundry conditions, assumptions and any known 'gotchas'.

Specified by:
getTemp in interface HardwareDriver
Returns:
The temperature value
Throws:
HardwareDriverException
See Also:
HardwareDriver.getTemp(java.lang.String)

getVoltage

public double getVoltage(java.lang.String hardwareID)
                  throws HardwareDriverException
TODO: Summary - text up to the first period becomes the javadoc summary. Then include detail about how this works, including boundry conditions, assumptions and any known 'gotchas'.

Specified by:
getVoltage in interface HardwareDriver
Returns:
The voltage value
Throws:
HardwareDriverException
See Also:
HardwareDriver.getVoltage(java.lang.String)

getCount

public double getCount(java.lang.String hardwareID)
                throws HardwareDriverException
TODO: Summary - text up to the first period becomes the javadoc summary. Then include detail about how this works, including boundry conditions, assumptions and any known 'gotchas'.

Specified by:
getCount in interface HardwareDriver
Returns:
The count value
Throws:
HardwareDriverException
See Also:
HardwareDriver.getCount(java.lang.String)

getWindSpeed

public double getWindSpeed(java.lang.String hardwareID)
                    throws HardwareDriverException
TODO: Summary - text up to the first period becomes the javadoc summary. Then include detail about how this works, including boundry conditions, assumptions and any known 'gotchas'.

Specified by:
getWindSpeed in interface HardwareDriver
Returns:
The wind speed value
Throws:
HardwareDriverException
See Also:
HardwareDriver.getWindSpeed(java.lang.String)

getWindDirection

public double getWindDirection(java.lang.String hardwareID)
                        throws HardwareDriverException
TODO: Summary - text up to the first period becomes the javadoc summary. Then include detail about how this works, including boundry conditions, assumptions and any known 'gotchas'.

Specified by:
getWindDirection in interface HardwareDriver
Returns:
The wind direction value
Throws:
HardwareDriverException
See Also:
HardwareDriver.getWindDirection(java.lang.String)


Copyright © 2004-2005 David Irwin. All Rights Reserved.