|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamguardMVC.PamObservable
PamguardMVC.PamDataBlock<Tunit>
PamguardMVC.AcousticDataBlock<t>
clickDetector.ClickGroupDataBlock<t>
public class ClickGroupDataBlock<t extends GroupDetection>
Click Train data block deletes old data in a slightly different way to PamDataBlock. Where PamDataBlock starts at the beginning of the list and deletes items until one of them starts after the set time at which point it stops, ClickTrainDataBlock examins all units and deletes all of those which end before the set time. This is necessary since some click train data units last for hours, whereas others can be deleted after a couple of seconds.
| Field Summary |
|---|
| Fields inherited from class PamguardMVC.PamObservable |
|---|
masterClockSample, objectChanged, overlayDraw, pamObservers, pamProfiler |
| Constructor Summary | |
|---|---|
ClickGroupDataBlock(java.lang.Class pduClass,
java.lang.String dataName,
PamProcess parentProcess,
int channelMap)
|
|
| Method Summary | |
|---|---|
boolean |
canDraw(GeneralProjector projectorInfo)
|
protected int |
removeOldUnitsT(long currentTimeMS)
Removes olderPamDataUnits from memory, starting at the first unit and continuing until if finds one with data coming earlier than the given time in milliseconds. |
| Methods inherited from class PamguardMVC.AcousticDataBlock |
|---|
findParentSource, getChannelListManager, getParentSourceData, notifyModelChanged, prepareAmplitudeCalculations, prepareChannelLists |
| Methods inherited from class PamguardMVC.PamObservable |
|---|
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 |
| Constructor Detail |
|---|
public ClickGroupDataBlock(java.lang.Class pduClass,
java.lang.String dataName,
PamProcess parentProcess,
int channelMap)
| Method Detail |
|---|
protected int removeOldUnitsT(long currentTimeMS)
PamDataBlockIf the data are acoustic, it tries to find the data source and looks to see how much data has been placed in the source data unit and does the calculation in samples.
removeOldUnitsT in class PamDataBlock<t extends GroupDetection>currentTimeMS - Time in milliseconds of the first data which must be kept
public boolean canDraw(GeneralProjector projectorInfo)
canDraw in interface PanelOverlayDrawcanDraw in class PamObservable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||