PamguardMVC
Class ChannelListManager

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

public abstract class ChannelListManager
extends java.lang.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 Summary
ChannelListManager()
           
 
Method Summary
 int channelIndexesToPhones(int channelIndexes)
          Convert a bitmap of channel indexes to a bitmap of phones
 int[] channelIndexesToPhones(int[] channelIndexes)
          Convert an array of channel indexes into an array of hydrophone numbers
abstract  int channelIndexToPhone(int channelIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelListManager

public ChannelListManager()
Method Detail

channelIndexToPhone

public abstract int channelIndexToPhone(int channelIndex)

channelIndexesToPhones

public int channelIndexesToPhones(int channelIndexes)
Convert a bitmap of channel indexes to a bitmap of phones

Parameters:
channelIndexes - channel Indexes
Returns:
phone numbers

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