org.mbari.siam.core
Class NVTInstrumentPort

java.lang.Object
  extended by org.mbari.siam.core.BaseInstrumentPort
      extended by org.mbari.siam.core.SerialInstrumentPort
          extended by org.mbari.siam.core.NVTInstrumentPort
All Implemented Interfaces:
InstrumentPort

public class NVTInstrumentPort
extends SerialInstrumentPort
implements InstrumentPort

Implements power control and communications to an instrument via ethernet-to-serial terminal server using RFC 2217. May have a power port. Put into core package because it inherits from core.SerialInstrumentPort


Field Summary
protected static org.apache.log4j.Logger _log4j
          Log4j logger
protected  NVTSerialPort _nvtSerialPort
           
 
Fields inherited from class org.mbari.siam.core.SerialInstrumentPort
_fromInstrument, _instrumentPortSuspeneded, _serialOpen, _serialPort, _serialPortName, _toInstrument
 
Fields inherited from class org.mbari.siam.core.BaseInstrumentPort
_powerPort
 
Fields inherited from interface org.mbari.siam.core.InstrumentPort
RTS_SENSE
 
Constructor Summary
NVTInstrumentPort(NVTSerialPort serial, PowerPort power)
          create an NVTInstrumentPort.
 
Method Summary
 void initialize()
          initialize the InstrumentPort
 void setCommsMode(CommsMode commsMode)
          Set communications mode (RS422,RS485,RS232).
 
Methods inherited from class org.mbari.siam.core.SerialInstrumentPort
getCarrierDetectStatus, getClearToSendStatus, getCommPortName, getInputStream, getInstrumentConsole, getOutputStream, getSerialPort, getSerialPortParams, isCTS, resume, sendBreak, setRTS, setSerialPortParams, shutDown, suspend
 
Methods inherited from class org.mbari.siam.core.BaseInstrumentPort
connectPower, disableCommunications, disconnectPower, enableCommunications, getCurrentLevel, getCurrentLimit, getStatusMessage, getStatusSummaryMessage, getTemperature, getTerseStatus, getVoltageLevel, isolatePort, isSuspended, resetStatus, setCurrentLimit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mbari.siam.core.InstrumentPort
connectPower, disableCommunications, disconnectPower, enableCommunications, getCommPortName, getCurrentLevel, getCurrentLimit, getInputStream, getInstrumentConsole, getOutputStream, getStatusMessage, getStatusSummaryMessage, getTerseStatus, getVoltageLevel, isolatePort, isSuspended, resetStatus, resume, setCurrentLimit, shutDown, suspend
 

Field Detail

_log4j

protected static org.apache.log4j.Logger _log4j
Log4j logger


_nvtSerialPort

protected NVTSerialPort _nvtSerialPort
Constructor Detail

NVTInstrumentPort

public NVTInstrumentPort(NVTSerialPort serial,
                         PowerPort power)
create an NVTInstrumentPort.

Method Detail

initialize

public void initialize()
                throws InitializeException
initialize the InstrumentPort

Specified by:
initialize in interface InstrumentPort
Overrides:
initialize in class SerialInstrumentPort
Throws:
InitializeException

setCommsMode

public void setCommsMode(CommsMode commsMode)
Set communications mode (RS422,RS485,RS232). Not implemented for NVT device.

Specified by:
setCommsMode in interface InstrumentPort
Overrides:
setCommsMode in class SerialInstrumentPort


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.