Class BeamOGramDataBlock


public class BeamOGramDataBlock extends DataBlock2D<BeamOGramDataUnit>
  • Constructor Details

    • BeamOGramDataBlock

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

    • getNumAngles

      public int getNumAngles(int sequenceNumber)
      Returns:
      the numAngles
    • setNumAngles

      public void setNumAngles(int sequenceNumber, int numAngles)
      Parameters:
      numAngles - the numAngles to set
    • setHopSamples

      public void setHopSamples(int hopSamples)
      Parameters:
      hopSamples - the hopSamples to set
    • getHopSamples

      public int getHopSamples()
      Description copied from class: DataBlock2D
      Get the advance between slices in samples. For FFT data this is the same thing as the FFT Hop
      Specified by:
      getHopSamples in class DataBlock2D<BeamOGramDataUnit>
      Returns:
      advance in samples between slices.
    • getDataWidth

      public int getDataWidth(int sequenceNumber)
      Description copied from class: DataBlock2D
      Get the length of contained data. For FFT data this will be FFTLength()/2.
      Specified by:
      getDataWidth in class DataBlock2D<BeamOGramDataUnit>
      Returns:
      length of data in each slice.
    • getMinDataValue

      public double getMinDataValue()
      Description copied from class: DataBlock2D
      Get the minimum value which can occur in the data. e.g. 0 for FFT data.
      Specified by:
      getMinDataValue in class DataBlock2D<BeamOGramDataUnit>
      Returns:
      the data's minimum value
    • getMaxDataValue

      public double getMaxDataValue()
      Description copied from class: DataBlock2D
      Get the maximum value which can occur in the data. e.g. sampleRate/2 for FFT data.
      Specified by:
      getMaxDataValue in class DataBlock2D<BeamOGramDataUnit>
      Returns:
      the data's maximum value
    • getFftLength

      public int getFftLength()
      Need to know the FFT length of the source data so that the magnitude values in the data units can be correctly scaled.
      Returns:
      the fftLength
    • setFftLength

      public void setFftLength(int fftLength)
      Need to set the FFT length of the source data so that the magnitude values in the data units can be correctly scaled.
      Parameters:
      fftLength - the fftLength to set
    • getChannelsForSequenceMap

      public int getChannelsForSequenceMap(int sequenceMap)
      Description copied from class: PamDataBlock
      Given a sequenceMap, this method returns the associated channelMap. By default, this simply returns passed parameter. For the majority of the PamDataBlocks this is correct because there won't be a sequenceMap. This method should be used when the calling function is given a channel but it does not know whether that is truly a channel, or actually a sequence number. It can pass the channel to this method; if the PamDataBlock doesn't have sequence numbers then the number really was a channel and the calling function will get the same number returned.

      This method MUST BE OVERRIDDEN in any module that actually uses sequences (e.g. the Beamformer module) to properly map the sequenceMap to the channelMap.

      Overrides:
      getChannelsForSequenceMap in class PamDataBlock<BeamOGramDataUnit>
      Returns:
      the associated channelMap
    • shouldNotify

      public boolean shouldNotify()
      Overrides:
      shouldNotify in class PamDataBlock<BeamOGramDataUnit>
    • getScaleInfo

      public DataTypeInfo getScaleInfo()
      Description copied from class: DataBlock2D
      Get the scale units to display on axis, etc.
      Specified by:
      getScaleInfo in class DataBlock2D<BeamOGramDataUnit>
      Returns:
      data type information.