public class OfflineEventDataUnit extends PamDetection<ClickDetection,PamDetection>
A lot of the functionality required to associate clicks with an event is already wrapped up in the base classes of PamDataBlock and PamDataUnit.
AMPLITUDE_SCALE_DBREMPA, AMPLITUDE_SCALE_LINREFSD
Constructor and Description |
---|
OfflineEventDataUnit(java.lang.String eventType,
java.lang.Integer colourIndex,
ClickDetection firstClick) |
Modifier and Type | Method and Description |
---|---|
void |
addClicks(java.util.List<ClickDetection> markedClicks)
Add a list of clicks to an event.
|
int |
addSubDetection(ClickDetection subDetection)
Add a new click to the event.
|
void |
addSubDetection(ClickDetection subDetection,
boolean countClick)
Add a sub detection with the option of not increasing the click
count.
|
ClickDetection |
findSubDetection(long timeMillis,
long startSample,
int channelBitmap) |
java.lang.Short |
getBestNumber() |
short |
getColourIndex() |
java.lang.String |
getComment() |
int |
getEventNumber() |
java.lang.String |
getEventType() |
java.lang.Short |
getMaxNumber() |
java.lang.Short |
getMinNumber() |
int |
getNClicks() |
boolean |
isSuspectEventTimes() |
void |
notifyUpdate()
Quick way for events to tell observers of the data block that they
have updated.
|
void |
removeSubDetection(ClickDetection subDetection) |
void |
setBestNumber(java.lang.Short bestNumber) |
void |
setComment(java.lang.String comment) |
void |
setEventType(java.lang.String eventType) |
void |
setMaxNumber(java.lang.Short maxNumber) |
void |
setMinNumber(java.lang.Short minNumber) |
void |
setNClicks(int nClicks) |
void |
setSuspectEventTimes(boolean suspectEventTimes) |
addSuperDetection, findSubDetection, getDetectionType, getEventEndTime, getPeakTime, getSubDetection, getSubDetectionsCount, getSubDetectionSyncronisation, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, removeSuperDetection, replaceSubDetection, setDetectionType, setEventEndTime, setPeakTime, setUniqueSuperDetection
amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, compareTo, getAmplitudeDB, getCalculatedAmlitudeDB, getDuration, getFrequency, getFrequencyOverlap, getLastSample, getMeasuredAmplitude, getMeasuredAmplitudeType, getSeconds, getStartSample, getSummaryString, getTimeOverlap, setCalculatedAmlitudeDB, setDuration, setFrequency, setInfo, setMeasuredAmplitude, setMeasuredAmplitude, setMeasuredAmplitudeType, setStartSample
addDataAnnotation, clearOandAngles, clearUpdateCount, findDataAnnotation, getAbsBlockIndex, getChannelBitmap, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDetectionMatch, getDetectionMatch, getHydrophoneHeading, getLastUpdateTime, getLocalisation, getNumDataAnnotations, getOriginLatLong, getPairAngle, getParentDataBlock, getTimeMilliseconds, getUpdateCount, removeDataAnnotation, removeDataAnnotation, setAbsBlockIndex, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setLastUpdateTime, setLocalisation, setOriginLatLong, setParentDataBlock, setTimeMilliseconds, updateDataUnit
public OfflineEventDataUnit(java.lang.String eventType, java.lang.Integer colourIndex, ClickDetection firstClick)
public void addClicks(java.util.List<ClickDetection> markedClicks)
markedClicks
- List of marked clicks.public void addSubDetection(ClickDetection subDetection, boolean countClick)
subDetection
- click to add to eventcountClick
- true if click count should be increased.public int addSubDetection(ClickDetection subDetection)
addSubDetection
in class PamDetection<ClickDetection,PamDetection>
subDetection
- a new click to add.public ClickDetection findSubDetection(long timeMillis, long startSample, int channelBitmap)
public void removeSubDetection(ClickDetection subDetection)
removeSubDetection
in class PamDetection<ClickDetection,PamDetection>
public java.lang.String getEventType()
public short getColourIndex()
public void setEventType(java.lang.String eventType)
eventType
- the eventType to setpublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- the comment to setpublic int getEventNumber()
public java.lang.Short getMinNumber()
public void setMinNumber(java.lang.Short minNumber)
public java.lang.Short getBestNumber()
public void setBestNumber(java.lang.Short bestNumber)
public java.lang.Short getMaxNumber()
public void setMaxNumber(java.lang.Short maxNumber)
public int getNClicks()
public void setNClicks(int nClicks)
public boolean isSuspectEventTimes()
public void setSuspectEventTimes(boolean suspectEventTimes)
suspectEventTimes
- the suspectEventTimes to setpublic void notifyUpdate()