|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectModel
jhomenet.hw.HomenetHardware
jhomenet.hw.device.Device
jhomenet.hw.test.TestDevice
public class TestDevice
| 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 |
|---|
public static final State ON
public static final State OFF
| Constructor Detail |
|---|
public TestDevice(java.lang.String hardwareID,
java.lang.String description)
hardwareID - description - public TestDevice()
| Method Detail |
|---|
public void initializeStates()
Device
initializeStates in class DeviceDevice.initializeStates()protected void initializeHardwareDescription()
HomenetHardware
initializeHardwareDescription in class HomenetHardwareHomenetHardware.initializeHardwareDescription()public void execute()
Device
execute in class DeviceDevice.execute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||