Modifier and Type | Field and Description |
---|---|
private static String |
className_ |
protected char |
INSTEON_MASTER_MODE |
protected char |
INSTEON_SLAVE_MODE |
private String[] |
insteonAddresses_ |
private String |
lastDevice_ |
private static IsyInsteonClient |
myISY |
private int |
numNodes_ |
private Thread |
startupThread_ |
private boolean |
stillRunning_ |
static String |
SYSTEM_FILE_SEPERATOR
A holder for this clients System File Separator.
|
static String |
SYSTEM_LINE_SEPERATOR
A holder for this clients System line termination separator.
|
Constructor and Description |
---|
ISY99CLI()
Constructor *
|
Modifier and Type | Method and Description |
---|---|
private int |
countMyNodes()
Counts all the NON-ContolLinc Nodes that the ISY is aware of.
|
private int |
countNodes()
Counts all the NON-ContolLinc Nodes that the ISY is aware of.
|
StringBuilder |
dumpElkInfo() |
static StringBuilder |
dumpElkInfo(ISYInsteonClient isyIClient) |
StringBuilder |
dumpIsyProductInfo() |
static StringBuilder |
dumpIsyProductInfo(ISYInsteonClient isyIClient) |
StringBuilder |
dumpVariablesInfo() |
static StringBuilder |
dumpVariablesInfo(ISYInsteonClient isyIClient) |
protected String |
getiMeterEnergy(UDNode node)
Returns the current value of an iMeters Energy Level (wattMins)
|
protected String |
getiMeterPower(UDNode node)
Returns the current value of an iMeters Power Level (Watts
|
protected char |
getMode(String mode)
Returns the mode based on the input
|
protected Enumeration<UDNode> |
getMyNodes()
Returns all NON-ControlLinc or Non-SwitchLinc
UDNode s that are associated in the client. |
protected UDNode |
getNode(String address)
Returns a
UDGroup or a UDNode based on the
given address |
protected String |
getNodeAddress(String nodeName)
Duh!
|
protected String |
getNodeName(String address)
Duh!
|
protected Enumeration<UDNode> |
getNodes()
Returns all
UDNode s that are associated in the client. |
protected String |
getStatus(UDNode node)
Returns the current value of an Insteon Device (its state)
|
protected void |
isyCleanup()
Cleans up any ISY cleanup procedures in prep for exit.
|
private void |
loadNodeAddresses()
Puts all the Node Address at this ISY into the insteonAddresses_ array so they can get assigned to buttons.
|
static void |
main(String[] arg)
The main program for the ISY99Buttons class.
|
void |
processCommand(String command)
Abstracts the actual sending of the ISY Command.
|
protected void |
processInsteonCommand(String cmd,
StringTokenizer tk)
Processes an Insteon command
|
protected void |
processStatus(StringTokenizer tk)
Returns the current value of Insteon Devicse (its state)
|
String |
restCommandString(String command,
UDNode node)
Strings together a rest service string (with the spaces encoded) for the givven node.
|
String |
restNodePropertyCommandString(String propName,
UDNode node)
Strings together a rest 'noded' service string (with the spaces encoded) for the given node.
|
String |
restNodesCommandString(UDNode node)
Strings together a rest 'noded' service string (with the spaces encoded) for the given node.
|
String |
restQueryCommandString(UDNode node)
Strings together a rest 'query' service string (with the spaces encoded) for the given node.
|
String |
restStatusCommandString(UDNode node)
Strings together a rest 'status' service string (with the spaces encoded) for the given node.
|
boolean |
startIsy() |
boolean |
stillRunning() |
protected void |
syntaxError()
Notifies the user of a syntax error
|
private static String className_
public static final String SYSTEM_FILE_SEPERATOR
public static final String SYSTEM_LINE_SEPERATOR
private static IsyInsteonClient myISY
private boolean stillRunning_
private String[] insteonAddresses_
private String lastDevice_
private int numNodes_
private Thread startupThread_
protected char INSTEON_MASTER_MODE
protected char INSTEON_SLAVE_MODE
public ISY99CLI()
public boolean stillRunning()
public boolean startIsy()
protected void isyCleanup()
protected void syntaxError()
public static void main(String[] arg)
arg
- The command line argumentspublic StringBuilder dumpVariablesInfo()
public static StringBuilder dumpVariablesInfo(ISYInsteonClient isyIClient)
public StringBuilder dumpElkInfo()
public static StringBuilder dumpElkInfo(ISYInsteonClient isyIClient)
public StringBuilder dumpIsyProductInfo()
public static StringBuilder dumpIsyProductInfo(ISYInsteonClient isyIClient)
protected Enumeration<UDNode> getNodes()
UDNode
s that are associated in the client.protected Enumeration<UDNode> getMyNodes()
UDNode
s that are associated in the client.private int countNodes()
private int countMyNodes()
private void loadNodeAddresses()
protected void processStatus(StringTokenizer tk)
tk
- - the StringTokenzierprotected String getiMeterEnergy(UDNode node)
node
- - the UDNode to queryprotected String getiMeterPower(UDNode node)
node
- - the UDNode to querypublic String restNodePropertyCommandString(String propName, UDNode node)
node
- the node to query for (null to query all)public String restNodesCommandString(UDNode node)
node
- the node to query for (null to query all)public String restStatusCommandString(UDNode node)
node
- the node to query for (null to query all)public String restQueryCommandString(UDNode node)
node
- the node to query for (null to query all)public String restCommandString(String command, UDNode node)
node
- the node to query for (null to query all)protected String getStatus(UDNode node)
node
- - the UDNode to queryprotected String getNodeName(String address)
the
- node's address to query.protected String getNodeAddress(String nodeName)
the
- node's address to query.protected UDNode getNode(String address)
UDGroup
or a UDNode
based on the
given addressaddress
- - the address of the node/scene to be retrievedprotected char getMode(String mode)
mode
- protected void processInsteonCommand(String cmd, StringTokenizer tk)
cmd
- - the command to be processedtk
- - the StringTokenizerpublic void processCommand(String command)
command
- This apps Command (not necessarily an Insteon Command (but could Be)WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses