Package effortmonitor
Class EffortDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
effortmonitor.EffortDataUnit
- All Implemented Interfaces:
Comparable
-
Constructor Summary
ConstructorDescriptionEffortDataUnit
(int databaseIndex, AbstractPamScroller scroller, String displayName, long timeMilliseconds, long endTime, String observer, String objective, long sessStart, long sessEnd, String runMode) Constructor to use when reloading from database.EffortDataUnit
(AbstractPamScroller scroller, String observer, String objective) Constructor for new scroll effort data -
Method Summary
Modifier and TypeMethodDescriptionboolean
Extend the recorded range of this scroller.Get the scroller (display) namelong
The time the observer did the actual viewing, i.e.long
The time the observer did the actual viewing, i.e.Return an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.boolean
isActive()
Is the data active, i.e.boolean
Say if the current scroll position is continuous with the existing recorded time or if there is a gap of any sort.void
setActive
(boolean isActive) Set to false once there has been a gap in scrolling and this data unit is closed but held in memory.void
setObjective
(String objective) void
setObserver
(String observer) void
Set the limits as the outer limits of the scroller.Methods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getColourIndex, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getEndTimeInMilliseconds, getFrequency, getFrequencyOverlap, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, 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
-
EffortDataUnit
Constructor for new scroll effort data- Parameters:
scroller
-observer
-objective
-
-
EffortDataUnit
public EffortDataUnit(int databaseIndex, AbstractPamScroller scroller, String displayName, long timeMilliseconds, long endTime, String observer, String objective, long sessStart, long sessEnd, String runMode) Constructor to use when reloading from database.- Parameters:
databaseIndex
-scroller
-displayName
-timeMilliseconds
-endTime
-observer
-objective
-sessStart
-sessEnd
-
-
-
Method Details
-
isContinuous
public boolean isContinuous()Say if the current scroll position is continuous with the existing recorded time or if there is a gap of any sort.- Returns:
- true if no gap or an overlap, false if a gap
-
extendRecordedRange
public boolean extendRecordedRange()Extend the recorded range of this scroller.- Returns:
- true if the range has changed
-
getScroller
- Returns:
- the scroller
-
getObserver
- Returns:
- the observer
-
isActive
public boolean isActive()Is the data active, i.e. is being scrolled and no gaps have been made in the data- Returns:
- the isActive
-
setActive
public void setActive(boolean isActive) Set to false once there has been a gap in scrolling and this data unit is closed but held in memory. There should only be one active unit for each scroller.- Parameters:
isActive
- the isActive to set
-
getSessionStartTime
public long getSessionStartTime()The time the observer did the actual viewing, i.e. the System.currenttime()- Returns:
- the startTime
-
getSessionEndTime
public long getSessionEndTime()The time the observer did the actual viewing, i.e. the System.currenttime()- Returns:
- the endTime
-
getDisplayName
Get the scroller (display) name- Returns:
- display name
-
getObjective
- Returns:
- the objective
-
setObjective
- Parameters:
objective
- the objective to set
-
setObserver
- Parameters:
observer
- the observer to set
-
getSummaryString
Description copied from class:PamDataUnit
Return an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.- Overrides:
getSummaryString
in classPamDataUnit
- Returns:
- summary string
-
getRunMode
- Returns:
- the runMode
-
setOuterLimits
public void setOuterLimits()Set the limits as the outer limits of the scroller.
-