Package qa
Class QASoundDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
PamguardMVC.superdet.SuperDetection
qa.QADataUnit
qa.QASoundDataUnit
- All Implemented Interfaces:
 Comparable,AcousticDataUnit
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class PamguardMVC.PamDataUnit
absBlockIndex, localisation - 
Constructor Summary
ConstructorsConstructorDescriptionQASoundDataUnit(SoundSequence soundSequence, SequenceData sequenceData, long timeMilliseconds, int channelBitmap, long startSample, QASound qaSound, double receivedLevel)  - 
Method Summary
Modifier and TypeMethodDescriptionlonglongintgetDetectorHit(PamDataBlock dataBlock) Get whether or not this simulated data has been detected by a particular detector.longlongget the last sample number in the data unitintintdoubleintgetState()voidsetArrivalEndMillis(long arrivalEndMillis) voidsetArrivalMillis(long arrivalStartMillis, long arrivalEndMillis) voidsetArrivalStartMillis(long arrivalStartMillis) booleansetDetectorHit(PamDataBlock dataBlock, int channelMap) Set 'hit' status for a detector.booleansetDetectorHit(PamDataBlock dataBlock, PamDataUnit detection) Set 'hit' status for a detector.voidsetDistanceToAirgun(Double distanceToAirgun) voidsetDistanceToHydrophone(Double distanceToHydrophone) voidsetMultiPath(int multiPath) voidsetState(int state) toString()Methods inherited from class qa.QADataUnit
getQaOpsDataUnit, setQaOpsDataUnitMethods 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, sortSubDetectionsMethods 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, getGpsPosition, 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:PamDataUnitget the last sample number in the data unit- Overrides:
 getLastSamplein 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
 
 -