public class FreqTableList
extends java.lang.Object
Constructor and Description |
---|
FreqTableList(long table,
long mask)
Creates an instance of the FreqTableList class.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the number of channels stored in the FreqTableList instance.
|
java.lang.String |
getFreqName(int index)
FreqTableList Returns the frequency value obtained by converting the channel stored in the instance into Unit units.
|
java.lang.String[] |
getFreqNames()
FreqTableList Returns the frequency value obtained by converting the channel of all channel information stored in the instance into Unit unit.
|
int |
getFrequency(int index)
Returns the frequency value of the channel stored in the FreqTableList instance.
|
int |
getSlot(int index)
Returns the slot of the channel stored in the FreqTableList instance.
|
long |
getTable()
Returns whether to use frequency channel in bit wise form.
|
boolean |
isUsed(int index)
Returns whether the frequency channel stored in the FreqTableList instance is used.
|
void |
setFrequency(int index,
int freq)
Sets the frequency value of the channel stored in the FreqTableList instance.
|
void |
setUsed(int index,
boolean used)
Sets whether to use the frequency channel stored in the FreqTableList instance.
|
void |
sort()
FreqTableList Arrange the frequency channel information stored in the instance based on the frequency value.
|
java.lang.String |
toString() |
public FreqTableList(long table, long mask)
table
- It is an long type of bit wise type indicating whether or not to use frequency channel.mask
- An long type of bit wise type indicating the frequency channel used.public int getCount()
public int getSlot(int index)
index
- Integer representing the radix of channel information. This value must be less than the return value of the getCount methodpublic int getFrequency(int index)
index
- Integer representing the radix of channel information. This value must be less than the return value of the getCount methodpublic java.lang.String getFreqName(int index)
index
- Integer representing the radix of channel information. This value must be less than the return value of the getCount methodpublic java.lang.String[] getFreqNames()
public void setFrequency(int index, int freq)
index
- Integer representing the radix of channel information. This value must be less than the return value of the getCount methodfreq
- An integer representing the channel frequency.public boolean isUsed(int index)
index
- Integer representing the radix of channel information. This value must be less than the return value of the getCount methodpublic void setUsed(int index, boolean used)
index
- Integer representing the radix of channel information. This value must be less than the return value of the getCount methodused
- A boolean indicating whether a frequency channel is used.public long getTable()
public void sort()
public java.lang.String toString()
toString
in class java.lang.Object