peakml.io.dac
Class DAC

java.lang.Object
  extended by peakml.io.dac.DAC

public class DAC
extends java.lang.Object

Implementation of a 1-to-1 mapping of the Waters Datafile Access Component. This is a suite of Visual C++ Active Template Library (ATL) classes, allowing for relative easy access to MassLynx raw data files. This suite defines a number of classes to be used for data retrieval, which have been reproduced in this package (DACCalibrationInfo, DACExperimentInfo, DACExScanStats, DACFunctionInfo, DACHeader, DACProcessInfo, DACScanStats, DACSpectrum).

The setup is always that the open-function must be called, which accepts the filename as a parameter at a minimum (this means the file is opened at each access) and occasionally more. In order to track the ionisation mode and the data format (centroid or profile) the class DACExperimentInfo needs to be used. This class retrieves a free-text experiment information, which is interpreted.

This implementation utilizes the associated DLL with a JNI coupling in 'dac.dll'. This means that the MassLynx raw files are only accessible in the windows environment.


Field Summary
static int RTCODE_FILE_NOT_CLOSED
          Could not close the data file correctly after reading it.
static int RTCODE_FILE_NOT_FOUND
          Cannot find the data file specified.
static int RTCODE_INVALID_CHROMATOGRAM_TYPE
          An unrecognized chromatogram type was specified.
static int RTCODE_INVALID_PROCESS
          The specified process does not exist.
static int RTCODE_MISSING_DATA
          Part of the RAW file is missing, or the process specified does not exist (could be a process "greyed out" in the history list).
static int RTCODE_NO_HANDLE
          A handle cannot not be found for the data specified (check that the scan/process number combination is valid)
static int RTCODE_NOT_INITIALIZED
          The header was not open
static int RTCODE_OUT_OF_MEMORY
          Memory could not be allocated to the read the required data.
static int RTCODE_PARAMETER_OUT_OF_RANGE
          One of the function parameters is out of its permitted range.
static int RTCODE_SCANNUMBER_NOT_FOUND
          The requested scannumber cannot be found.
static int RTCODE_SUCCESS
          The function was completed successfully
 
Constructor Summary
DAC()
           
 
Method Summary
static void init()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RTCODE_SUCCESS

public static final int RTCODE_SUCCESS
The function was completed successfully

See Also:
Constant Field Values

RTCODE_NOT_INITIALIZED

public static final int RTCODE_NOT_INITIALIZED
The header was not open

See Also:
Constant Field Values

RTCODE_FILE_NOT_FOUND

public static final int RTCODE_FILE_NOT_FOUND
Cannot find the data file specified.

See Also:
Constant Field Values

RTCODE_MISSING_DATA

public static final int RTCODE_MISSING_DATA
Part of the RAW file is missing, or the process specified does not exist (could be a process "greyed out" in the history list).

See Also:
Constant Field Values

RTCODE_NO_HANDLE

public static final int RTCODE_NO_HANDLE
A handle cannot not be found for the data specified (check that the scan/process number combination is valid)

See Also:
Constant Field Values

RTCODE_SCANNUMBER_NOT_FOUND

public static final int RTCODE_SCANNUMBER_NOT_FOUND
The requested scannumber cannot be found.

See Also:
Constant Field Values

RTCODE_FILE_NOT_CLOSED

public static final int RTCODE_FILE_NOT_CLOSED
Could not close the data file correctly after reading it.

See Also:
Constant Field Values

RTCODE_PARAMETER_OUT_OF_RANGE

public static final int RTCODE_PARAMETER_OUT_OF_RANGE
One of the function parameters is out of its permitted range.

See Also:
Constant Field Values

RTCODE_OUT_OF_MEMORY

public static final int RTCODE_OUT_OF_MEMORY
Memory could not be allocated to the read the required data.

See Also:
Constant Field Values

RTCODE_INVALID_CHROMATOGRAM_TYPE

public static final int RTCODE_INVALID_CHROMATOGRAM_TYPE
An unrecognized chromatogram type was specified.

See Also:
Constant Field Values

RTCODE_INVALID_PROCESS

public static final int RTCODE_INVALID_PROCESS
The specified process does not exist.

See Also:
Constant Field Values
Constructor Detail

DAC

public DAC()
Method Detail

init

public static void init()
                 throws java.io.IOException
Throws:
java.io.IOException