org.mbari.siam.moos.distributed.dpa
Class DpaPortStatus

java.lang.Object
  extended by org.mbari.siam.moos.distributed.dpa.DpaPortStatus
All Implemented Interfaces:
java.io.Serializable

public class DpaPortStatus
extends java.lang.Object
implements java.io.Serializable

Describes the status (temperature, current, voltage, etc) of a DPA port.

See Also:
Serialized Form

Constructor Summary
DpaPortStatus(int portNumber, SidearmPowerPort powerPort, boolean hasPuck)
          Constructor.
DpaPortStatus(int portNumber, SidearmPowerPort powerPort, byte[] serviceMnemonic, long serviceID, boolean hasPuck)
          Constructor.
 
Method Summary
 int getControlReg()
          Returns value of control register.
 float getCurrentLimitMA()
          Returns current limit in milliAmps.
 float getCurrentMA()
          Returns current in milliAmps.
 int getInterruptReg()
          Returns value of interrupt register.
 int getPortNumber()
          Return port number.
 int getRelayReg()
          Returns value of relay register.
 long getServiceID()
          Return ISI ID of service (if any) associated with this port.
 java.lang.String getServiceMnemonic()
          Return mnemonic of service (if any) associated with this port.
 float getTemperature()
          Returns temperature in degrees Centigrade.
 float getVoltage()
          Returns voltage.
 boolean hasPuck()
          Indicate if port has associated PUCK.
 boolean instrumentPowerOn()
          Return true if instrument is powered.
 boolean overcurrentTripped()
           
static boolean overCurrentTripped(int interruptRegister, boolean isLeftChannel)
          Return true if channel overcurrent is tripped.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DpaPortStatus

public DpaPortStatus(int portNumber,
                     SidearmPowerPort powerPort,
                     byte[] serviceMnemonic,
                     long serviceID,
                     boolean hasPuck)
Constructor.

Parameters:
portNumber -
powerPort - Associated SidearmPowerPort
serviceMnemonic - Mnemonic of service (if any) associated with port
serviceID - Unique ID of service (if any) associated with port
hasPuck -

DpaPortStatus

public DpaPortStatus(int portNumber,
                     SidearmPowerPort powerPort,
                     boolean hasPuck)
Constructor.

Parameters:
powerPort - Associated SidearmPowerPort
Method Detail

getPortNumber

public int getPortNumber()
Return port number.


instrumentPowerOn

public boolean instrumentPowerOn()
Return true if instrument is powered.


overcurrentTripped

public boolean overcurrentTripped()

getVoltage

public float getVoltage()
Returns voltage.


getCurrentMA

public float getCurrentMA()
Returns current in milliAmps.


getTemperature

public float getTemperature()
Returns temperature in degrees Centigrade.


getCurrentLimitMA

public float getCurrentLimitMA()
Returns current limit in milliAmps.


getRelayReg

public int getRelayReg()
Returns value of relay register.


getControlReg

public int getControlReg()
Returns value of control register.


getInterruptReg

public int getInterruptReg()
Returns value of interrupt register.


getServiceID

public long getServiceID()
Return ISI ID of service (if any) associated with this port. If no service, return -1.


getServiceMnemonic

public java.lang.String getServiceMnemonic()
Return mnemonic of service (if any) associated with this port. If no service, return null.


hasPuck

public boolean hasPuck()
Indicate if port has associated PUCK.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

overCurrentTripped

public static boolean overCurrentTripped(int interruptRegister,
                                         boolean isLeftChannel)
Return true if channel overcurrent is tripped.



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.