|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.hc.HcManager
Title: Home Controller Manager class
Description: A collection of methods for the home controler app.
Copyright: Copyright (c) 2004
Company: RMRR
@author David Abigt
@version 1.0
Field Summary | |
static java.lang.String |
ANALOG_IN
|
static int |
CMD_DIA
|
static int |
CMD_DIB
|
static int |
CMD_FLAG
|
static int |
CMD_IR
|
static int |
CMD_RO
|
static int |
CMD_TIMER
|
static int |
CMD_VAR
|
static int |
CMD_X10
|
static java.lang.String |
IR_OUT
There are 254 of these but we do not currently support it since it requires an external device I do not have. |
static java.lang.String |
RELAY_IN
|
static java.lang.String |
RELAY_OUT
|
static java.lang.String |
VERSION
|
static int |
X_MAX
|
static int |
X_MIN
|
static java.lang.String[] |
XCODES
|
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 |
Constructor Summary | |
HcManager()
|
Method Summary | |
static Hc_devices |
getDev(java.lang.String code,
int unit,
Db db)
Get a Hc_devices record from the local cache. |
static java.util.HashMap |
getDevs(Db db)
Get a HashMap keyed by house code (String) of HasMaps keyed by unit number (Integer) of all the Hc_devices records cached from the DB. |
static Hc_echo |
getLast(int devType,
Db db)
Get the most recent Hc_echo record of a type. |
static java.util.ArrayList |
getNamedVars(Db db)
|
static Hc_vars |
getVar(java.lang.String code,
int unit,
Db db)
Get var that is associated with a device. |
static int |
hexToInt(char c)
Convert hex char to int. |
static int |
hexToInt(char ca,
char cb)
Convert 2 hex chars to int. |
static void |
main(java.lang.String[] args)
Populates the Hc_devices table with initial values. |
static void |
populateDevs()
Deprecated. will be moved to a more logical class once structure is firmed up. |
void |
test()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String VERSION
public static final java.lang.String[] XCODES
public static final java.lang.String ANALOG_IN
public static final java.lang.String RELAY_IN
public static final java.lang.String RELAY_OUT
public static final java.lang.String IR_OUT
public static final int X_MIN
public static final int X_MAX
public static final int CMD_X10
public static final int CMD_TIMER
public static final int CMD_FLAG
public static final int CMD_VAR
public static final int CMD_RO
public static final int CMD_IR
public static final int CMD_DIA
public static final int CMD_DIB
Constructor Detail |
public HcManager()
Method Detail |
public static int hexToInt(char c)
c
-
public static int hexToInt(char ca, char cb)
ca
- cb
-
public static void populateDevs() throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public static java.util.HashMap getDevs(Db db) throws java.sql.SQLException
db
-
java.sql.SQLException
public static Hc_devices getDev(java.lang.String code, int unit, Db db)
code
- unit
- db
-
public static Hc_vars getVar(java.lang.String code, int unit, Db db)
code
- unit
-
public static java.util.ArrayList getNamedVars(Db db)
db
-
public static Hc_echo getLast(int devType, Db db)
devType
- db
-
public static void main(java.lang.String[] args)
args
- public void test()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |