org.mbari.siam.operations.utils
Class PuckUtil

java.lang.Object
  extended by org.mbari.siam.operations.utils.PuckUtil
Direct Known Subclasses:
PuckRegister

public abstract class PuckUtil
extends java.lang.Object


Field Summary
protected  gnu.io.CommPortIdentifier _commPortId
           
protected static org.apache.log4j.Logger _log4j
           
static int _PUCK_DEFAULT_BAUD
           
protected  gnu.io.SerialPort _serialPort
           
 
Constructor Summary
PuckUtil()
           
 
Method Summary
protected  boolean initSerialPort(java.lang.String comPortName, int baud_rate)
           
protected  gnu.io.SerialPort openLocalSerialPort(java.lang.String comPortName)
           
protected  gnu.io.SerialPort openNVTSerialPort(java.lang.String comPortName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log4j

protected static org.apache.log4j.Logger _log4j

_PUCK_DEFAULT_BAUD

public static final int _PUCK_DEFAULT_BAUD
See Also:
Constant Field Values

_commPortId

protected gnu.io.CommPortIdentifier _commPortId

_serialPort

protected gnu.io.SerialPort _serialPort
Constructor Detail

PuckUtil

public PuckUtil()
Method Detail

openLocalSerialPort

protected gnu.io.SerialPort openLocalSerialPort(java.lang.String comPortName)
                                         throws gnu.io.NoSuchPortException,
                                                gnu.io.PortInUseException
Throws:
gnu.io.NoSuchPortException
gnu.io.PortInUseException

openNVTSerialPort

protected gnu.io.SerialPort openNVTSerialPort(java.lang.String comPortName)
                                       throws java.net.UnknownHostException,
                                              java.io.IOException
Throws:
java.net.UnknownHostException
java.io.IOException

initSerialPort

protected boolean initSerialPort(java.lang.String comPortName,
                                 int baud_rate)


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.