|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.hc.WebDemo
Title: Time Commander Plus Web Demo
Description: Class for remote host to simulate talking to Time Commander since the controller is not attached to
the co-host server.
Copyright: Copyright (c) 2005
Company: RMRR
@author David Abigt
@version 1.0
Field Summary | |
static int |
CMD_BRIGHT
|
static int |
CMD_DIM
|
static int |
CMD_LIGHTS_OFF
|
static int |
CMD_LIGHTS_ON
|
static int |
CMD_MOTION_DET
|
static int |
CMD_OFF
|
static int |
CMD_ON
|
static int |
CMD_UNITS_OFF
|
static int |
CMD_WAIT
millisecs to wait between sending commands |
static char |
HC_OFFSET
|
static int |
VAL_OFF
|
static int |
VAL_ON
|
static int[] |
XCODES
House code (stored at index = code - HC_OFFSET) and unit code as in C=3=0x04 |
Fields inherited from interface dea.common.IDebugLevels |
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS |
Fields inherited from interface dea.hc.Icontroller |
DEV_ANY, DEV_LIGHT |
Constructor Summary | |
WebDemo()
|
Method Summary | |
java.lang.String |
getInfo(java.lang.String cmd,
java.lang.String endKey)
Send command to controller and read reply. |
boolean |
isLive()
Returns true if the class can send commands and read directly from a controller. |
static void |
main(java.lang.String[] args)
Just for testing |
java.lang.String |
readStatus()
get controller status format is: Ver 2.28 Sched Name: JUSTRAIN Schedule status: running 02/12/05 22:42:45 Sunrise: 8:35 Sunset: 19:30 Lat: 33, Lon: 117, DST: 0 Mem Use = 7% Refresh value: 15 Security seed: 15 Answer on Ring: 0 IO Status 1111111 12345678 90123456 -------- -------- Opto 00100110 00000000 Relay 00000000 Analog 1 2 3 4 5 6 7 8 030 076 081 079 073 073 039 067 ##0 todo: replace with data from DB |
java.lang.String |
readTime()
read controller clock |
void |
sendCmd(java.lang.String cmd)
Send a command but don't read reply |
void |
sendX10(char hc,
int unit,
int val)
Send X10 command to controller. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int[] XCODES
public static final int CMD_WAIT
public static final char HC_OFFSET
public static final int VAL_ON
public static final int VAL_OFF
public static final int CMD_ON
public static final int CMD_OFF
public static final int CMD_DIM
public static final int CMD_BRIGHT
public static final int CMD_LIGHTS_ON
public static final int CMD_LIGHTS_OFF
public static final int CMD_UNITS_OFF
public static final int CMD_MOTION_DET
Constructor Detail |
public WebDemo()
Method Detail |
public boolean isLive()
Icontroller
isLive
in interface Icontroller
public java.lang.String readTime()
readTime
in interface Icontroller
public java.lang.String readStatus()
readStatus
in interface Icontroller
public java.lang.String getInfo(java.lang.String cmd, java.lang.String endKey)
getInfo
in interface Icontroller
cmd
-
public void sendX10(char hc, int unit, int val)
sendX10
in interface Icontroller
hc
- unit
- val
- public void sendCmd(java.lang.String cmd)
sendCmd
in interface Icontroller
cmd
- public static void main(java.lang.String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |