jhomenet.responsive.response
Class DeviceResponse

java.lang.Object
  extended by jhomenet.responsive.response.AbstractResponse
      extended by jhomenet.responsive.response.DeviceResponse

public class DeviceResponse
extends AbstractResponse

Version:
$Revision: 1.14 $ Filename: $Id: DeviceResponse.java,v 1.14 2005/10/04 00:11:57 dhirwinjr Exp $ Description: A device response.
Author:
$Author: dhirwinjr $

Field Summary
 
Fields inherited from class jhomenet.responsive.response.AbstractResponse
hasExecuted, id
 
Constructor Summary
DeviceResponse()
          Default constructor.
 
Method Summary
 void execute()
          Execute the device.
 State getDesiredState()
          Get the desired state of the response.
 Device getDevice()
          Get the response's device object.
 void setDesiredState(State state)
          Set the desired state of the response.
 void setDevice(Device device)
          Set the response's device object.
 java.lang.String toString()
          Get a string representation of this response.
 
Methods inherited from class jhomenet.responsive.response.AbstractResponse
formatToString, getId, getResponseDescription, hasExecuted, setId, setResponseDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeviceResponse

public DeviceResponse()
Default constructor.

Method Detail

setDevice

public void setDevice(Device device)
Set the response's device object.

Parameters:
device -

getDevice

public Device getDevice()
Get the response's device object.

Returns:
A reference to the response's device

setDesiredState

public void setDesiredState(State state)
Set the desired state of the response.

Parameters:
state -

getDesiredState

public State getDesiredState()
Get the desired state of the response.

Returns:
Desired state of the response

execute

public void execute()
Execute the device. Be sure to set the device's desired state prior to calling this method.

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

toString

public java.lang.String toString()
Get a string representation of this response.

Specified by:
toString in class AbstractResponse
See Also:
Object.toString()


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