Package Acquisition

Class DaqStatusDataUnit

java.lang.Object
PamguardMVC.PamDataUnit
Acquisition.DaqStatusDataUnit
All Implemented Interfaces:
Comparable

public class DaqStatusDataUnit extends PamDataUnit
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 Details

    • sampleRate

      public int sampleRate
    • trueSampleRate

      public Double 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

      public String getSystemName()
      Returns:
      the systemName
    • setSystemName

      public void setSystemName(String systemName)
      Parameters:
      systemName - the systemName to set
    • calculateTrueSampleRate

      public Double calculateTrueSampleRate(DaqStatusDataUnit previousUnit)
    • getSummaryString

      public String 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 class PamDataUnit
      Returns:
      summary string
    • getSamples

      public long getSamples()
      Returns:
      the samples
    • getGpsPPSMilliseconds

      public Long getGpsPPSMilliseconds()
      Returns:
      the gpsPPSMilliseconds
    • getReason

      public String getReason()
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status, String reason)
    • getDaqSystemType

      public String getDaqSystemType()
    • setDaqSystemType

      public void setDaqSystemType(String daqSystemType)
    • getNChannels

      public int getNChannels()
    • getSampleRate

      public int getSampleRate()
    • getVoltsPeak2Peak

      public double getVoltsPeak2Peak()
    • getDuration

      public double getDuration()
    • getAdcMilliseconds

      public long getAdcMilliseconds()
      Returns:
      the adcMilliseconds
    • getTrueSampleRate

      public Double getTrueSampleRate()
      Get the true sample rate which is calculated from successive arrivals of DAQ data units
      Returns:
      the trueSampleRate
    • setServerTime

      public void setServerTime(Long serverTime)
    • getServerTime

      public Long getServerTime()
    • getDaqParameters

      public AcquisitionParameters getDaqParameters()
      Returns:
      the daqParameters
    • getRawADCMillis

      public long getRawADCMillis()
      Returns:
      the rawADCMillis