public class IsotopicDistributionSpectrum extends Object implements SpectrumFile
| Constructor and Description |
|---|
IsotopicDistributionSpectrum() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Method that compares an IsotopicDistributionSpectrum
|
int |
getCharge()
Getter for the charge
|
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)
|
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(String aFilename)
Setter for the filename
|
void |
setIntensity(double aIntensity)
Setter for the intensity.
|
void |
setPeaks(HashMap aPeaks)
Setter for the peaks
|
void |
setPrecursorMZ(double aPrecursorMZ)
Setter for the precursor MZ
|
void |
writeToFile(File aParentDir)
Method to write to a given file
|
void |
writeToStream(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 String getFilename()
getFilename in interface SpectrumFilepublic void setFilename(String aFilename)
setFilename in interface SpectrumFileaFilename - String with the filename for the file.public HashMap getPeaks()
getPeaks in interface SpectrumFilepublic void setPeaks(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(OutputStream aOut) throws IOException
writeToStream in interface SpectrumFileaOut - OutputStream to write the file to. This Stream
will NOT be closed by this method.IOExceptionpublic void writeToFile(File aParentDir) throws IOException
writeToFile in interface SpectrumFileaParentDir - File with the parent directory to put the file in.IOExceptionpublic int compareTo(Object o)
compareTo in interface Comparableo - Another IsotopicDistributionSpectrumCopyright © 2014. All rights reserved.