Class HydrophoneOriginSystem

java.lang.Object
Array.streamerOrigin.HydrophoneOriginSystem
Direct Known Subclasses:
GPSOriginSystem, StaticOriginSystem

public abstract class HydrophoneOriginSystem extends Object
  • Constructor Details

    • HydrophoneOriginSystem

      public HydrophoneOriginSystem()
  • Method Details

    • getName

      public abstract String getName()
    • createMethod

      public abstract HydrophoneOriginMethod createMethod(PamArray pamArray, Streamer streamer)
    • getMethodClass

      public abstract Class getMethodClass()
    • createSQLLoggingFields

      public int createSQLLoggingFields(PamTableDefinition tableDefinition)
      Create any additional fields in the streamer logging table which may be needed. This is a bit inefficient since all origin methods are going to do this - but who cares since there are very few of them.

      Should check that columns of the same name do not already exist before adding them !

      Parameters:
      tableDefinition - table definition to add to.
      Returns:
      number of columns added.
    • fillSQLLoggingFields

      public boolean fillSQLLoggingFields(StreamerDataUnit streamerDataUnit)
      Fill table time data prior to writing to the database.
      Parameters:
      streamerDataUnit - streamer data unit to take data from.

      Should check that this system is actually in use before proceeding !

      Returns:
      true if successful.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • extractSQLLoggingFields

      public boolean extractSQLLoggingFields(StreamerDataUnit sdu)
      Extract data from SQL logging fields and add them back into the streamer data
      Parameters:
      sdu - streamer data unit
      Returns:
      true if successful