serialPort
Class TurnTable

java.lang.Object
  extended by serialPort.TurnTable

public class TurnTable
extends java.lang.Object

Copyright DocJava, inc. User: lyon

Date: May 7, 2005

Time: 6:47:35 AM


Constructor Summary
TurnTable()
           
 
Method Summary
static void moveStepperMotor(java.io.OutputStream os)
           
static void openAndClosePort(CommPortIdentifierInterface cpid)
           
static SerialPortInterface openSerialPort(CommPortIdentifierInterface portIdInterface)
           
static void processPort(CommPortIdentifierInterface portIdInterface)
           
static void sendMagicNumber(java.io.OutputStream os)
           
static void setUpSerialPort(SerialPortInterface sp)
           
static void sleepSec(int sec)
           
static void step(java.io.OutputStream os, int n)
           
static void testTurnTable()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurnTable

public TurnTable()
Method Detail

openAndClosePort

public static void openAndClosePort(CommPortIdentifierInterface cpid)
                             throws PortInUseException
Throws:
PortInUseException

testTurnTable

public static void testTurnTable()
                          throws PortInUseException,
                                 java.io.IOException,
                                 UnsupportedCommOperationException
Throws:
PortInUseException
java.io.IOException
UnsupportedCommOperationException

processPort

public static void processPort(CommPortIdentifierInterface portIdInterface)
                        throws PortInUseException,
                               java.io.IOException,
                               UnsupportedCommOperationException
Throws:
PortInUseException
java.io.IOException
UnsupportedCommOperationException

sendMagicNumber

public static void sendMagicNumber(java.io.OutputStream os)
                            throws java.io.IOException
Throws:
java.io.IOException

moveStepperMotor

public static void moveStepperMotor(java.io.OutputStream os)
                             throws java.io.IOException
Throws:
java.io.IOException

step

public static void step(java.io.OutputStream os,
                        int n)
                 throws java.io.IOException
Throws:
java.io.IOException

openSerialPort

public static SerialPortInterface openSerialPort(CommPortIdentifierInterface portIdInterface)
                                          throws PortInUseException
Throws:
PortInUseException

setUpSerialPort

public static void setUpSerialPort(SerialPortInterface sp)
                            throws UnsupportedCommOperationException
Throws:
UnsupportedCommOperationException

sleepSec

public static void sleepSec(int sec)