public class MyISYInsteonClientApp
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static char |
INSTEON_MASTER_MODE |
protected static char |
INSTEON_SLAVE_MODE |
Constructor and Description |
---|
MyISYInsteonClientApp() |
Modifier and Type | Method and Description |
---|---|
MyISYInsteonClient |
getISY() |
protected static char |
getMode(java.lang.String mode)
Returns the mode based on the input
|
protected UDNode |
getNode(java.lang.String address)
Returns a
UDGroup or a UDNode based on the
given address |
static void |
main(java.lang.String[] args) |
protected void |
processCommand(java.lang.String command)
Dispatches the commands to right methods
|
protected void |
processDelete(java.util.StringTokenizer tk)
Removes a node or a scene from ISY
|
protected static void |
processHelp()
This method shows the user the list of commands supported
by this example application
|
protected void |
processInsteonCommand(java.lang.String cmd,
java.util.StringTokenizer tk)
Processes an Insteon command
|
protected void |
processListNodes()
Lists out all the nodes as configured within ISY
|
protected void |
processListScenes()
Lists out all the scenes as configured within ISY
|
protected void |
processMove(java.util.StringTokenizer tk)
Moves a node (Insteon Device) to a scene
|
protected void |
processNewScene(java.util.StringTokenizer tk)
Creates a new scene
|
protected void |
processRemoveFromScene(java.util.StringTokenizer tk)
Removes a node (Insteon Device) from scene
|
protected void |
processRename(java.util.StringTokenizer tk)
Renames either a node or a scene
|
protected void |
processSceneControllerOnLevel(java.util.StringTokenizer tk)
Changes the on level for an Insteon Device linked to an Insteon Controller within
a scene
|
protected void |
processSceneControllerRampRate(java.util.StringTokenizer tk)
Changes the ramp rate for an Insteon Device linked to an Insteon Controller within
a scene
|
protected void |
processSceneOnLevel(java.util.StringTokenizer tk)
Changes the scene on level for an Insteon device within a scene
|
protected void |
processSceneRampRate(java.util.StringTokenizer tk)
Changes the ramp rate for an Insteon Device within a scene
|
protected void |
processStatus(java.util.StringTokenizer tk)
Returns the current value of an Insteon Device (its state)
|
protected void |
setLinkingMode(java.util.StringTokenizer tk)
Sets the linking mode as either master or slave
|
protected static void |
syntaxError()
Notifies the user of a syntax error
|
protected static char INSTEON_MASTER_MODE
protected static char INSTEON_SLAVE_MODE
public MyISYInsteonClient getISY()
protected static void processHelp()
protected void processCommand(java.lang.String command)
command
- - the command lineprotected static void syntaxError()
protected UDNode getNode(java.lang.String address)
UDGroup
or a UDNode
based on the
given addressaddress
- - the address of the node/scene to be retrievedprotected static char getMode(java.lang.String mode)
mode
- protected void processInsteonCommand(java.lang.String cmd, java.util.StringTokenizer tk)
cmd
- - the command to be processedtk
- - the StringTokenizerprotected void setLinkingMode(java.util.StringTokenizer tk)
tk
- - the StringTokenizerprotected void processRename(java.util.StringTokenizer tk)
tk
- - the StringTokenizerprotected void processDelete(java.util.StringTokenizer tk)
tk
- - the StringTokenizerprotected void processRemoveFromScene(java.util.StringTokenizer tk)
tk
- - the StringTokenzierprotected void processNewScene(java.util.StringTokenizer tk)
tk
- - the StringTokenzierprotected void processMove(java.util.StringTokenizer tk)
tk
- - the StringTokenizerprotected void processSceneOnLevel(java.util.StringTokenizer tk)
tk
- - the StringTokenzierprotected void processSceneRampRate(java.util.StringTokenizer tk)
tk
- - the StringTokenizerprotected void processSceneControllerOnLevel(java.util.StringTokenizer tk)
tk
- - the StringTokenizerprotected void processSceneControllerRampRate(java.util.StringTokenizer tk)
tk
- - the StringTokenizerprotected void processListNodes()
protected void processListScenes()
protected void processStatus(java.util.StringTokenizer tk)
tk
- - the StringTokenzierpublic static void main(java.lang.String[] args)
args
-