org.mbari.siam.foce.deployed
Class FOCEPowerPort

java.lang.Object
  extended by org.mbari.siam.foce.deployed.FOCEPowerPort
All Implemented Interfaces:
PowerPort

public class FOCEPowerPort
extends java.lang.Object
implements PowerPort


Field Summary
protected  java.lang.String _name
           
protected  int _numBits
           
protected  int _powerBit
           
protected  boolean _powerOn
           
protected  FOCERelayBoard _relayBoard
           
 
Constructor Summary
FOCEPowerPort(java.lang.String name, FOCERelayBoard board, int powerBit, int numBits)
           
 
Method Summary
 void connectPower()
          Connect instrument to power.
 void disableCommunications()
          Disable communications
 void disconnectPower()
          Disconnect instrument from power.
 void enableCommunications()
          Enable communications
 boolean equals(int boardIndex, int powerBit)
          True if this FOCEPowerPort represents the given relay board index and power bit
 float getCurrentLevel()
          Get the current level of the DpaChannel in amps.
 int getCurrentLimit()
          Get current limit on port.
 java.lang.String getName()
          Return name.
 java.lang.String getStatusMessage()
          Get status message.
 java.lang.String getStatusSummaryMessage()
          Get status summary message.
 float getTemperature()
          Get temperature.
 java.lang.String getTerseStatus()
          Get a terse status message
 float getVoltageLevel()
          Get the voltage level in volts.
 void initialize()
          Initialize the port.
 void isolatePort()
          Isolate comms and power from port.
 void resetStatus()
          Reset status.
 void setCommsMode(CommsMode commsMode)
          Set communications mode (RS422,RS485,RS232) satisfies InstrumentPort interface
 void setCurrentLimit(int currentLimit)
          Set current limit on port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

protected java.lang.String _name

_relayBoard

protected FOCERelayBoard _relayBoard

_powerBit

protected int _powerBit

_numBits

protected int _numBits

_powerOn

protected boolean _powerOn
Constructor Detail

FOCEPowerPort

public FOCEPowerPort(java.lang.String name,
                     FOCERelayBoard board,
                     int powerBit,
                     int numBits)
              throws NotSupportedException,
                     java.io.IOException
Throws:
NotSupportedException
java.io.IOException
Method Detail

getName

public java.lang.String getName()
Return name.

Specified by:
getName in interface PowerPort

initialize

public void initialize()
Initialize the port.

Specified by:
initialize in interface PowerPort

connectPower

public void connectPower()
Connect instrument to power.

Specified by:
connectPower in interface PowerPort

disconnectPower

public void disconnectPower()
Disconnect instrument from power.

Specified by:
disconnectPower in interface PowerPort

getCurrentLimit

public int getCurrentLimit()
                    throws NotSupportedException
Get current limit on port.

Specified by:
getCurrentLimit in interface PowerPort
Throws:
NotSupportedException

getVoltageLevel

public float getVoltageLevel()
Get the voltage level in volts.

Specified by:
getVoltageLevel in interface PowerPort

getCurrentLevel

public float getCurrentLevel()
                      throws NotSupportedException
Get the current level of the DpaChannel in amps.

Specified by:
getCurrentLevel in interface PowerPort
Throws:
NotSupportedException

setCurrentLimit

public void setCurrentLimit(int currentLimit)
                     throws NotSupportedException
Set current limit on port.

Specified by:
setCurrentLimit in interface PowerPort
Throws:
NotSupportedException

enableCommunications

public void enableCommunications()
Enable communications

Specified by:
enableCommunications in interface PowerPort

disableCommunications

public void disableCommunications()
Disable communications

Specified by:
disableCommunications in interface PowerPort

isolatePort

public void isolatePort()
Isolate comms and power from port.

Specified by:
isolatePort in interface PowerPort

getTemperature

public float getTemperature()
                     throws NotSupportedException
Description copied from interface: PowerPort
Get temperature.

Specified by:
getTemperature in interface PowerPort
Throws:
NotSupportedException

getStatusMessage

public java.lang.String getStatusMessage()
Get status message.

Specified by:
getStatusMessage in interface PowerPort

getStatusSummaryMessage

public java.lang.String getStatusSummaryMessage()
Get status summary message.

Specified by:
getStatusSummaryMessage in interface PowerPort

getTerseStatus

public java.lang.String getTerseStatus()
Get a terse status message

Specified by:
getTerseStatus in interface PowerPort

resetStatus

public void resetStatus()
Reset status.

Specified by:
resetStatus in interface PowerPort

setCommsMode

public void setCommsMode(CommsMode commsMode)
Set communications mode (RS422,RS485,RS232) satisfies InstrumentPort interface

Specified by:
setCommsMode in interface PowerPort

equals

public boolean equals(int boardIndex,
                      int powerBit)
True if this FOCEPowerPort represents the given relay board index and power bit



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.