example
Class MyISYInsteonClientApp

java.lang.Object
  extended by example.MyISYInsteonClientApp

public class MyISYInsteonClientApp
extends java.lang.Object

This class is simple ISY Insteon Client which enables you to do everything (except trigger) that can be done from the applet through command prompt.

Author:
UD Architect

Field Summary
protected static char INSTEON_MASTER_MODE
           
protected static char INSTEON_SLAVE_MODE
           
 
Constructor Summary
MyISYInsteonClientApp()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTEON_MASTER_MODE

protected static char INSTEON_MASTER_MODE

INSTEON_SLAVE_MODE

protected static char INSTEON_SLAVE_MODE
Constructor Detail

MyISYInsteonClientApp

public MyISYInsteonClientApp()
Method Detail

getISY

public MyISYInsteonClient getISY()

processHelp

protected static void processHelp()
This method shows the user the list of commands supported by this example application


processCommand

protected void processCommand(java.lang.String command)
Dispatches the commands to right methods

Parameters:
command - - the command line

syntaxError

protected static void syntaxError()
Notifies the user of a syntax error


getNode

protected UDNode getNode(java.lang.String address)
Returns a UDGroup or a UDNode based on the given address

Parameters:
address - - the address of the node/scene to be retrieved
Returns:
the UDNode if found, null otherwise

getMode

protected static char getMode(java.lang.String mode)
Returns the mode based on the input

Parameters:
mode -
Returns:
- the mode (INSTEON_MASTER_MODE, INSTEON_SLAVE_MODE)

processInsteonCommand

protected void processInsteonCommand(java.lang.String cmd,
                                     java.util.StringTokenizer tk)
Processes an Insteon command

Parameters:
cmd - - the command to be processed
tk - - the StringTokenizer

setLinkingMode

protected void setLinkingMode(java.util.StringTokenizer tk)
Sets the linking mode as either master or slave

Parameters:
tk - - the StringTokenizer

processRename

protected void processRename(java.util.StringTokenizer tk)
Renames either a node or a scene

Parameters:
tk - - the StringTokenizer

processDelete

protected void processDelete(java.util.StringTokenizer tk)
Removes a node or a scene from ISY

Parameters:
tk - - the StringTokenizer

processRemoveFromScene

protected void processRemoveFromScene(java.util.StringTokenizer tk)
Removes a node (Insteon Device) from scene

Parameters:
tk - - the StringTokenzier

processNewScene

protected void processNewScene(java.util.StringTokenizer tk)
Creates a new scene

Parameters:
tk - - the StringTokenzier

processMove

protected void processMove(java.util.StringTokenizer tk)
Moves a node (Insteon Device) to a scene

Parameters:
tk - - the StringTokenizer

processSceneOnLevel

protected void processSceneOnLevel(java.util.StringTokenizer tk)
Changes the scene on level for an Insteon device within a scene

Parameters:
tk - - the StringTokenzier

processSceneRampRate

protected void processSceneRampRate(java.util.StringTokenizer tk)
Changes the ramp rate for an Insteon Device within a scene

Parameters:
tk - - the StringTokenizer

processSceneControllerOnLevel

protected void processSceneControllerOnLevel(java.util.StringTokenizer tk)
Changes the on level for an Insteon Device linked to an Insteon Controller within a scene

Parameters:
tk - - the StringTokenizer

processSceneControllerRampRate

protected void processSceneControllerRampRate(java.util.StringTokenizer tk)
Changes the ramp rate for an Insteon Device linked to an Insteon Controller within a scene

Parameters:
tk - - the StringTokenizer

processListNodes

protected void processListNodes()
Lists out all the nodes as configured within ISY


processListScenes

protected void processListScenes()
Lists out all the scenes as configured within ISY


processStatus

protected void processStatus(java.util.StringTokenizer tk)
Returns the current value of an Insteon Device (its state)

Parameters:
tk - - the StringTokenzier

main

public static void main(java.lang.String[] args)
Parameters:
args -