|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ubicollab.X10Proxy.X10Impl
public class X10Impl
The Class X10Impl
implements the methods neccessary to connect
to, disconnect and send on/off/dimming/brighten commands with an CM11A
serial RS232 X10 controller.
TODO: More x10 functions should be implemented here.
Constructor Summary | |
---|---|
X10Impl(java.lang.String port)
The Constructor. |
Method Summary | |
---|---|
void |
close()
Close the serial connection and release resources used. |
void |
dimDevice(char house,
int unit,
int cmnd,
int percentage)
This method sends dim or brighten events to the given X10 device. |
boolean |
isStarted()
Checks if start result is ok. |
void |
turnOffDevice(char house,
int unit)
Turn off device. |
void |
turnOnDevice(char house,
int unit)
Turn on a device. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public X10Impl(java.lang.String port)
port
- the portMethod Detail |
---|
public void dimDevice(char house, int unit, int cmnd, int percentage)
cmnd
- Either 0 for dim or 1 for brightenunit
- the unithouse
- the housepercentage
- percentage to change between 1 and 100.public void turnOnDevice(char house, int unit)
unit
- the unit to send comand tohouse
- the house to send command topublic void turnOffDevice(char house, int unit)
unit
- the unithouse
- the housepublic void close()
public boolean isStarted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |