Package simulatedAcquisition
Class SimObjectDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
simulatedAcquisition.SimObjectDataUnit
- All Implemented Interfaces:
Comparable
SimObjectDataUnit is one per sound source, i.e. think
of one of these things as an animal. It may be handling
a list of several sounds.
- Author:
- doug
-
Field Summary
FieldsFields inherited from class PamguardMVC.PamDataUnit
absBlockIndex, localisation
-
Constructor Summary
ConstructorsConstructorDescriptionSimObjectDataUnit
(SimProcess simProcess, SimObject simObject, long firstSigTime) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearOldSounds
(long currentSample) protected void
double
protected void
void
resetSounds
(long timeInMillis) Called after the object has been moved with the mouse.void
setCurrentHeading
(PamVector currentHeading) void
setCurrentHeight
(double currentHeight) void
setCurrentPosition
(long timeMilliseconds, LatLong currentPosition, double currentHeight, PamVector currentHeading) void
setSimObject
(SimObject simObject) boolean
void
setSimSignal
(SimSignal simSignal) protected void
takeSignals
(double[] snip, int phone, long snipStartSample) Iterate through the current list of sounds and add their signals at the appropriate time within this data unit.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, getGpsPosition, 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
-
Constructor Details
-
Method Details
-
prepareSimulation
protected void prepareSimulation() -
clearSignals
protected void clearSignals() -
takeSignals
protected void takeSignals(double[] snip, int phone, long snipStartSample) Iterate through the current list of sounds and add their signals at the appropriate time within this data unit.- Parameters:
snip
- waveform data for a channel of this data unitphone
- hydrophone numbersnipStartSample
- start sample of the current data unit.
-
clearOldSounds
protected void clearOldSounds(long currentSample) -
getSimObject
-
setSimObject
-
getSimSignal
-
setSimSignal
-
setSimSignal
public boolean setSimSignal() -
getCurrentPosition
- Returns:
- the currentPosition
-
setCurrentPosition
public void setCurrentPosition(long timeMilliseconds, LatLong currentPosition, double currentHeight, PamVector currentHeading) - Parameters:
timeMilliseconds
-currentPosition
- the currentPosition to setcurrentHeight
-currentHeading
-
-
resetSounds
public void resetSounds(long timeInMillis) Called after the object has been moved with the mouse.- Parameters:
timeInMillis
-
-
getSimProcess
- Returns:
- the simProcess
-
getCurrentHeading
- Returns:
- the currentHeading
-
setCurrentHeading
- Parameters:
currentHeading
- the currentHeading to set
-
getCurrentHeight
public double getCurrentHeight()- Returns:
- the currentHeight
-
setCurrentHeight
public void setCurrentHeight(double currentHeight) - Parameters:
currentHeight
- the currentHeight to set
-