server
Class X10Interface

java.lang.Object
  extended by server.X10Interface

public class X10Interface
extends java.lang.Object

This class handles all the communication between the X10 CM11A device and the serial port. Needs the Sun Com API and jpeterson X10 API.

Author:
Henrik Makitaavola

Constructor Summary
X10Interface(java.lang.String port)
          Constructor use to create a X10Interface.
 
Method Summary
 void off(java.lang.String address)
          Turn a device OFF.
 void on(java.lang.String address)
          Turn a device ON.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X10Interface

public X10Interface(java.lang.String port)
             throws java.io.IOException
Constructor use to create a X10Interface.

Parameters:
port - the serial port for the CM11A device
Throws:
java.io.IOException
Method Detail

on

public void on(java.lang.String address)
        throws java.io.IOException,
               java.lang.IllegalArgumentException
Turn a device ON.

Parameters:
address - the address for the device (A1,A2, ..., P15, P16)
Throws:
java.io.IOException
java.lang.IllegalArgumentException

off

public void off(java.lang.String address)
         throws java.io.IOException,
                java.lang.IllegalArgumentException
Turn a device OFF.

Parameters:
address - the address for the device (A1,A2, ..., P15, P16)
Throws:
java.io.IOException
java.lang.IllegalArgumentException