sophware.home.lang
Class LampDevice

java.lang.Object
  extended by sophware.home.lang.StateObject
      extended by sophware.home.lang.BinaryObject
          extended by sophware.home.lang.HomeDevice
              extended by sophware.home.lang.LampDevice
All Implemented Interfaces:
java.io.Serializable, Named
Direct Known Subclasses:
DimableLampDevice

public class LampDevice
extends HomeDevice
implements java.io.Serializable

LampDevice represents home devices that are lights/lamps.

Version:
1.0, 03/19/07
Author:
Russell Soph
See Also:
Serialized Form

Field Summary
 
Fields inherited from class sophware.home.lang.BinaryObject
OFF, ON
 
Constructor Summary
LampDevice(DeviceAddress address)
          Creates a LampDevice with the given DeviceAddress
LampDevice(DeviceAddress address, java.lang.String name)
          Creates a LampDevice with the given DeviceAddress and name
 
Method Summary
 
Methods inherited from class sophware.home.lang.HomeDevice
equals, getAddress, getName, getProperties, sendHail, sendOff, sendOn, sendStatusRequest, setName, setProperties, toString, update
 
Methods inherited from class sophware.home.lang.BinaryObject
isOn, setOn, stateEquals
 
Methods inherited from class sophware.home.lang.StateObject
addStateChangeListener, fireStateChange, removeStateChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LampDevice

public LampDevice(DeviceAddress address)
Creates a LampDevice with the given DeviceAddress

Parameters:
address - the DeviceAddress of the lamp

LampDevice

public LampDevice(DeviceAddress address,
                  java.lang.String name)
Creates a LampDevice with the given DeviceAddress and name

Parameters:
address - the DeviceAddress of the lamp
name - of this device