Package Acquisition

Class AcquisitionParameters

java.lang.Object
Acquisition.AcquisitionParameters
All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters

public class AcquisitionParameters extends Object implements Serializable, Cloneable, ManagedParameters
See Also:
  • Field Details

    • sampleRate

      public float sampleRate
    • nChannels

      public int nChannels
    • voltsPeak2Peak

      public double voltsPeak2Peak
    • preamplifier

      public Preamplifier preamplifier
    • subtractDC

      public boolean subtractDC
    • dcTimeConstant

      public double dcTimeConstant
  • Constructor Details

    • AcquisitionParameters

      public AcquisitionParameters()
  • Method Details

    • clone

      public AcquisitionParameters clone()
    • getDaqSystemType

      public String getDaqSystemType()
    • setDaqSystemType

      public void setDaqSystemType(String daqSystemType)
    • getHydrophoneList

      public int[] getHydrophoneList()
      Gets a list of hydrophones from channel Indexes (not channel numbers)
      Returns:
      list of hydrophones.
    • setHydrophoneList

      public void setHydrophoneList(int[] hydrophoneList)
      Set a hydrophone list.
      Parameters:
      hydrophoneList -
    • getHydrophone

      public int getHydrophone(int channel)
      Gets a hydrophone number from a channel number (not channel index)
      Parameters:
      channel - software channel number
      Returns:
      a specific hydrophone number from the selected array
    • getNChannels

      public int getNChannels()
    • setNChannels

      public void setNChannels(int channels)
    • getNChannelList

      public int[] getNChannelList()
    • getPreamplifier

      public Preamplifier getPreamplifier()
    • setPreamplifier

      public void setPreamplifier(Preamplifier preamplifier)
    • getSampleRate

      public float getSampleRate()
    • setSampleRate

      public void setSampleRate(float sampleRate)
    • getVoltsPeak2Peak

      public double getVoltsPeak2Peak()
    • setVoltsPeak2Peak

      public void setVoltsPeak2Peak(double voltsPeak2Peak)
    • getHardwareChannelList

      public int[] getHardwareChannelList()
      Gets / creates a list of hardware channels used.

      i.e. converts from channel indexes to channel numbers.

      Returns:
      List of channel numbers
    • setChannelList

      public void setChannelList(int[] channelList)
    • setChannelList

      public void setChannelList(int index, int channelNumber)
    • setDefaultChannelList

      public void setDefaultChannelList()
      Creates a default channel list 0,1,2,3,4 etc.
    • getChannelList

      public int getChannelList(int index)
      Gets the channel number for a particular channel index.
      Parameters:
      index - channel index
      Returns:
      channel number
    • getChannelListIndexes

      public int[] getChannelListIndexes()
      Gets the complete list of channel indexes.
      Returns:
      list of channel indexes.
    • setChannelListIndexes

      public void setChannelListIndexes(int[] channelListIndexes)
      Sets the channel list indeces
      Parameters:
      channelListIndexes -
    • getChannelListIndexes

      public int getChannelListIndexes(int channel)
      Gets the channel index for a particular hardware channel
      Parameters:
      channel -
      Returns:
      channel index or -1 if it doesn't exist.
    • getPpsParameters

      public PPSParameters getPpsParameters()
      Returns:
      the ppsParameters
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.