jhomenet.hw.test
Class TestDevice

java.lang.Object
  extended by Model
      extended by jhomenet.hw.HomenetHardware
          extended by jhomenet.hw.device.Device
              extended by jhomenet.hw.test.TestDevice
All Implemented Interfaces:
java.io.Serializable, Hardware

public class TestDevice
extends Device

Author:
David Irwin

Field Summary
static State OFF
          Device states.
static State ON
          Device states.
 
Fields inherited from class jhomenet.hw.device.Device
desiredState, PROPERTYNAME_CURRENTSTATE, states
 
Fields inherited from class jhomenet.hw.HomenetHardware
configuration, driver, errorTracker, hardwareDescription, hardwareId, PROPERTYNAME_CONFIGURATION, PROPERTYNAME_SETUPDESC, setupDescription
 
Constructor Summary
TestDevice()
          Constructor.
TestDevice(java.lang.String hardwareID, java.lang.String description)
          Default constructor.
 
Method Summary
 void execute()
          Execute the device based on the desired state.
protected  void initializeHardwareDescription()
          Set the hardware description.
 void initializeStates()
          Initialize the list of states.
 
Methods inherited from class jhomenet.hw.device.Device
getCurrentState, getStates, setCurrentState, setDesiredState, toString
 
Methods inherited from class jhomenet.hw.HomenetHardware
equals, getConfiguration, getConfiguration, getDriverHardwareDescription, getDriverName, getErrorCount, getHardwareClassname, getHardwareDescription, getHardwareId, getSetupDescription, initializeHardware, 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

ON

public static final State ON
Device states.


OFF

public static final State OFF
Device states.

Constructor Detail

TestDevice

public TestDevice(java.lang.String hardwareID,
                  java.lang.String description)
Default constructor.

Parameters:
hardwareID -
description -

TestDevice

public TestDevice()
Constructor.

Method Detail

initializeStates

public void initializeStates()
Description copied from class: Device
Initialize the list of states.

Specified by:
initializeStates in class Device
See Also:
Device.initializeStates()

initializeHardwareDescription

protected void initializeHardwareDescription()
Description copied from class: HomenetHardware
Set the hardware description.

Specified by:
initializeHardwareDescription in class HomenetHardware
See Also:
HomenetHardware.initializeHardwareDescription()

execute

public void execute()
Description copied from class: Device
Execute the device based on the desired state.

Specified by:
execute in class Device
See Also:
Device.execute()


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