Package beamformer
Class BeamFormerParams
java.lang.Object
beamformer.BeamFormerParams
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
- Direct Known Subclasses:
BFLocaliserParams
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlgorithmNames
(String name) void
clone()
int
Get the total number of channel groupsgetAlgorithmName
(int iGroup) Get the algorithm name for the n'th group.getAlgorithmParms
(int groupId, int groupChanMap, String algorithmName) Get a set of algorithm parameters for an algorithm of a specific name, a specific channel group and a specific channel mapint
Return the channel bitmap selected from the Source Pane.int[]
Returns the primary dataSource for the beam former.int
getGroupChannels
(int iGroup) Get the specific channels associated with a particular group.int
Get the auto-generated parameter set, and then add in the fields that are not included because they are not public and do not have getters.void
setAlgorithmParams
(String algorithmName, int groupId, int groupChanMap, BeamAlgorithmParams algorithmParams) Save a set of algorithm parameters for an algorithm of a specific name, a specific channel group and a specific channel mapvoid
setChannelBitmap
(int channelBitmap) void
setChannelGroups
(int[] channelGroups) void
setDataSource
(String dataSource) Set the data source.void
setGroupedSourceParameters
(GroupedSourceParameters groupedSourceParameters) void
setGroupingType
(int groupingType)
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
BeamFormerParams
public BeamFormerParams()Main constructor
-
-
Method Details
-
getAlgorithmName
Get the algorithm name for the n'th group. this is needed prior to calls to getalgorithmParams(...)- Parameters:
iGroup
- group index- Returns:
- algorithm name.
-
addAlgorithmNames
-
clearAlgorithmNames
public void clearAlgorithmNames() -
clone
-
getAlgorithmParms
Get a set of algorithm parameters for an algorithm of a specific name, a specific channel group and a specific channel map- Parameters:
groupId
- channel groupgroupChanMap
- the channel map of the groupalgorithmName
- algorithm name- Returns:
- algorithm params, or null
-
setAlgorithmParams
public void setAlgorithmParams(String algorithmName, int groupId, int groupChanMap, BeamAlgorithmParams algorithmParams) Save a set of algorithm parameters for an algorithm of a specific name, a specific channel group and a specific channel map- Parameters:
algorithmName
- algorithm namegroupId
- channel group numbergroupChanMap
- channel map of the groupalgorithmParams
- algorithm parameters.
-
getGroupedSourceParameters
- Returns:
- the groupedSourceParameters
-
setGroupedSourceParameters
- Parameters:
groupedSourceParameters
- the groupedSourceParameters to set
-
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
Returns the primary dataSource for the beam former. This can be either raw or fft data or possibly even a detector output or spectrogram mark. Note that the long datablock name is used here.- Returns:
- the data source
-
setDataSource
Set the data source. Note that this should be the long datablock name, not just the data name.- Parameters:
dataSource
- the dataSource to set
-
getChannelBitmap
public int getChannelBitmap()Return the channel bitmap selected from the Source Pane.- 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
-
getParameterSet
Get the auto-generated parameter set, and then add in the fields that are not included because they are not public and do not have getters. Note: for each field, we search the current class and (if that fails) the superclass. It's done this way because BeamFormerParams might be used directly (and thus the field would be found in the class) and it also might be used as a superclass to something else (e.g. BFLocaliserParams) in which case the field would only be found in the superclass.- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-