|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectserver.X10Interface
public class X10Interface
This class handles all the communication between the X10 CM11A device and the serial port. Needs the Sun Com API and jpeterson X10 API.
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 |
---|
public X10Interface(java.lang.String port) throws java.io.IOException
port
- the serial port for the CM11A device
java.io.IOException
Method Detail |
---|
public void on(java.lang.String address) throws java.io.IOException, java.lang.IllegalArgumentException
address
- the address for the device (A1,A2, ..., P15, P16)
java.io.IOException
java.lang.IllegalArgumentException
public void off(java.lang.String address) throws java.io.IOException, java.lang.IllegalArgumentException
address
- the address for the device (A1,A2, ..., P15, P16)
java.io.IOException
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |