com.scottpreston.javarobot.chapter3
Class MiniSscGM

java.lang.Object
  extended by com.scottpreston.javarobot.chapter2.Controller
      extended by com.scottpreston.javarobot.chapter3.Ssc
          extended by com.scottpreston.javarobot.chapter3.MiniSscGM
All Implemented Interfaces:
JController, GroupMoveProtocol, SSCProtocol

public class MiniSscGM
extends Ssc
implements SSCProtocol, GroupMoveProtocol


Field Summary
 
Fields inherited from interface com.scottpreston.javarobot.chapter3.SSCProtocol
MAX, MIN, NEUTRAL
 
Fields inherited from interface com.scottpreston.javarobot.chapter3.GroupMoveProtocol
CMD_TERM
 
Constructor Summary
MiniSscGM(JSerialPort jSerialPort)
           
 
Method Summary
 void cmd(int ch, int pos, int spd)
          This is the native constructor mode.
static void main(java.lang.String[] args)
           
 void move(int time)
           
 void sscCmd(int ch, int pos)
          This is the SSC Constructor Mode w/500 default speed
 
Methods inherited from class com.scottpreston.javarobot.chapter3.Ssc
getMaxPin, move, move, setMaxPin
 
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
 
Methods inherited from interface com.scottpreston.javarobot.chapter3.SSCProtocol
move
 

Constructor Detail

MiniSscGM

public MiniSscGM(JSerialPort jSerialPort)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

sscCmd

public void sscCmd(int ch,
                   int pos)
            throws java.lang.Exception
Description copied from interface: GroupMoveProtocol
This is the SSC Constructor Mode w/500 default speed

Specified by:
sscCmd in interface GroupMoveProtocol
Parameters:
ch - - channel 0-31
pos - - position 0-255
Throws:
java.lang.Exception

cmd

public void cmd(int ch,
                int pos,
                int spd)
         throws java.lang.Exception
Description copied from interface: GroupMoveProtocol
This is the native constructor mode.

Specified by:
cmd in interface GroupMoveProtocol
Parameters:
ch - - channel 0-31
pos - - position 0-255
spd - - speed in ms
Throws:
java.lang.Exception

move

public void move(int time)
          throws java.lang.Exception
Specified by:
move in interface GroupMoveProtocol
Parameters:
time - - length in milliseconds to move
Throws:
java.lang.Exception

main

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