PamView
Class GroupedSourceParameters

java.lang.Object
  extended by PamView.GroupedSourceParameters
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
WhistleToneParameters

public abstract class GroupedSourceParameters
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Specific parameters which always to with a GroupedSourcePanel

Author:
Doug Gillespie
See Also:
Serialized Form

Field Summary
private  int channelBitmap
          Bitmap of all channels used
private  int[] channelGroups
          integer list of which group each channel belongs to
private  java.lang.String dataSource
          Name of data source
private  int groupingType
          Grouping selection
static long serialVersionUID
           
 
Constructor Summary
GroupedSourceParameters()
           
 
Method Summary
protected  GroupedSourceParameters clone()
           
 int countChannelGroups()
          Get the total number of channel groups
 int getChannelBitmap()
           
 int[] getChannelGroups()
           
 java.lang.String getDataSource()
           
 int getGroupChannels(int iGroup)
          Get the specific channels associated with a particular group.
 int getGroupingType()
           
 boolean mayHaveBearings()
           
 boolean mayHaveRange()
           
 void setChannelBitmap(int channelBitmap)
           
 void setChannelGroups(int[] channelGroups)
           
 void setDataSource(java.lang.String dataSource)
           
 void setGroupingType(int groupingType)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

dataSource

private java.lang.String dataSource
Name of data source


channelBitmap

private int channelBitmap
Bitmap of all channels used


channelGroups

private int[] channelGroups
integer list of which group each channel belongs to


groupingType

private int groupingType
Grouping selection

Constructor Detail

GroupedSourceParameters

public GroupedSourceParameters()
Method Detail

countChannelGroups

public int countChannelGroups()
Get the total number of channel groups

Returns:
number of groups

getGroupChannels

public int getGroupChannels(int iGroup)
Get the specific channels associated with a particular group.

Parameters:
iGroup - group index (0, 1, 2, 3 whatever the actual group numbers are !)
Returns:
bitmap of group channels

getDataSource

public java.lang.String getDataSource()
Returns:
the dataSource

setDataSource

public void setDataSource(java.lang.String dataSource)
Parameters:
dataSource - the dataSource to set

getChannelBitmap

public int getChannelBitmap()
Returns:
the channelBitmap

setChannelBitmap

public void setChannelBitmap(int channelBitmap)
Parameters:
channelBitmap - the channelBitmap to set

getChannelGroups

public int[] getChannelGroups()
Returns:
the channelGroups

setChannelGroups

public void setChannelGroups(int[] channelGroups)
Parameters:
channelGroups - the channelGroups to set

getGroupingType

public int getGroupingType()
Returns:
the groupingType

setGroupingType

public void setGroupingType(int groupingType)
Parameters:
groupingType - the groupingType to set

mayHaveBearings

public boolean mayHaveBearings()
Returns:
true if at least one group has multiple elements, so might be able to calculate bearings.

mayHaveRange

public boolean mayHaveRange()
Returns:
true if mayHaveBearings is true and if there is more than one group

clone

protected GroupedSourceParameters clone()
Overrides:
clone in class java.lang.Object