Package depthReadout

Interface DepthSystem

All Known Implementing Classes:
MccDepthSystem

public interface DepthSystem
Hydrophone depth may be read out in a number of different ways and may arrive from a number of different sources. The main DepthProcess will manage common functinaility and common data, but the actual work will be done through this interface.
Author:
Douglas Gillespie
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
     
    static final double
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Say whether ot not a particular sensor can be configured.
    boolean
    configureSensor(Frame parentFrame)
    Configure one of the sensors.
    double
    getDepth(int iSensor)
    Get the depth (should be in meters)
    double
    getDepthRawData(int iSensor)
    Get the depth (should be in meters)
    boolean
    readSensor(int iSensor)
    Read all data from a sensor.
    boolean
    DepthProcess should ask this system for data every so often if this return false, then the data are comign from somewhere beyond the immediate contron of Pamgaurd and we just wait for it to arrive.
  • Field Details

  • Method Details

    • shouldPoll

      boolean shouldPoll()
      DepthProcess should ask this system for data every so often if this return false, then the data are comign from somewhere beyond the immediate contron of Pamgaurd and we just wait for it to arrive.
      Returns:
      true if the sensor needs to be polled.
    • getDepth

      double getDepth(int iSensor)
      Get the depth (should be in meters)
      Parameters:
      iSensor -
      Returns:
      depth in meters. or DEPTH_OUT_OF_RANGE or DEPTH_NO_DATA
    • readSensor

      boolean readSensor(int iSensor)
      Read all data from a sensor. These data should be stored locally in the concrete class and will then be retreived with other get... functions.
      Parameters:
      iSensor - number of the sensor
      Returns:
      true if the read went OK.
    • getDepthRawData

      double getDepthRawData(int iSensor)
      Get the depth (should be in meters)
      Parameters:
      iSensor -
      Returns:
      depth in meters. or DEPTH_OUT_OF_RANGE or DEPTH_NO_DATA
    • canConfigure

      boolean canConfigure()
      Say whether ot not a particular sensor can be configured.
      Returns:
      true if the sensor can be configured
    • configureSensor

      boolean configureSensor(Frame parentFrame)
      Configure one of the sensors.
      Parameters:
      parentFrame - owner frame for dialog
      Returns:
      true if configurations went Ok.