|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAcquisition.AcquisitionParameters
public class AcquisitionParameters
| Field Summary | |
|---|---|
private int[] |
channelList
List of channels data are acquired from (not necessarily 0,1,2, etc.) With NI boards, this has become a pain since if multiple boards are used, there may be repeats within this list. |
(package private) int[] |
channelListIndexes
list of indexes for each hardware channel in channelList (i.e. |
(package private) java.lang.String |
daqSystemType
|
private int[] |
hydrophoneList
Hydrophone list is a short list of length equal to the number of channels, so if your channel list does not start at zero, you have to first use the channelListIndexes before using this lookup table. |
int |
nChannels
|
Preamplifier |
preamplifier
|
float |
sampleRate
|
(package private) static long |
serialVersionUID
|
double |
voltsPeak2Peak
|
| Constructor Summary | |
|---|---|
AcquisitionParameters()
|
|
| Method Summary | |
|---|---|
protected AcquisitionParameters |
clone()
|
int |
getChannelList(int index)
Gets the channel number for a particular channel index. |
int[] |
getChannelListIndexes()
Gets the complete list of channel indexes. |
int |
getChannelListIndexes(int channel)
Gets the channel index for a particular hardware channel |
java.lang.String |
getDaqSystemType()
|
int[] |
getHardwareChannelList()
Gets / creates a list of hardware channels used. |
int |
getHydrophone(int channel)
Gets a hydrophone number from a channel number (not channel index) |
int[] |
getHydrophoneList()
Gets a list of hydrophones from channel Indexes (not channel numbers) |
int[] |
getNChannelList()
|
int |
getNChannels()
|
Preamplifier |
getPreamplifier()
|
float |
getSampleRate()
|
double |
getVoltsPeak2Peak()
|
void |
setChannelList(int[] channelList)
|
void |
setChannelList(int index,
int channelNumber)
|
void |
setChannelListIndexes(int[] channelListIndexes)
Sets the channel list indeces |
void |
setDaqSystemType(java.lang.String daqSystemType)
|
void |
setDefaultChannelList()
Creates a default channel list 0,1,2,3,4 etc. |
void |
setHydrophoneList(int[] hydrophoneList)
Set a hydrophone list. |
void |
setNChannels(int channels)
|
void |
setPreamplifier(Preamplifier preamplifier)
|
void |
setSampleRate(float sampleRate)
|
void |
setVoltsPeak2Peak(double voltsPeak2Peak)
|
private void |
sortChannelListIndexes()
Creates a set of easily accessible channel indexes which can be used to convert from channel numbers to channel index e.g. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
java.lang.String daqSystemType
public float sampleRate
public int nChannels
public double voltsPeak2Peak
private int[] channelList
public Preamplifier preamplifier
private int[] hydrophoneList
transient int[] channelListIndexes
| Constructor Detail |
|---|
public AcquisitionParameters()
| Method Detail |
|---|
protected AcquisitionParameters clone()
clone in class java.lang.Objectpublic java.lang.String getDaqSystemType()
public void setDaqSystemType(java.lang.String daqSystemType)
public int[] getHydrophoneList()
public void setHydrophoneList(int[] hydrophoneList)
hydrophoneList - public int getHydrophone(int channel)
channel - software channel number
public int getNChannels()
public void setNChannels(int channels)
public int[] getNChannelList()
public Preamplifier getPreamplifier()
public void setPreamplifier(Preamplifier preamplifier)
public float getSampleRate()
public void setSampleRate(float sampleRate)
public double getVoltsPeak2Peak()
public void setVoltsPeak2Peak(double voltsPeak2Peak)
public int[] getHardwareChannelList()
i.e. converts from channel indexes to channel numbers.
public void setChannelList(int[] channelList)
public void setChannelList(int index,
int channelNumber)
public void setDefaultChannelList()
public int getChannelList(int index)
index - channel index
public int[] getChannelListIndexes()
public void setChannelListIndexes(int[] channelListIndexes)
channelListIndexes - public int getChannelListIndexes(int channel)
channel -
private void sortChannelListIndexes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||