Package effort
Class EffortDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
effort.EffortDataUnit
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
DataMapEffortThing
,FormsEffortUnit
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Value for effort end to say that effort is ongoing. -
Constructor Summary
ConstructorDescriptionEffortDataUnit
(EffortProvider effortProvider, PamDataUnit referenceDataUnit, long effortStart, long effortEnd) -
Method Summary
Modifier and TypeMethodDescriptionint
Description of the effort, for tool tips, etc.long
long
boolean
inEffort
(long timeMilliseconds) void
setEffortEnd
(long endTime) Set the effort end timevoid
setReferenceDataUnit
(PamDataUnit referenceDataUnit) toString()
Methods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, 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, 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
-
Field Details
-
ONGOINGEFFORT
public static final long ONGOINGEFFORTValue for effort end to say that effort is ongoing.- See Also:
-
-
Constructor Details
-
EffortDataUnit
public EffortDataUnit(EffortProvider effortProvider, PamDataUnit referenceDataUnit, long effortStart, long effortEnd)
-
-
Method Details
-
getEffortStart
public long getEffortStart()- Returns:
- Start of effort period.
-
getEffortEnd
public long getEffortEnd()- Returns:
- End of effort period.
-
setEffortEnd
public void setEffortEnd(long endTime) Set the effort end time- Parameters:
endTime
-
-
inEffort
public boolean inEffort(long timeMilliseconds) - Parameters:
timeMilliseconds
-- Returns:
- time is in effort period
-
getEffortDescription
Description of the effort, for tool tips, etc.- Returns:
-
getReferenceDataUnit
- Returns:
- the referenceDataUnit
-
setReferenceDataUnit
- Parameters:
referenceDataUnit
- the referenceDataUnit to set
-
toString
-
compareTo
- Overrides:
compareTo
in classPamDataUnit
-