Class RainbowDatabseConverter
java.lang.Object
clickDetector.offlineFuncs.rcImport.RainbowDatabseConverter
Does the work of converting a RainbowClick databse.
- Author:
- Doug Gillespie
-
Constructor Summary
ConstructorDescriptionRainbowDatabseConverter
(ClickControl clickControl, String rainbowDatabaseName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
boolean
importClicks
(RainbowFileMap rainbowFileMap) boolean
Read events from the rainbow click database and write them to the PAMguard database.boolean
void
setDbConvertProgress
(DBConvertProgress dbConvertProgress)
-
Constructor Details
-
RainbowDatabseConverter
-
-
Method Details
-
openRainbowConnection
public boolean openRainbowConnection() -
checkRainbowTables
public boolean checkRainbowTables() -
closeConnection
public void closeConnection() -
getRcEventsTableDef
- Returns:
- the rcEventsTableDef
-
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 inNot 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
-
setDbConvertProgress
- Parameters:
dbConvertProgress
- the dbConvertProgress to set
-