Package Acquisition
Class DaqStatusDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
Acquisition.DaqStatusDataUnit
- All Implemented Interfaces:
Comparable
Data unit containing information on run starts and stops.
The main purpose of producing these is so that they get picked up by the database and logged
- Author:
- Doug Gillespie
-
Field Summary
Modifier and TypeFieldDescriptiondouble
double
int
int
double
-
Constructor Summary
ConstructorDescriptionDaqStatusDataUnit
(long timeMilliseconds, long adcMilliseconds, long rawADCMillis, long samples, Long gpsPPSMillis, String status, String reason, AcquisitionParameters daqParameters, String systemName, double duration, double clockError) -
Method Summary
Modifier and TypeMethodDescriptioncalculateTrueSampleRate
(DaqStatusDataUnit previousUnit) long
double
int
long
int
long
Return an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.Get the true sample rate which is calculated from successive arrivals of DAQ data unitsdouble
void
setDaqSystemType
(String daqSystemType) void
setServerTime
(Long serverTime) void
void
setSystemName
(String systemName) 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
-
Field Details
-
sampleRate
public int sampleRate -
trueSampleRate
-
nChannels
public int nChannels -
voltsPeak2Peak
public double voltsPeak2Peak -
duration
public double duration -
clockError
public double clockError
-
-
Constructor Details
-
DaqStatusDataUnit
public DaqStatusDataUnit(long timeMilliseconds, long adcMilliseconds, long rawADCMillis, long samples, Long gpsPPSMillis, String status, String reason, AcquisitionParameters daqParameters, String systemName, double duration, double clockError)
-
-
Method Details
-
getSystemName
- Returns:
- the systemName
-
setSystemName
- Parameters:
systemName
- the systemName to set
-
calculateTrueSampleRate
-
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
-
getSamples
public long getSamples()- Returns:
- the samples
-
getGpsPPSMilliseconds
- Returns:
- the gpsPPSMilliseconds
-
getReason
-
getStatus
-
setStatus
-
getDaqSystemType
-
setDaqSystemType
-
getNChannels
public int getNChannels() -
getSampleRate
public int getSampleRate() -
getVoltsPeak2Peak
public double getVoltsPeak2Peak() -
getDuration
public double getDuration() -
getAdcMilliseconds
public long getAdcMilliseconds()- Returns:
- the adcMilliseconds
-
getTrueSampleRate
Get the true sample rate which is calculated from successive arrivals of DAQ data units- Returns:
- the trueSampleRate
-
setServerTime
-
getServerTime
-
getDaqParameters
- Returns:
- the daqParameters
-
getRawADCMillis
public long getRawADCMillis()- Returns:
- the rawADCMillis
-