public class StreamerDataBlock extends PamDataBlock<StreamerDataUnit>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
dataName |
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 |
---|
StreamerDataBlock(HydrophoneProcess hydrophoneProcess) |
Modifier and Type | Method and Description |
---|---|
void |
clearAll()
Clears all PamDataUnits from memory
|
int |
getNumRequiredBeforeLoadTime()
Get the number of pam data units that are required prior to the load times
that get sent to loadViewerData.
|
StreamerDataUnit |
getPreceedingUnit(long startTime,
int channelMap)
Simple function to find the data unit at or before the given
start time that has a given channel bitmap
|
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.
|
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, 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, shouldNotify, 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 static final java.lang.String dataName
public StreamerDataBlock(HydrophoneProcess hydrophoneProcess)
public void clearAll()
PamDataBlock
In viewer mode, data are also re-saved.
clearAll
in class PamDataBlock<StreamerDataUnit>
public boolean loadViewerData(long dataStart, long dataEnd, ViewLoadObserver loadObserver)
PamDataBlock
loadViewerData
in class PamDataBlock<StreamerDataUnit>
dataStart
- data start time in millisdataEnd
- data end time in millis.public StreamerDataUnit getPreceedingUnit(long startTime, int channelMap)
PamDataBlock
getPreceedingUnit
in class PamDataBlock<StreamerDataUnit>
startTime
- search time in millisecondschannelMap
- Channel bitmappublic int getNumRequiredBeforeLoadTime()
PamDataBlock
getNumRequiredBeforeLoadTime
in class PamDataBlock<StreamerDataUnit>
public boolean getShouldLog(PamDataUnit pamDataUnit)
PamDataBlock
getShouldLog
in class PamDataBlock<StreamerDataUnit>
pamDataUnit
- dataunit to consider