|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamguardMVC.PamDataUnit
PamDetection.AcousticDataUnit
PamDetection.PamDetection<ClickDetection,PamDetection>
clickDetector.offlineFuncs.OfflineEventDataUnit
public class OfflineEventDataUnit
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.
| Field Summary | |
|---|---|
private java.lang.Short |
bestNumber
Best estimate of number of animals in event |
private java.lang.Integer |
colourIndex
specific colour index - can be null. |
private java.lang.String |
comment
|
private long |
eventEndTime
Event end time. |
private java.lang.String |
eventType
|
private java.lang.Short |
maxNumber
Maximum number of animals in event |
private java.lang.Short |
minNumber
Minimum number of animals in event |
private int |
nClicks
|
private boolean |
suspectEventTimes
Flag to say that event times may be a bit dodgy. |
| Fields inherited from class PamDetection.AcousticDataUnit |
|---|
AMPLITUDE_SCALE_DBREMPA, AMPLITUDE_SCALE_LINREFSD, duration, frequency, startSample |
| Fields inherited from class PamguardMVC.PamDataUnit |
|---|
absBlockIndex, channelBitmap, localisation, oLL, timeMilliseconds |
| Constructor Summary | |
|---|---|
OfflineEventDataUnit(java.lang.String eventType,
java.lang.Integer colourIndex,
ClickDetection firstClick)
|
|
| Method Summary | |
|---|---|
void |
addClicks(java.util.List<ClickDetection> markedClicks)
Add a list of clicks to an event. |
void |
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. |
java.lang.Short |
getBestNumber()
|
short |
getColourIndex()
|
java.lang.String |
getComment()
|
long |
getEventEndTime()
|
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 |
setEventEndTime(long eventEndTime)
|
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)
|
private void |
setUniqueEvent(ClickDetection clickDetection,
OfflineEventDataUnit event)
Ensure that there is only one event superdetection per click. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String eventType
private java.lang.String comment
private int nClicks
private long eventEndTime
private boolean suspectEventTimes
private java.lang.Integer colourIndex
private java.lang.Short minNumber
(can be null)
private java.lang.Short bestNumber
(can be null)
private java.lang.Short maxNumber
(can be null)
| Constructor Detail |
|---|
public OfflineEventDataUnit(java.lang.String eventType,
java.lang.Integer colourIndex,
ClickDetection firstClick)
| Method Detail |
|---|
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 void addSubDetection(ClickDetection subDetection)
addSubDetection in class PamDetection<ClickDetection,PamDetection>subDetection - a new click to add.public void removeSubDetection(ClickDetection subDetection)
removeSubDetection in class PamDetection<ClickDetection,PamDetection>
private void setUniqueEvent(ClickDetection clickDetection,
OfflineEventDataUnit event)
clickDetection - event - 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 long getEventEndTime()
public void setEventEndTime(long eventEndTime)
eventEndTime - the eventEndTime to set in millisecondspublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||