diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml index 73fb08dd..217f240b 100644 --- a/dependency-reduced-pom.xml +++ b/dependency-reduced-pom.xml @@ -4,7 +4,7 @@ org.pamguard Pamguard Pamguard Java12+ - 2.02.10b + 2.02.10ae Pamguard for Java 12+, using Maven to control dependcies www.pamguard.org diff --git a/pom.xml b/pom.xml index bbb2fbe6..8051e75d 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.pamguard Pamguard - 2.02.10ad + 2.02.10ae Pamguard Java12+ Pamguard for Java 12+, using Maven to control dependcies www.pamguard.org diff --git a/src/PamController/PamController.java b/src/PamController/PamController.java index 447c876e..54f7735f 100644 --- a/src/PamController/PamController.java +++ b/src/PamController/PamController.java @@ -196,7 +196,7 @@ public class PamController implements PamControllerInterface, PamSettings { private Timer diagnosticTimer; - private boolean debugDumpBufferAtRestart = true; + private boolean debugDumpBufferAtRestart = false; private NetworkController networkController; private int nNetPrepared; diff --git a/src/PamController/PamguardVersionInfo.java b/src/PamController/PamguardVersionInfo.java index 12814aa5..f4710929 100644 --- a/src/PamController/PamguardVersionInfo.java +++ b/src/PamController/PamguardVersionInfo.java @@ -16,7 +16,7 @@ public class PamguardVersionInfo { * @return release type */ static public ReleaseType getReleaseType() { - return ReleaseType.OTHER; + return ReleaseType.BETA; } /** @@ -31,12 +31,12 @@ public class PamguardVersionInfo { * Version number, major version.minorversion.sub-release. * Note: can't go higher than sub-release 'f' */ - static public final String version = "2.02.10ad"; + static public final String version = "2.02.10ae"; /** * Release date */ - static public final String date = "13 March 2024"; + static public final String date = "15 March 2024"; // /** // * Release type - Beta or Core diff --git a/src/PamguardMVC/PamDataBlock.java b/src/PamguardMVC/PamDataBlock.java index ddc42abe..ba5d6a29 100644 --- a/src/PamguardMVC/PamDataBlock.java +++ b/src/PamguardMVC/PamDataBlock.java @@ -636,7 +636,7 @@ public class PamDataBlock extends PamObservable { /** * Find a dataunit based on it's database index. If there have been no updates, - * then database indexes should be in order and a fast find canbe used. If + * then database indexes should be in order and a fast find can be used. If * however, there have been updates, then things will not be in order so it's * necessary to go through everything from start to end. * diff --git a/src/PamguardMVC/superdet/SubdetectionInfo.java b/src/PamguardMVC/superdet/SubdetectionInfo.java index 228f9ccc..396dea7d 100644 --- a/src/PamguardMVC/superdet/SubdetectionInfo.java +++ b/src/PamguardMVC/superdet/SubdetectionInfo.java @@ -63,6 +63,13 @@ public class SubdetectionInfo implements Comparable implements Comparable implements Comparable1 in a millisecond. + */ + Integer clickNo = subTableData.getClickNumber(); + if (clickNo == null) { + return 0; + } + else { + subTableData.setChildUID(dataUnit.getUID()); + dataUnit.updateDataUnit(System.currentTimeMillis()); + return (int) (clickNo - duFileInfo.getIndexInFile()); + } + } } diff --git a/src/generalDatabase/PamSubtableData.java b/src/generalDatabase/PamSubtableData.java index 35a8dc27..a05a6c1e 100644 --- a/src/generalDatabase/PamSubtableData.java +++ b/src/generalDatabase/PamSubtableData.java @@ -81,6 +81,11 @@ public class PamSubtableData { * subdetection table, and not the index from the Click_Detector_Clicks table) */ private long dbIndex; + + /** + * Click number. only exists for clicks table, but needed for corrupt database. + */ + private Integer clickNumber; /** * @@ -158,5 +163,18 @@ public class PamSubtableData { this.childUTC = childUTC; } + /** + * @return the clickNumber + */ + public Integer getClickNumber() { + return clickNumber; + } + + /** + * @param clickNumber the clickNumber to set + */ + public void setClickNumber(Integer clickNumber) { + this.clickNumber = clickNumber; + } } diff --git a/src/generalDatabase/SQLLogging.java b/src/generalDatabase/SQLLogging.java index 905ee28f..087a039f 100644 --- a/src/generalDatabase/SQLLogging.java +++ b/src/generalDatabase/SQLLogging.java @@ -2077,8 +2077,9 @@ public abstract class SQLLogging { ArrayList tableList = new ArrayList(); int n = 0; try { + PamSubtableDefinition subtableTableDef = (PamSubtableDefinition) getTableDefinition(); + PamTableItem clickNoItem = subtableTableDef.findTableItem("ClickNo"); while (subtableResults.next()) { - PamSubtableDefinition subtableTableDef = (PamSubtableDefinition) getTableDefinition(); PamTableItem tableItem; // transferDataFromResult(con.getSqlTypes(), subtableResults); for (int i = 0; i < subtableTableDef.getTableItemCount(); i++) { @@ -2102,6 +2103,9 @@ public abstract class SQLLogging { subtableData.setLongName(subtableTableDef.getLongName().getStringValue()); subtableData.setBinaryFilename(subtableTableDef.getBinaryfile().getStringValue()); subtableData.setDbIndex(subtableTableDef.getIndexItem().getIntegerValue()); + if (clickNoItem != null) { + subtableData.setClickNumber(clickNoItem.getIntegerValue()); + } try { subtableData.setChildUID(subtableTableDef.getUidItem().getLongObject()); }