Package qa
Class QASoundDataUnit
java.lang.Object
PamguardMVC.PamDataUnit<T,SuperDetection>
PamguardMVC.superdet.SuperDetection<T>
qa.QADataUnit
qa.QASoundDataUnit
- All Implemented Interfaces:
Comparable
,AcousticDataUnit
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionQASoundDataUnit
(SoundSequence soundSequence, SequenceData sequenceData, long timeMilliseconds, int channelBitmap, long startSample, QASound qaSound, double receivedLevel) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
int
getDetectorHit
(PamDataBlock dataBlock) Get whether or not this simulated data has been detected by a particular detector.long
long
get the last sample number in the data unitint
int
double
int
getState()
void
setArrivalEndMillis
(long arrivalEndMillis) void
setArrivalMillis
(long arrivalStartMillis, long arrivalEndMillis) void
setArrivalStartMillis
(long arrivalStartMillis) boolean
setDetectorHit
(PamDataBlock dataBlock, int channelMap) Set 'hit' status for a detector.boolean
setDetectorHit
(PamDataBlock dataBlock, PamDataUnit detection) Set 'hit' status for a detector.void
setDistanceToAirgun
(Double distanceToAirgun) void
setDistanceToHydrophone
(Double distanceToHydrophone) void
setMultiPath
(int multiPath) void
setState
(int state) toString()
Methods inherited from class qa.QADataUnit
getQaOpsDataUnit, setQaOpsDataUnit
Methods inherited from class PamguardMVC.superdet.SuperDetection
addSubDetection, addSubDetectionInfo, addSubDetections, clearSubDetectionData, clearSubDetectionObjects, clearSubdetectionsRemoved, findSubDetection, findSubDetection, findSubDetection, findSubdetectionInfo, findSubDetectionInfo, getLoadedSubDetectionsCount, getPresentSubDetections, getSubDetection, getSubdetectionInfo, getSubDetectionInfo, getSubDetections, getSubDetectionsCount, getSubdetectionsRemoved, getSubDetectionSyncronisation, isAllowSubdetectionSharing, removeAllSubDetections, removeSubDetection, replaceSubDetection, sortSubDetections
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, 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
-
SOUND_NOT_STARTED
public static final int SOUND_NOT_STARTED- See Also:
-
SOUND_GENERATING
public static final int SOUND_GENERATING- See Also:
-
SOUND_COMPLETE
public static final int SOUND_COMPLETE- See Also:
-
-
Constructor Details
-
QASoundDataUnit
public QASoundDataUnit(SoundSequence soundSequence, SequenceData sequenceData, long timeMilliseconds, int channelBitmap, long startSample, QASound qaSound, double receivedLevel)
-
-
Method Details
-
getStandardSound
- Returns:
- the standardSound
-
getState
public int getState()- Returns:
- the state
-
setState
public void setState(int state) - Parameters:
state
- the state to set
-
getMultiPath
public int getMultiPath()- Returns:
- the multiPath
-
setMultiPath
public void setMultiPath(int multiPath) - Parameters:
multiPath
- the multiPath to set
-
getFirstSample
public long getFirstSample()- Returns:
- the firstSample
-
getLastSample
public long getLastSample()Description copied from class:PamDataUnit
get the last sample number in the data unit- Overrides:
getLastSample
in classPamDataUnit
- Returns:
- the lastSample
-
setArrivalMillis
public void setArrivalMillis(long arrivalStartMillis, long arrivalEndMillis) -
getArrivalStartMillis
public long getArrivalStartMillis()- Returns:
- the arrivalStartMillis
-
setArrivalStartMillis
public void setArrivalStartMillis(long arrivalStartMillis) - Parameters:
arrivalStartMillis
- the arrivalStartMillis to set
-
getArrivalEndMillis
public long getArrivalEndMillis()- Returns:
- the arrivalEndMillis
-
setArrivalEndMillis
public void setArrivalEndMillis(long arrivalEndMillis) - Parameters:
arrivalEndMillis
- the arrivalEndMillis to set
-
setDetectorHit
Set 'hit' status for a detector.- Parameters:
dataBlock
- datablock containing the detectiondetection
- detection data unit.- Returns:
- true if the underlying data were updated. false if they remained the same.
-
setDetectorHit
Set 'hit' status for a detector.- Parameters:
dataBlock
- datablock containing the detectionchannelMap
- detection channel map.- Returns:
- true if the underlying data were updated. false if they remained the same.
-
getDetectorHit
Get whether or not this simulated data has been detected by a particular detector.- Parameters:
dataBlock
- datablock for the detector- Returns:
- 0 if no detection, otherwise the UID of the detection.
-
getNumDetectorHits
public int getNumDetectorHits() -
getSourceLatLong
- Returns:
- the latLong
-
getReferenceLatLong
- Returns:
- the referenceLatLong
-
getSoundSequence
- Returns:
- the soundSequence
-
getSequenceData
- Returns:
- the sequenceData
-
getReceivedLevel
public double getReceivedLevel()- Returns:
- the receivedLevel
-
getDistanceToAirgun
- Returns:
- the distanceToAirgun
-
setDistanceToAirgun
- Parameters:
distanceToAirgun
- the distanceToAirgun to set
-
getDistanceToHydrophone
- Returns:
- the distanceToHydrophone
-
setDistanceToHydrophone
- Parameters:
distanceToHydrophone
- the distanceToHydrophone to set
-
toString
-