public class OfflineEventDataBlock extends PamDataBlock<OfflineEventDataUnit> implements StaticLocaliserProvider, TargetMotionLocaliserProvider
As with RainbowClick, this will (probably) hold all offline events from the database so that the operator can navigate through them with ease. However, only clicks associated with the currently loaded period will be loaded into memory and associated with the OfflineEventDataUnits.
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 |
---|
OfflineEventDataBlock(java.lang.String dataName,
ClickDetector parentProcess,
int channelMap) |
Modifier and Type | Method and Description |
---|---|
void |
addPamData(OfflineEventDataUnit pamDataUnit)
Adds a new PamDataUnit to the PamDataBlock.
|
void |
clearAll()
This is generally only called from loadViwerData and since
LoadviewerData only ever operates once, it should never get called !
|
int |
getChannelMap() |
boolean |
getShouldLog(PamDataUnit pamDataUnit)
Should log the data unit to the database ?
|
AbstractLocaliserControl |
getSLControlDialog(StaticLocaliserControl staticLocaliserControl)
Any datablock can provide a localiser control panel for the static localiser, however it must be tailored to the specific type of detection.
|
AbstractControlPanel |
getTMControlPanel(TargetMotionControl targetMotionControl)
Any datablock can provide a localiser control panel for the static localiser, however it must be tailored to the specific type of detection.
|
TargetMotionInformation |
getTMInfo(java.util.ArrayList<PamDetection> detections)
Each data block may have a unique way of calculating targetmotion information.
|
boolean |
loadViewerData(long dataStart,
long dataEnd,
ViewLoadObserver loadObserver)
LoadViewerData works very differently for offline events since all events for
the entire data set are always held in memory.
|
boolean |
remove(OfflineEventDataUnit aDataUnit) |
boolean |
saveViewerData()
Saves data in this data block in offline viewer mode.
|
addDataAnnotationType, addLocalisationContents, addObserver, addObserver, addOfflineDataMap, autoSetDataBlockMixMode, cancelDataOrder, clearChannelIterators, clearDeletedList, createProcessAnnotations, createProcessAnnotations, dumpBlockContents, findAnnotation, findAnnotation, findByDatabaseIndex, findDataUnit, findDataUnit, findUnitsinInterval, getBinaryDataSource, getCanLog, getChannelIterator, getChannelIteratorCount, 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, getNumRequiredBeforeLoadTime, 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, removeOfflineDataMap, reset, 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 OfflineEventDataBlock(java.lang.String dataName, ClickDetector parentProcess, int channelMap)
public int getChannelMap()
getChannelMap
in class PamDataBlock<OfflineEventDataUnit>
public void addPamData(OfflineEventDataUnit pamDataUnit)
PamDataBlock
addPamData
in class PamDataBlock<OfflineEventDataUnit>
pamDataUnit
- Reference to a PamDataUnitpublic boolean getShouldLog(PamDataUnit pamDataUnit)
PamDataBlock
getShouldLog
in class PamDataBlock<OfflineEventDataUnit>
pamDataUnit
- dataunit to considerpublic boolean loadViewerData(long dataStart, long dataEnd, ViewLoadObserver loadObserver)
Therefore, they only need be loaded once at the start of analysis and should never be deleted. They should however be saved as often as is reasonably possible.
loadViewerData
in class PamDataBlock<OfflineEventDataUnit>
dataStart
- data start time in millisdataEnd
- data end time in millis.public void clearAll()
clearAll
in class PamDataBlock<OfflineEventDataUnit>
public boolean saveViewerData()
PamDataBlock
saveViewerData
in class PamDataBlock<OfflineEventDataUnit>
public boolean remove(OfflineEventDataUnit aDataUnit)
remove
in class PamDataBlock<OfflineEventDataUnit>
public AbstractLocaliserControl getSLControlDialog(StaticLocaliserControl staticLocaliserControl)
StaticLocaliserProvider
getSLControlDialog
in interface StaticLocaliserProvider
public AbstractControlPanel getTMControlPanel(TargetMotionControl targetMotionControl)
TargetMotionLocaliserProvider
getTMControlPanel
in interface TargetMotionLocaliserProvider
public TargetMotionInformation getTMInfo(java.util.ArrayList<PamDetection> detections)
TargetMotionLocaliserProvider
getTMInfo
in interface TargetMotionLocaliserProvider