com.scottpreston.javarobot.chapter2
Class Controller

java.lang.Object
  extended by com.scottpreston.javarobot.chapter2.Controller
All Implemented Interfaces:
JController
Direct Known Subclasses:
CompassStamp, DistanceStamp, NavStamp, SimpleStamp, Ssc, SwitchStamp

public abstract class Controller
extends java.lang.Object
implements JController


Constructor Summary
Controller(JSerialPort sPort)
           
 
Method Summary
 void close()
           
 java.lang.String execute(byte[] cmd, int delay)
           
 byte[] execute2(byte[] cmd, int delay)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

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

execute

public java.lang.String execute(byte[] cmd,
                                int delay)
                         throws java.lang.Exception
Specified by:
execute in interface JController
Throws:
java.lang.Exception

execute2

public byte[] execute2(byte[] cmd,
                       int delay)
                throws java.lang.Exception
Specified by:
execute2 in interface JController
Throws:
java.lang.Exception

close

public void close()
Specified by:
close in interface JController