public class HydrophoneDataBlock extends PamDataBlock<HydrophoneDataUnit>
ITERATOR_END, MATCH_AFTER, MATCH_BEFORE, MATCH_EXACT, MIX_DONOTHING, MIX_INTODATABASE, MIX_OUTOFDATABASE, NOTIFY_NEW_DATA, NOTIFY_UPDATE_DATA, OFFLINE_DATA_CANCEL, OFFLINE_DATA_INTERRUPT, OFFLINE_DATA_WAIT, orderLock, 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
Constructor and Description |
---|
HydrophoneDataBlock(java.lang.String dataName,
HydrophoneProcess hydrophoneProcess,
int channelMap) |
Modifier and Type | Method and Description |
---|---|
void |
clearAll()
Clears all PamDataUnits from memory
|
HydrophoneDataUnit |
getClosestHydrophone(long startTime,
int ihydrophone)
Find the closest hydrophone unit to a given time.
|
int |
getNumRequiredBeforeLoadTime()
Get the number of pam data units that are required prior to the load times
that get sent to loadViewerData.
|
boolean |
getShouldLog(PamDataUnit pamDataUnit)
Should log the data unit to the database ?
|
boolean |
loadViewerData(long dataStart,
long dataEnd,
ViewLoadObserver loadObserver)
Instruction from the viewer scroll manager to load new data.
|
boolean |
shouldNotify() |
addDataAnnotationType, addLocalisationContents, addObserver, addObserver, addOfflineDataMap, addPamData, autoSetDataBlockMixMode, cancelDataOrder, clearChannelIterators, clearDeletedList, createProcessAnnotations, createProcessAnnotations, dumpBlockContents, findAnnotation, findAnnotation, findByDatabaseIndex, findDataUnit, findDataUnit, findUnitsinInterval, getBinaryDataSource, getCanLog, getChannelIterator, getChannelIteratorCount, getChannelMap, getClosestUnitMillis, getClosestUnitMillis, getCurrentViewDataEnd, getCurrentViewDataStart, getDataAnnotationType, getDataGain, getDatagrammedMap, getDatagramProvider, getDataName, getDataSelectCreator, getDataSelector, getDataUnit, getFirstUnit, getFirstUnit, getFirstUnitAfter, getLastUnit, getLastUnit, getListIterator, getListIterator, getListIteratorFromEnd, getListIteratorFromStart, getLocalisationContents, getLogging, getLoggingName, getLongDataName, getMixedDirection, getNaturalLifetime, getNaturalLifetimeMillis, getNextDataStart, getNextUnit, getNextUnit, getNumDataAnnotationTypes, getNumOfflineDataMaps, getOfflineData, getOfflineDataMap, getOfflineDataMap, getOrderStatus, getParentProcess, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPrevDataEnd, getPrimaryDataMap, getProcessAnnotations, getQuickId, getRawSourceDataBlock, getRawSourceDataBlock2, getRecycledUnit, getRecyclingStoreLength, getRemovedItems, getReverseChannelIterator, getSampleRate, getSaveRequirements, getShouldBinary, getSourceDataBlock, getSourceProcess, getUnitClass, getUnitIndex, getUnitsCount, getUnitsCountFromTime, isCanClipGenerate, isClearAtStart, isLinkGpsData, isRecycling, masterClockUpdate, noteNewSettings, notifyModelChanged, orderOfflineData, orderOfflineData, remove, remove, removeOfflineDataMap, reset, saveViewerData, setBinaryDataSource, setCanClipGenerate, setChannelMap, setClearAtStart, setDatagramProvider, setDataName, setLinkGpsData, setLocalisationContents, SetLogging, setMixedDirection, setNaturalLifetime, setNaturalLifetimeMillis, setRecordingTrigger, setRecycling, setRecyclingStoreLength, setSampleRate, setShouldBinary, setShouldLog, sortData, toString, updatePamData
canDraw, clearchanged, countObservers, createKeyItem, deleteObserver, deleteObservers, drawDataUnit, findThreadedObserver, getCPUPercent, getCPUPercent, getHoverText, getLongestObserver, getPamObservers, getRequiredHistory, hasOptionsDialog, notifyObservers, notifyObservers, setChanged, setOverlayDraw, showOptions, waitForThreadedObservers
public HydrophoneDataBlock(java.lang.String dataName, HydrophoneProcess hydrophoneProcess, int channelMap)
public void clearAll()
PamDataBlock
In viewer mode, data are also re-saved.
clearAll
in class PamDataBlock<HydrophoneDataUnit>
public boolean shouldNotify()
shouldNotify
in class PamDataBlock<HydrophoneDataUnit>
public int getNumRequiredBeforeLoadTime()
PamDataBlock
getNumRequiredBeforeLoadTime
in class PamDataBlock<HydrophoneDataUnit>
public boolean getShouldLog(PamDataUnit pamDataUnit)
PamDataBlock
getShouldLog
in class PamDataBlock<HydrophoneDataUnit>
pamDataUnit
- dataunit to considerpublic boolean loadViewerData(long dataStart, long dataEnd, ViewLoadObserver loadObserver)
PamDataBlock
loadViewerData
in class PamDataBlock<HydrophoneDataUnit>
dataStart
- data start time in millisdataEnd
- data end time in millis.public HydrophoneDataUnit getClosestHydrophone(long startTime, int ihydrophone)
startTime
- Start time of data unit (milliseconds)channelMap
- Channel map - must be some overlap, not an exact match.