jhomenet.hw.driver.X10
Class X10Container

java.lang.Object
  extended by jhomenet.hw.driver.X10.X10Container
Direct Known Subclasses:
SwitchContainer

public abstract class X10Container
extends java.lang.Object


Nested Class Summary
static class X10Container.ContainerType
          Define the different type of X10 containers.
 
Field Summary
protected  int deviceCode
          The hardware's device code.
protected  char houseCode
          The hardware's house code.
 
Constructor Summary
X10Container(char houseCode, int deviceCode)
          Default constructor.
X10Container(java.lang.String hardwareID)
          Overriden constructor.
 
Method Summary
 java.lang.String getAddress()
          Return the hardware address of the X10 switch.
abstract  java.lang.String getContainerType()
           
static X10Container.ContainerType toType(java.lang.String type)
           
protected  void transmit(Transmitter transmitter, X10Event[] events)
          Transmit the events to the X-10 network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

houseCode

protected char houseCode
The hardware's house code.


deviceCode

protected int deviceCode
The hardware's device code.

Constructor Detail

X10Container

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

Parameters:
houseCode - The hardware's house code.
deviceCode - The hardware's device code.

X10Container

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

Parameters:
hardwareID -
Method Detail

getAddress

public java.lang.String getAddress()
Return the hardware address of the X10 switch.

Returns:

transmit

protected void transmit(Transmitter transmitter,
                        X10Event[] events)
Transmit the events to the X-10 network.

Parameters:
transmitter -
events -

toType

public static X10Container.ContainerType toType(java.lang.String type)

getContainerType

public abstract java.lang.String getContainerType()


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