public class IsotopicDistributionSpectrum extends java.lang.Object implements SpectrumFile
| Constructor and Description |
|---|
IsotopicDistributionSpectrum() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Method that compares an IsotopicDistributionSpectrum
|
int |
getCharge()
Getter for the charge
|
java.lang.String |
getFilename()
Getter for the filename
|
double |
getHighestIntensity()
Method that find the intensity of the most intense peak
|
double |
getIntensity()
Getter for the precursor intensity (here always zero)
|
java.util.HashMap |
getPeaks()
Getter for the peaks
|
double |
getPrecursorMZ()
Getter for the precursor MZ
|
double |
getTotalIntensity()
Method calculates the total intensity of the peaks
|
void |
setCharge(int aCharge)
Setter for the charge
|
void |
setFilename(java.lang.String aFilename)
Setter for the filename
|
void |
setIntensity(double aIntensity)
Setter for the intensity.
|
void |
setPeaks(java.util.HashMap aPeaks)
Setter for the peaks
|
void |
setPrecursorMZ(double aPrecursorMZ)
Setter for the precursor MZ
|
void |
writeToFile(java.io.File aParentDir)
Method to write to a given file
|
void |
writeToStream(java.io.OutputStream aOut)
Method to write to a givern stream
|
public int getCharge()
getCharge in interface SpectrumFilepublic void setCharge(int aCharge)
setCharge in interface SpectrumFileaCharge - int with the charge of the precursor ion.public java.lang.String getFilename()
getFilename in interface SpectrumFilepublic void setFilename(java.lang.String aFilename)
setFilename in interface SpectrumFileaFilename - String with the filename for the file.public java.util.HashMap getPeaks()
getPeaks in interface SpectrumFilepublic void setPeaks(java.util.HashMap aPeaks)
setPeaks in interface SpectrumFileaPeaks - HashMap with Doubles as keys (the masses) and Doubles as values (the intensities).public double getPrecursorMZ()
getPrecursorMZ in interface SpectrumFilepublic void setPrecursorMZ(double aPrecursorMZ)
setPrecursorMZ in interface SpectrumFileaPrecursorMZ - double with the precursor M/Zpublic double getIntensity()
getIntensity in interface SpectrumFilepublic void setIntensity(double aIntensity)
setIntensity in interface SpectrumFileaIntensity - double with the intensity of the precursor ion.public double getTotalIntensity()
getTotalIntensity in interface SpectrumFilepublic double getHighestIntensity()
getHighestIntensity in interface SpectrumFilepublic void writeToStream(java.io.OutputStream aOut)
throws java.io.IOException
writeToStream in interface SpectrumFileaOut - OutputStream to write the file to. This Stream
will NOT be closed by this method.java.io.IOExceptionpublic void writeToFile(java.io.File aParentDir)
throws java.io.IOException
writeToFile in interface SpectrumFileaParentDir - File with the parent directory to put the file in.java.io.IOExceptionpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - Another IsotopicDistributionSpectrumCopyright © 2014. All Rights Reserved.