Package generalDatabase
Class PamDetectionLogging
java.lang.Object
generalDatabase.SQLLogging
generalDatabase.PamDetectionLogging
- Direct Known Subclasses:
ClickLogger
,GroupLocInfoLogging
,IshLocSqlLogging
,IshLogger
,TowedArray3DSQLLogging
,WhistleLogger
,WhistleToneLogging
Standard logging class for any PamDetection, but you'll want to extend it for any
additional information your detector outputs.
Handles data from all fields in the PamDetection class.
Handles data from expected fields in associated localisation data.
N.B. Not all databases support huge (64 bit) integers, so the sample number is written as a 32 bit integer, but the detection time is also written as a double number of seconds from the start of the run, so any overflow should show up clearly (and seconds are much easier to deal with in any offline analysis of data from the database).
- Author:
- Doug Gillespie
-
Field Summary
Fields inherited from class generalDatabase.SQLLogging
UPDATE_POLICY_OVERWRITE, UPDATE_POLICY_WRITENEW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDepth()
int
int
getRange()
getUIDMatchClause
(PamDataUnit pamDataUnit, SQLTypes sqlTypes) Get a string used to match binary data with the database records.void
setTableData
(SQLTypes sqlTypes, PamDataUnit pamDetection) Callback function when new data are created that allows the user to set the data for each column.Methods inherited from class generalDatabase.SQLLogging
addAddOn, clearAllAddOns, countTableItems, countTableItems, createInClause, deleteData, deleteData, deleteData, deleteIndexedItems, doExtraChecks, double2Float, findClosestDataPoint, findLogger, getBaseTableDefinition, getEarlyLoadClause, getIdListUpdatClause, getLastLoadIndex, getLastLoadUID, getLastTime, getLoggingAddOns, getPamDataBlock, getTableDefinition, getTimesUpdateClause, getUpdatePolicy, getViewerCursorFinder, getViewerEverythingClause, getViewerLessThanClause, getViewerLoadClause, getViewerOverlapClause, getViewerUpdateClause, isCanView, isLoadViewData, loadDataFrom, loadEarlyData, loadEarlyData, loadLastDataUnit, loadSubtableData, loadSubtableData, loadViewData, loadViewData, loadViewerData, logData, logData, prepareEmulation, prepareForMixedMode, readLastData, readMixedModeData, readNextEmulation, reCheckTable, reLogData, reLogData, removeAddOn, removeAddOn, reset, saveOfflineData, setCanView, setColumnData, setLoadViewData, setTableDefinition, setUpdatePolicy, transferDataFromResult
-
Constructor Details
-
PamDetectionLogging
-
-
Method Details
-
setTableData
Description copied from class:SQLLogging
Callback function when new data are created that allows the user to set the data for each column. Columns that have data which can be filled automatically (counters, primary keys and columns cross referenced to data in other tables) are filled automatically in fillTableData()- Specified by:
setTableData
in classSQLLogging
-
getAmplitude
-
getBearing
-
getBearingAmbiguity
-
getBearingError
-
getChannelMap
-
getDepth
-
getDepthError
-
getDetectionType
-
getDuration
-
getHighFreq
-
getLatitude
-
getLocalisationFlags
public int getLocalisationFlags() -
getLongitude
-
getLowFreq
-
getNSides
public int getNSides() -
getParallelError
-
getPerpError
-
getRange
-
getRangeError
-
getReferenceAngle
-
getStartSample
-
getStartSeconds
-
getUIDMatchClause
Description copied from class:SQLLogging
Get a string used to match binary data with the database records.- Overrides:
getUIDMatchClause
in classSQLLogging
- Parameters:
pamDataUnit
- Data unit to matchsqlTypes
- type for specific formatting.- Returns:
- WHERE type clause (without the WHERE)
-