jhomenet.hw.driver.X10
Class SwitchContainer

java.lang.Object
  extended by jhomenet.hw.driver.X10.X10Container
      extended by jhomenet.hw.driver.X10.SwitchContainer

public class SwitchContainer
extends X10Container


Nested Class Summary
 
Nested classes/interfaces inherited from class jhomenet.hw.driver.X10.X10Container
X10Container.ContainerType
 
Field Summary
 
Fields inherited from class jhomenet.hw.driver.X10.X10Container
deviceCode, houseCode
 
Constructor Summary
SwitchContainer(char houseCode, int deviceCode)
          Default constructor.
SwitchContainer(java.lang.String hardwareID)
          Overriden constructor.
 
Method Summary
 java.lang.String getContainerType()
           
 void switchOff(Transmitter transmitter)
          Turn the switch off.
 void switchOn(Transmitter transmitter)
          Turn the switch on.
 
Methods inherited from class jhomenet.hw.driver.X10.X10Container
getAddress, toType, transmit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchContainer

public SwitchContainer(char houseCode,
                       int deviceCode)
Default constructor.

Parameters:
houseCode -
deviceCode -

SwitchContainer

public SwitchContainer(java.lang.String hardwareID)
Overriden constructor.

Parameters:
hardwareID -
Method Detail

switchOn

public void switchOn(Transmitter transmitter)
Turn the switch on.

Parameters:
transmitter -

switchOff

public void switchOff(Transmitter transmitter)
Turn the switch off.

Parameters:
transmitter -

getContainerType

public java.lang.String getContainerType()
Specified by:
getContainerType in class X10Container
See Also:
X10Container.getContainerType()


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