com.scottpreston.javarobot.chapter4
Class SwitchStamp
java.lang.Object
com.scottpreston.javarobot.chapter2.Controller
com.scottpreston.javarobot.chapter4.SwitchStamp
- All Implemented Interfaces:
- JController
public class SwitchStamp
- extends Controller
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SwitchStamp
public SwitchStamp(JSerialPort sPort)
throws java.lang.Exception
- Throws:
java.lang.Exception
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)