com.scottpreston.javarobot.chapter4
Class SwitchStamp

java.lang.Object
  extended by com.scottpreston.javarobot.chapter2.Controller
      extended by com.scottpreston.javarobot.chapter4.SwitchStamp
All Implemented Interfaces:
JController

public class SwitchStamp
extends Controller


Field Summary
static int CMD_INIT
           
static int CMD_MULTI
           
static int CMD_SINGLE
           
static int PROXIMITY_SENSOR
           
static int SINGLE_LINE_SENSOR1
           
static int SINGLR_LINE_SENSOR2
           
 
Constructor Summary
SwitchStamp(JSerialPort sPort)
           
 
Method Summary
 java.lang.String getMulti()
           
 boolean getMulti(int index)
           
 boolean getSingle()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.scottpreston.javarobot.chapter2.Controller
close, execute, execute2
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_INIT

public static final int CMD_INIT
See Also:
Constant Field Values

CMD_SINGLE

public static final int CMD_SINGLE
See Also:
Constant Field Values

CMD_MULTI

public static final int CMD_MULTI
See Also:
Constant Field Values

SINGLE_LINE_SENSOR1

public static final int SINGLE_LINE_SENSOR1
See Also:
Constant Field Values

SINGLR_LINE_SENSOR2

public static final int SINGLR_LINE_SENSOR2
See Also:
Constant Field Values

PROXIMITY_SENSOR

public static final int PROXIMITY_SENSOR
See Also:
Constant Field Values
Constructor Detail

SwitchStamp

public SwitchStamp(JSerialPort sPort)
            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getSingle

public boolean getSingle()
                  throws java.lang.Exception
Throws:
java.lang.Exception

getMulti

public java.lang.String getMulti()
                          throws java.lang.Exception
Throws:
java.lang.Exception

getMulti

public boolean getMulti(int index)
                 throws java.lang.Exception
Throws:
java.lang.Exception

main

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