com.scottpreston.javarobot.chapter3
Class Ssc

java.lang.Object
  extended by com.scottpreston.javarobot.chapter2.Controller
      extended by com.scottpreston.javarobot.chapter3.Ssc
All Implemented Interfaces:
JController, SSCProtocol
Direct Known Subclasses:
LM32, MiniSsc, MiniSscGM

public abstract class Ssc
extends Controller
implements SSCProtocol


Field Summary
 
Fields inherited from interface com.scottpreston.javarobot.chapter3.SSCProtocol
MAX, MIN, NEUTRAL
 
Constructor Summary
Ssc(JSerialPort serialPort)
           
 
Method Summary
 int getMaxPin()
           
 void move(int pin, int pos)
           
 void move(int pin1, int pos1, int pin2, int pos2)
           
 void setMaxPin(int maxPin)
           
 
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
 

Constructor Detail

Ssc

public Ssc(JSerialPort serialPort)
    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

move

public void move(int pin,
                 int pos)
          throws java.lang.Exception
Specified by:
move in interface SSCProtocol
Parameters:
pin - - connector on the MiniSSC 0-7
pos - - byte from 0-255
Throws:
java.lang.Exception

move

public void move(int pin1,
                 int pos1,
                 int pin2,
                 int pos2)
          throws java.lang.Exception
Throws:
java.lang.Exception

getMaxPin

public int getMaxPin()

setMaxPin

public void setMaxPin(int maxPin)