|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ubicollab.X10Proxy.X10ProxyImpl
public class X10ProxyImpl
The Class X10ProxyImpl
implements the methods neccessary for
a minimal x10 implementation.
Constructor Summary | |
---|---|
X10ProxyImpl()
This is an empty constructor. |
Method Summary | |
---|---|
void |
dimDevice(java.lang.String house,
int unit,
int cmnd,
int percentage)
Send a brighten or dim command to the X10 device identified by house and unit . |
void |
sendCommand(java.lang.String house,
int unit,
boolean turnOn)
Send a on/off command to an X10 device identified by house
and unit . |
boolean |
startSerialConnection(java.lang.String comPort)
Start serial connection to a CM11A X10 control device on the given COM port. |
void |
stopSerialConnection()
Stop the ongiong serial connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public X10ProxyImpl()
Method Detail |
---|
public void sendCommand(java.lang.String house, int unit, boolean turnOn)
house
and unit
.
sendCommand
in interface X10Proxy
house
- the house address (A-P)unit
- the unit address (1-16)turnOn
- the turn onX10Proxy.sendCommand(java.lang.String, int, boolean)
public boolean startSerialConnection(java.lang.String comPort)
startSerialConnection
in interface X10Proxy
comPort
- the com port to use (e.g. COM2)
X10Proxy.startSerialConnection(java.lang.String)
public void stopSerialConnection()
stopSerialConnection
in interface X10Proxy
X10Proxy.stopSerialConnection()
public void dimDevice(java.lang.String house, int unit, int cmnd, int percentage)
house
and unit
.
dimDevice
in interface X10Proxy
house
- the house address (A-P)unit
- the unit address (1-16)cmnd
- Either 0 for dim or 1 for brightenpercentage
- the level to change between 1 and 100 (persentage).X10Proxy.dimDevice(java.lang.String, int, int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |