Package PamguardMVC

Class ChannelListManager

java.lang.Object
PamguardMVC.ChannelListManager
Direct Known Subclasses:
DAQChannelListManager, DefaultChannelListManager, PatchPanelChannelList

public abstract class ChannelListManager extends Object
Functions to convert between

Channel lists - hardware channels which may not start at zero

Channel indexes - software lists which are always 0,1,2, etc.

Hydrophone numbers which are always 0,1,2, etc.

Author:
Doug
  • Constructor Details

    • ChannelListManager

      public ChannelListManager()
  • Method Details

    • channelIndexToPhone

      public abstract int channelIndexToPhone(int channelIndex)
      Convert a channel index to a hydrophone number
      Parameters:
      channelIndex - channel Index, 0 - 31
      Returns:
      HydrophoneNumber
    • channelIndexesToPhones

      public int channelIndexesToPhones(int channelIndexes)
      Convert a bitmap of channel indexes to a bitmap of phones
      Parameters:
      channelIndexes - channel Indexes
      Returns:
      phone numbers
    • channelMapToPhonesList

      public int[] channelMapToPhonesList(int channelBitmap)
      Convert a channel map to a list of hydrophones. Note that phones may not be 1:1 with channels, so while a channelBitmap of 3 would normally return {0,1}, if the hydrophones are remapped in the array manager, then it might return {1,0}.
      Parameters:
      channelBitmap -
      Returns:
    • channelIndexesToPhones

      public int[] channelIndexesToPhones(int[] channelIndexes)
      Convert an array of channel indexes into an array of hydrophone numbers
      Parameters:
      channelNumbers - channel Numbers
      Returns:
      hydrophone numbers