org.mbari.siam.core
Class SerialPortParameters

java.lang.Object
  extended by org.mbari.siam.core.SerialPortParameters

public class SerialPortParameters
extends java.lang.Object

SerialPortParameters specifies baud, number of data bits, parity, and number of stop bits.

Author:
Tom O'Reilly

Constructor Summary
SerialPortParameters(int baud, int dataBits, int parity, int stopBits)
          SerialPortParameter constructor.
 
Method Summary
 int getBaud()
          Return baud.
 int getDataBits()
          Return number of data bits; will be one of DATABITS_5, DATABITS_6, DATABITS_7, or DATABITS_8 as defined in gnu.io.SerialPort.
 int getParity()
           
 int getStopBits()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialPortParameters

public SerialPortParameters(int baud,
                            int dataBits,
                            int parity,
                            int stopBits)
                     throws gnu.io.UnsupportedCommOperationException
SerialPortParameter constructor.

Parameters:
baud - baud rate
dataBits - must be one of DATABITS_5, DATABITS_6, DATABITS_7, or DATABITS_8 as defined in gnu.io.SerialPort.
parity - must be one of PARITY_EVEN, PARITY_ODD, PARITY_NONE, PARITY_MARK, or PARITY_SPACE as defined in gnu.io.SerialPort.
stopBits - must be one of STOPBITS_1, STOPBITS_1_5, or STOPBITS_2 as defined in gnu.io.SerialPort.
Throws:
gnu.io.UnsupportedCommOperationException
Method Detail

getBaud

public int getBaud()
Return baud.


getDataBits

public int getDataBits()
Return number of data bits; will be one of DATABITS_5, DATABITS_6, DATABITS_7, or DATABITS_8 as defined in gnu.io.SerialPort.


getParity

public int getParity()

getStopBits

public int getStopBits()


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.