Class RWEDataBlock

All Implemented Interfaces:
GroupedDataSource

public class RWEDataBlock extends AbstractWhistleDataBlock<RWEDataUnit> implements GroupedDataSource
  • Constructor Details

  • Method Details

    • getFrequencyRange

      public double[] getFrequencyRange()
      Description copied from class: PamDataBlock
      Get the range of frequencies over which the data in the data block are likely to be present. Note that this is pretty crude and may not reflect the true range, for example, the click detector will return the limits of it's trigger filter, and there are plenty of sounds outside of that range which may have most of their energy well outside of the trigger range of the detector.
      Overrides:
      getFrequencyRange in class PamDataBlock<RWEDataUnit>
      Returns:
      Nominal frequency range for data in this block.
    • loadViewerData

      public boolean loadViewerData(long dataStart, long dataEnd, ViewLoadObserver loadObserver)
      Description copied from class: PamDataBlock
      Instruction from the viewer scroll manager to load new data.

      This just calls through to loadViewerData(OfflineDataLoadInfo ...) so this should not be overridden. Override the other function instead.

      Overrides:
      loadViewerData in class PamDataBlock<RWEDataUnit>
      Parameters:
      dataStart - data start time in millis
      dataEnd - data end time in millis.
      loadObserver - - the load obsever. Can be used as a callback for load progress.
    • loadViewerData

      public boolean loadViewerData(OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver)
      Description copied from class: PamDataBlock
      Instruction from the viewer scroll manager to load new data.
      Overrides:
      loadViewerData in class PamDataBlock<RWEDataUnit>
      Parameters:
      offlineDataLoadInfo - - the load object which contains all info on the data to be loaded.
      loadObserver - - the load observer. Can be used as a callback for load progress.
    • getGroupSourceParameters

      public GroupedSourceParameters getGroupSourceParameters()
      Specified by:
      getGroupSourceParameters in interface GroupedDataSource
      Returns:
      the current group source parameters for this data source.
    • getDataSelectCreator

      public DataSelectorCreator getDataSelectCreator()
      Overrides:
      getDataSelectCreator in class PamDataBlock<RWEDataUnit>
      Returns:
      an object that can create data selectors to sub select data from within this type of data block.
    • getDatablockSpeciesManager

      public DataBlockSpeciesManager<RWEDataUnit> 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<RWEDataUnit>
      Returns:
      Types of species information available within this datablock.
    • 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<RWEDataUnit>
      Returns:
      the tethysDataProvider
    • 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<RWEDataUnit>
      Returns:
      level of automation for this data block.