Package noiseMonitor

Class NoiseDataBlock

All Implemented Interfaces:
AlarmDataSource

public class NoiseDataBlock extends PamDataBlock<NoiseDataUnit> implements AlarmDataSource
  • Field Details

  • Constructor Details

    • NoiseDataBlock

      public NoiseDataBlock(String dataName, PamProcess parentProcess, int channelMap)
  • Method Details

    • masterClockUpdate

      public void masterClockUpdate(long milliSeconds, long clockSample)
      Overrides:
      masterClockUpdate in class PamDataBlock<NoiseDataUnit>
    • setStatisticTypes

      public void setStatisticTypes(int measureTypes)
      Parameters:
      measureTypes - the measureTypes to set
    • getStatisticTypes

      public int getStatisticTypes()
      Returns:
      the measureTypes
    • getNumUsedStats

      public int getNumUsedStats()
    • getMeasureName

      public static String getMeasureName(int measureType)
    • getUsedMeasureNames

      public String[] getUsedMeasureNames()
    • getNumMeasurementBands

      public int getNumMeasurementBands()
    • getBandLoEdges

      public double[] getBandLoEdges()
    • setBandLoEdges

      public void setBandLoEdges(double[] bandLoEdges)
    • getBandHiEdges

      public double[] getBandHiEdges()
    • setBandHiEdges

      public void setBandHiEdges(double[] bandHiEdges)
    • getLowestFrequency

      public double getLowestFrequency()
    • getLowestFrequency10

      public double getLowestFrequency10()
    • getHighestFrequency

      public double getHighestFrequency()
    • getHighestFrequency10

      public double getHighestFrequency10()
    • getColumnNames

      public String[] getColumnNames()
    • createDBColumnName

      public String createDBColumnName(int iBand, int iMeasure)
    • getDefaultBandName

      public String getDefaultBandName(int iBand)
    • getBandNames

      public String[] getBandNames()
    • setBandNames

      public void setBandNames(String[] bandNames)
    • getBandLongNames

      public String[] getBandLongNames()
    • setBandLongNames

      public void setBandLongNames(String[] bandLongNames)
    • getBandName

      public String getBandName(int iBand)
    • getBandLongName

      public String getBandLongName(int iBand)
    • statIndexToBit

      public int statIndexToBit(int statIndex)
      Get the bitmap for the ith statistic.
      Parameters:
      statIndex -
      Returns:
    • getAlarmCounterProvider

      public AlarmCounterProvider getAlarmCounterProvider()
      Description copied from interface: AlarmDataSource
      Get an alarmCounterProvider which can then generate any number of alarm counters for a datablock.
      Specified by:
      getAlarmCounterProvider in interface AlarmDataSource
      Returns:
      alarm Counter provider for that control. This more complicated system enables multiple alarms to be hung off the same data block.
    • getDataAutomationInfo

      public DataAutomationInfo getDataAutomationInfo()
      Description copied from class: PamDataBlock
      Get the level of automation employed by the generation of these data. Should ideally be completed for everything providing data to Tethys.
      Overrides:
      getDataAutomationInfo in class PamDataBlock<NoiseDataUnit>
      Returns:
      level of automation for this data block.
    • getTethysDataProvider

      public TethysDataProvider getTethysDataProvider(TethysControl tethysControl)
      Description copied from class: PamDataBlock
      Gets a data provider for Tethys. These will probably need to be bespoke, but for now will autogenerate based on the SQLLogging information.
      Overrides:
      getTethysDataProvider in class PamDataBlock<NoiseDataUnit>
      Returns:
      the tethysDataProvider
    • getDatablockSpeciesManager

      public DataBlockSpeciesManager<NoiseDataUnit> getDatablockSpeciesManager()
      Description copied from class: PamDataBlock
      Get information about species types that may occur within this data block. Primarily for conversion into Tethys compatible data, but may prove to have other uses.
      Overrides:
      getDatablockSpeciesManager in class PamDataBlock<NoiseDataUnit>
      Returns:
      Types of species information available within this datablock.