org.mbari.oasis
Class OMSConfigReader

java.lang.Object
  extended byorg.mbari.oasis.OMSConfigReader

public class OMSConfigReader
extends java.lang.Object


Field Summary
protected  OMSSensor[] sensor
           
protected  OMSSensor[] validSensor
           
 
Constructor Summary
OMSConfigReader(java.io.File file)
          OMSConfigReader Reads in the Calibration file tree used for specprr instruments.It defaults to the most current Configuration of the mooring
OMSConfigReader(java.io.File file, double d)
          OMSConfigReader Reads in the Calibration file tree used for specprr instruments
OMSConfigReader(java.lang.String filename)
          OMSConfigReader Reads in the Calibration file tree used for specprr instruments.
OMSConfigReader(java.lang.String filename, double d)
          OMSConfigReader Reads in the Calibration file tree used for specprr instruments
 
Method Summary
 int countBanks()
           
 int countChannels()
           
 int getChannelsInBank(int i)
           
 OMSSensor[] getCompleteConfiguration()
          Returns the complete configuration as listed in the config files.
 OMSSensor getCompleteConfiguration(int i)
           
 OMSSensor[] getConfiguration()
          Get the configuration information out of the files.
 OMSSensor getConfiguration(int i)
          Return the configuration parameters from a single sensor
 java.lang.String getFilename()
           
 int getNumberOfBanks()
          Deprecated. Use countBanks
 int getNumberOfChannels()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validSensor

protected OMSSensor[] validSensor

sensor

protected OMSSensor[] sensor
Constructor Detail

OMSConfigReader

public OMSConfigReader(java.lang.String filename)
OMSConfigReader Reads in the Calibration file tree used for specprr instruments. It defaults to the most current Configuration of the mooring

Parameters:
filename - String of the main configuration file

OMSConfigReader

public OMSConfigReader(java.io.File file)
OMSConfigReader Reads in the Calibration file tree used for specprr instruments.It defaults to the most current Configuration of the mooring

Parameters:
file - File object representing the main configuration file

OMSConfigReader

public OMSConfigReader(java.lang.String filename,
                       double d)
OMSConfigReader Reads in the Calibration file tree used for specprr instruments

Parameters:
filename - String of the main configuration file
d - The date of the configuration to use

OMSConfigReader

public OMSConfigReader(java.io.File file,
                       double d)
OMSConfigReader Reads in the Calibration file tree used for specprr instruments

Parameters:
file - File object representing the main configuration file
d - The date of the configuration to use
Method Detail

main

public static void main(java.lang.String[] args)

getConfiguration

public OMSSensor[] getConfiguration()
Get the configuration information out of the files. Note that since the names read in here are not nescessarly unique they will have to be assigned unigue names before they can be applied to netCDF schema This method returns the configuration based on the number of channels and the return type specified in the config files

Returns:
sensor An array of OasisSensor objects

getConfiguration

public OMSSensor getConfiguration(int i)
Return the configuration parameters from a single sensor

Returns:
configuration from sensor number i

getNumberOfBanks

public int getNumberOfBanks()
Deprecated. Use countBanks

Returns:
The number of specprr instrument banks. For example: m1 has five banks

countBanks

public int countBanks()
Returns:
The number of specprr instrument banks. For example: m1 has five banks

getChannelsInBank

public int getChannelsInBank(int i)
Returns:
The number of channels in the specified bank

getNumberOfChannels

public int getNumberOfChannels()
Returns:
The total number of channels that are used by the mooring

countChannels

public int countChannels()
Returns:
The total number of channels that are used by the mooring

getCompleteConfiguration

public OMSSensor[] getCompleteConfiguration()
Returns the complete configuration as listed in the config files. Note that this is NOT what is used in processing. Rather it is away to view the complete record in the config file.


getCompleteConfiguration

public OMSSensor getCompleteConfiguration(int i)

getFilename

public java.lang.String getFilename()