Class RainbowDatabseConverter

java.lang.Object
clickDetector.offlineFuncs.rcImport.RainbowDatabseConverter

public class RainbowDatabseConverter extends Object
Does the work of converting a RainbowClick databse.
Author:
Doug Gillespie
  • Constructor Details

    • RainbowDatabseConverter

      public RainbowDatabseConverter(ClickControl clickControl, String rainbowDatabaseName)
  • Method Details

    • openRainbowConnection

      public boolean openRainbowConnection()
    • checkRainbowTables

      public boolean checkRainbowTables()
    • closeConnection

      public void closeConnection()
    • getRcEventsTableDef

      public RainbowEventsTableDef getRcEventsTableDef()
      Returns:
      the rcEventsTableDef
    • getRcClicksTableDef

      public RainbowClicksTableDef getRcClicksTableDef()
      Returns:
      the rcClicksTableDef
    • checkPamguardTables

      public boolean checkPamguardTables()
    • importEvents

      public boolean importEvents()
      Read events from the rainbow click database and write them to the PAMguard database. Note that event indexes may change during this process, so will need to keep a lookup table of event numbers which can be used to correct event cross reference numbers when the clicks are read in

      Not attempting to do this in the most elegant way, since there isn't a lot of point since RC will not develop or change.

    • importClicks

      public boolean importClicks(RainbowFileMap rainbowFileMap)
    • setDbConvertProgress

      public void setDbConvertProgress(DBConvertProgress dbConvertProgress)
      Parameters:
      dbConvertProgress - the dbConvertProgress to set