Package Acquisition
Class AcquisitionParameters
java.lang.Object
Acquisition.AcquisitionParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
public class AcquisitionParameters
extends Object
implements Serializable, Cloneable, ManagedParameters
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptiondouble
int
float
boolean
double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
int
getChannelList
(int index) Gets the channel number for a particular channel index.int[]
Gets the complete list of channel indexes.int
getChannelListIndexes
(int channel) Gets the channel index for a particular hardware channelint[]
Gets / creates a list of hardware channels used.int
getHydrophone
(int channel) Gets a hydrophone number from a channel number (not channel index)int[]
Gets a list of hydrophones from channel Indexes (not channel numbers)int[]
int
Get a set of data that describes all of the parameters in a classfloat
double
void
setChannelList
(int[] channelList) void
setChannelList
(int index, int channelNumber) void
setChannelListIndexes
(int[] channelListIndexes) Sets the channel list indecesvoid
setDaqSystemType
(String daqSystemType) void
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)
-
Field Details
-
sampleRate
public float sampleRate -
nChannels
public int nChannels -
voltsPeak2Peak
public double voltsPeak2Peak -
preamplifier
-
subtractDC
public boolean subtractDC -
dcTimeConstant
public double dcTimeConstant
-
-
Constructor Details
-
AcquisitionParameters
public AcquisitionParameters()
-
-
Method Details
-
clone
-
getDaqSystemType
-
setDaqSystemType
-
getHydrophoneList
public int[] getHydrophoneList()Gets a list of hydrophones from channel Indexes (not channel numbers)- Returns:
- list of hydrophones.
-
setHydrophoneList
public void setHydrophoneList(int[] hydrophoneList) Set a hydrophone list.- Parameters:
hydrophoneList
-
-
getHydrophone
public int getHydrophone(int channel) Gets a hydrophone number from a channel number (not channel index)- Parameters:
channel
- software channel number- Returns:
- a specific hydrophone number from the selected array
-
getNChannels
public int getNChannels() -
setNChannels
public void setNChannels(int channels) -
getNChannelList
public int[] getNChannelList() -
getPreamplifier
-
setPreamplifier
-
getSampleRate
public float getSampleRate() -
setSampleRate
public void setSampleRate(float sampleRate) -
getVoltsPeak2Peak
public double getVoltsPeak2Peak() -
setVoltsPeak2Peak
public void setVoltsPeak2Peak(double voltsPeak2Peak) -
getHardwareChannelList
public int[] getHardwareChannelList()Gets / creates a list of hardware channels used.i.e. converts from channel indexes to channel numbers.
- Returns:
- List of channel numbers
-
setChannelList
public void setChannelList(int[] channelList) -
setChannelList
public void setChannelList(int index, int channelNumber) -
setDefaultChannelList
public void setDefaultChannelList()Creates a default channel list 0,1,2,3,4 etc. -
getChannelList
public int getChannelList(int index) Gets the channel number for a particular channel index.- Parameters:
index
- channel index- Returns:
- channel number
-
getChannelListIndexes
public int[] getChannelListIndexes()Gets the complete list of channel indexes.- Returns:
- list of channel indexes.
-
setChannelListIndexes
public void setChannelListIndexes(int[] channelListIndexes) Sets the channel list indeces- Parameters:
channelListIndexes
-
-
getChannelListIndexes
public int getChannelListIndexes(int channel) Gets the channel index for a particular hardware channel- Parameters:
channel
-- Returns:
- channel index or -1 if it doesn't exist.
-
getPpsParameters
- Returns:
- the ppsParameters
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-