Package org.openscience.cdk.formula
Class IsotopePattern
java.lang.Object
org.openscience.cdk.formula.IsotopePattern
This class defines the properties of a deisotoped
pattern distribution. A isotope pattern is a set of
compounds with different set of isotopes.
- Author:
- Miguel Rojas Cherto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIsotope(IsotopeContainer isoContainer) Add an isotope object.clone()Clones this IsotopePattern object and its content.doubleGet the charge in this pattern.getIsotope(int position) Returns the a isotopes given a specific position.Returns the all isotopes that form this isotope pattern.Returns the mono-isotope peak that form this isotope pattern.intReturns the number of isotopes in this pattern.voidsetCharge(double charge) Set the charge in this pattern.voidsetMonoIsotope(IsotopeContainer isoContainer) Set the mono isotope object.
-
Constructor Details
-
IsotopePattern
public IsotopePattern()Constructor of the IsotopePattern object.
-
-
Method Details
-
setMonoIsotope
Set the mono isotope object. Adds the isoContainer to the isotope pattern, if it is not already added.- Parameters:
isoContainer- The IsotopeContainer object
-
addIsotope
Add an isotope object.- Parameters:
isoContainer- The IsotopeContainer object
-
getMonoIsotope
Returns the mono-isotope peak that form this isotope pattern.- Returns:
- The IsotopeContainer acting as mono-isotope
-
getIsotopes
Returns the all isotopes that form this isotope pattern.- Returns:
- The IsotopeContainer acting as mono-isotope
-
getIsotope
Returns the a isotopes given a specific position.- Parameters:
position- position of the isotope to return- Returns:
- The isotope
-
getNumberOfIsotopes
public int getNumberOfIsotopes()Returns the number of isotopes in this pattern.- Returns:
- The number of isotopes
-
setCharge
public void setCharge(double charge) Set the charge in this pattern.- Parameters:
charge- The charge value
-
getCharge
public double getCharge()Get the charge in this pattern.- Returns:
- The charge value
-
clone
Clones this IsotopePattern object and its content.- Overrides:
clonein classObject- Returns:
- The cloned object
- Throws:
CloneNotSupportedException
-