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 Link icon

    • RainbowDatabseConverter Link icon

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

    • openRainbowConnection Link icon

      public boolean openRainbowConnection()
    • checkRainbowTables Link icon

      public boolean checkRainbowTables()
    • closeConnection Link icon

      public void closeConnection()
    • getRcEventsTableDef Link icon

      public RainbowEventsTableDef getRcEventsTableDef()
      Returns:
      the rcEventsTableDef
    • getRcClicksTableDef Link icon

      public RainbowClicksTableDef getRcClicksTableDef()
      Returns:
      the rcClicksTableDef
    • checkPamguardTables Link icon

      public boolean checkPamguardTables()
    • importEvents Link icon

      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 Link icon

      public boolean importClicks(RainbowFileMap rainbowFileMap)
    • setDbConvertProgress Link icon

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