org.mbari.oasis
Class OMSSensor

java.lang.Object
  extended byorg.mbari.oasis.OMSSensor
All Implemented Interfaces:
java.io.Serializable

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

OMSSensor (Oasis Mooring Specprr = OMS)

Version:
06 Jul 1999
Author:
Brian Schlining
See Also:
Serialized Form

Constructor Summary
OMSSensor(java.lang.String s)
          Constructor creating an OMSSensor object from a line from a Calibration file
 
Method Summary
 int getBank()
           
 int getChannel()
           
 double[] getCoef()
           
 double[] getMinMax()
           
 java.lang.String getName()
           
 int getType()
           
 java.lang.String getUnits()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OMSSensor

public OMSSensor(java.lang.String s)
Constructor creating an OMSSensor object from a line from a Calibration file

Parameters:
s - String of calibration data read directly from the cal file
Method Detail

getBank

public int getBank()
Returns:
the bank number of the sensor

getChannel

public int getChannel()
Returns:
the channel number of the sensor

getType

public int getType()
Returns:
the calibration equation type: Type 0: not converted or reported Types 1 - 4: value = (volts - c) / b (a is unused) Type 5: value = a + (b * volts) + (c * volts^2) Type 6: value = a * (volts - c) / b Type 7: value = a * b * (volts - c)

getName

public java.lang.String getName()
Returns:
the name of the data collected by the sensor

getCoef

public double[] getCoef()
Returns:
the calibration coefficients

getMinMax

public double[] getMinMax()
Returns:
the min and max of the valid range Note: The use of this for processing is not currently implemented

getUnits

public java.lang.String getUnits()
Returns:
the data units