clickDetector
Class ClickDataBlock
java.lang.Object
PamguardMVC.PamObservable
PamguardMVC.PamDataBlock<Tunit>
PamguardMVC.AcousticDataBlock<ClickDetection>
clickDetector.ClickDataBlock
- All Implemented Interfaces:
- PanelOverlayDraw
public class ClickDataBlock
- extends AcousticDataBlock<ClickDetection>
| Fields inherited from class PamguardMVC.PamDataBlock |
dataName, ITERATOR_END, MATCH_AFTER, MATCH_BEFORE, MATCH_EXACT, MIX_DONOTHING, MIX_INTODATABASE, MIX_OUTOFDATABASE, naturalLifetime, NOTIFY_NEW_DATA, NOTIFY_UPDATE_DATA, OFFLINE_DATA_CANCEL, OFFLINE_DATA_INTERRUPT, OFFLINE_DATA_WAIT, orderLock, pamDataUnits, parentProcess, POSITION_AFTER, POSITION_BEFORE, REFERENCE_ABSOLUTE, REFERENCE_CURRENT, REQUEST_DATA_LOADED, REQUEST_DATA_PARTIAL_LOAD, REQUEST_EXCEPTION, REQUEST_INTERRUPTED, REQUEST_NO_DATA, REQUEST_SAME_REQUEST, unitsAdded, unitsRemoved, unitsUpdated |
| Methods inherited from class PamguardMVC.PamDataBlock |
addLocalisationContents, addObserver, addObserver, addOfflineDataMap, addPamData, autoSetDataBlockMixMode, clearAll, clearDeletedList, createAnnotations, createAnnotations, dumpBlockContents, findAnnotation, findAnnotation, findByDatabaseIndex, findDataUnit, findDataUnit, getAbsoluteDataUnit, getAnnotations, getBinaryDataSource, getCanLog, getChannelMap, getClosestUnitMillis, getCurrentViewDataEnd, getCurrentViewDataStart, getDataGain, getDataName, getDataUnit, getFirstUnit, getFirstUnitAfter, getLastUnit, getListIterator, getListIterator, getListIteratorFromEnd, getListIteratorFromStart, getLocalisationContents, getLogging, getLoggingName, getLongDataName, getMixedDirection, getNaturalLifetime, getNaturalLifetimeMillis, getNextDataStart, getNumOfflineDataMaps, getOfflineData, getOfflineData, getOfflineDataMap, getOfflineDataMap, getOrderStatus, getParentProcess, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPrevDataEnd, getRawSourceDataBlock, getRecycledUnit, getRecyclingStoreLength, getRemovedItems, getSampleRate, getSaveRequirements, getSourceDataBlock, getSourceProcess, getUnitClass, getUnitIndex, getUnitsCount, getUnitsCountFromTime, isLinkGpsData, isRecycling, masterClockUpdate, noteNewSettings, orderOfflineData, orderOfflineData, remove, remove, removeOldUnitsT, setBinaryDataSource, setChannelMap, setDataName, setLinkGpsData, setLocalisationContents, SetLogging, setMixedDirection, setNaturalLifetime, setNaturalLifetimeMillis, setRecycling, setRecyclingStoreLength, setSampleRate, setShouldLog, shouldNotify, toString, updatePamData |
| Methods inherited from class PamguardMVC.PamObservable |
canDraw, clearchanged, countObservers, createKeyItem, deleteObserver, deleteObservers, drawDataUnit, findThreadedObserver, getCPUPercent, getCPUPercent, getHoverText, getLongestObserver, getPamObservers, getRequiredHistory, notifyObservers, notifyObservers, setChanged, setOverlayDraw, waitForThreadedObservers |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
clickControl
private ClickControl clickControl
offlineClickLogging
private OfflineClickLogging offlineClickLogging
isViewer
private boolean isViewer
ClickDataBlock
public ClickDataBlock(ClickControl clickControl,
PamProcess parentProcess,
int channelMap)
getShouldLog
public boolean getShouldLog(PamDataUnit pamDataUnit)
- Overrides:
getShouldLog in class PamDataBlock<ClickDetection>
loadViewerData
public boolean loadViewerData(long dataStart,
long dataEnd)
- Click detector loading has to be a bit different to normal - first
data are loaded from the binary store, then a subset of these data
are loaded from the Offline database. These database clicks are then
matched to the data in the
- Overrides:
loadViewerData in class PamDataBlock<ClickDetection>
- Parameters:
dataStart - data start time in millisdataEnd - data end time in millis.
saveViewerData
public boolean saveViewerData()
- Description copied from class:
PamDataBlock
- Saves data in this data block in offline viewer mode.
- Overrides:
saveViewerData in class PamDataBlock<ClickDetection>
- Returns:
- true if data found and saved.
getPrimaryDataMap
public OfflineDataMap getPrimaryDataMap()
- Description copied from class:
PamDataBlock
- Get the data map which has the most data in it
- Overrides:
getPrimaryDataMap in class PamDataBlock<ClickDetection>
- Returns:
- a data map
notifyModelChanged
public void notifyModelChanged(int changeType)
- Description copied from class:
PamDataBlock
- Receive notifications from the main PamController.
- Overrides:
notifyModelChanged in class AcousticDataBlock<ClickDetection>
matchClickstoEvents
private void matchClickstoEvents()
getOfflineClickLogging
public OfflineClickLogging getOfflineClickLogging()
- Returns:
- the offlineClickLogging
removeOldUnitsS
protected int removeOldUnitsS(long mastrClockSample)
- Overrides:
removeOldUnitsS in class PamDataBlock<ClickDetection>