Package clickDetector.offlineFuncs
Class OfflineEventDataUnit
java.lang.Object
PamguardMVC.PamDataUnit<PamDataUnit,SuperDetection>
 
PamguardMVC.superdet.SuperDetection<PamDataUnit>
Localiser.detectionGroupLocaliser.GroupDetection<PamDataUnit>
clickDetector.offlineFuncs.OfflineEventDataUnit
- All Implemented Interfaces:
 Comparable<PamDataUnit>,PamDetection,AcousticDataUnit
- Direct Known Subclasses:
 ClickTrainDetection
OfflineEventDataUnit replicates the RainbowClick functionality in 
 OfflineRCEvent. 
 
A lot of the functionality required to associate clicks with an event is already wrapped up in the base classes of PamDataBlock and PamDataUnit.
March 2016. Am merging online and offline click tracking functionality, so this has now been declared abstract to stop them being created directly and TrackedClickGroup has been made to subclass this, so that both now have the same functionality. May at a later date remove trackedclickGroup and go back to just having the one class of OfflineEventDataUnit - or better, EventDataUnit.
- Author:
 - Doug Gillespie
 
- 
Field Summary
Fields inherited from class Localiser.detectionGroupLocaliser.GroupDetection
STATUS_CLOSED, STATUS_OPENFields inherited from class PamguardMVC.PamDataUnit
absBlockIndex, localisation - 
Constructor Summary
ConstructorsConstructorDescriptionOfflineEventDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration) OfflineEventDataUnit(ClickDetection firstClick) OfflineEventDataUnit(String eventType, Integer nominalEventId, ClickDetection firstClick) Called whena new event is created. - 
Method Summary
Modifier and TypeMethodDescriptionintGet a colour id.intintbooleanvoidQuick way for events to tell observers of the data block that they have updated.voidsetBestNumber(Short bestNumber) voidsetColourIndex(int colourIndex) voidsetComment(String comment) voidsetEventType(String eventType) voidsetMaxNumber(Short maxNumber) voidsetMinNumber(Short minNumber) voidsetSuspectEventTimes(boolean suspectEventTimes) Methods inherited from class Localiser.detectionGroupLocaliser.GroupDetection
addFitData, addSubDetection, getEventEndTime, getEventId, getGroupDetectionLocalisation, getPredictedBearing, getStatus, makeLocalisation, setEventEndTime, setEventId, setStatusMethods inherited from class PamguardMVC.superdet.SuperDetection
addSubDetectionInfo, addSubDetections, clearSubDetectionData, clearSubDetectionObjects, clearSubdetectionsRemoved, findSubDetection, findSubDetection, findSubDetection, findSubdetectionInfo, findSubDetectionInfo, getLoadedSubDetectionsCount, getPresentSubDetections, getSubDetection, getSubdetectionInfo, getSubDetectionInfo, getSubDetections, getSubDetectionsCount, getSubdetectionsRemoved, getSubDetectionSyncronisation, isAllowSubdetectionSharing, removeAllSubDetections, removeSubDetection, replaceSubDetection, sortSubDetectionsMethods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getEndTimeInMilliseconds, getFrequency, getFrequencyOverlap, getGpsPosition, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSummaryString, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeMilliseconds, getTimeNanoseconds, getTimeOverlap, getUID, getUpdateCount, isEmbryonic, isForceAmpRecalc, linAmplitudeToDB, removeDataAnnotation, removeDataAnnotation, removeSuperDetection, setAbsBlockIndex, setCalculatedAmlitudeDB, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setDurationInMilliseconds, setEmbryonic, setForceAmpRecalc, setFrequency, setInfo, setLastUpdateTime, setLocalisation, setMeasuredAmpAndType, setMeasuredAmplitude, setMeasuredAmplitudeType, setNoiseBackground, setParentDataBlock, setSampleDuration, setSequenceBitmap, setSignalExcess, setSignalSPL, setSnapshotGeometry, setStartSample, setTimeDelaysSeconds, setTimeMilliseconds, setUID, setUniqueSuperDetection, sortOutputMaps, updateDataUnit 
- 
Constructor Details
- 
OfflineEventDataUnit
 - 
OfflineEventDataUnit
public OfflineEventDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration)  - 
OfflineEventDataUnit
Called whena new event is created.- Parameters:
 eventType-firstClick-colourIndex-
 
 - 
 - 
Method Details
- 
getEventType
- Returns:
 - the eventType
 
 - 
getColourIndex
public int getColourIndex()Description copied from class:PamDataUnitGet a colour id. this can be pretty much anything and will be scaled, looped, to fit in the range of whale id colours. Mostly used for superdetection display, but can be used by anything.- Overrides:
 getColourIndexin classPamDataUnit<PamDataUnit,SuperDetection> - Returns:
 - any integer.
 
 - 
setColourIndex
public void setColourIndex(int colourIndex)  - 
setEventType
- Parameters:
 eventType- the eventType to set
 - 
getComment
- Returns:
 - the comment
 
 - 
setComment
- Parameters:
 comment- the comment to set
 - 
getEventNumber
public int getEventNumber()- Returns:
 - the eventNumber which is the same as the database index.
 
 - 
getMinNumber
 - 
setMinNumber
 - 
getBestNumber
 - 
setBestNumber
 - 
getMaxNumber
 - 
setMaxNumber
 - 
getNClicks
public int getNClicks() - 
isSuspectEventTimes
public boolean isSuspectEventTimes()- Returns:
 - the suspectEventTimes
 
 - 
setSuspectEventTimes
public void setSuspectEventTimes(boolean suspectEventTimes) - Parameters:
 suspectEventTimes- the suspectEventTimes to set
 - 
notifyUpdate
public void notifyUpdate()Quick way for events to tell observers of the data block that they have updated. 
 -