public abstract class Atom extends ExperimentObject
Modifier and Type | Field and Description |
---|---|
static Atom |
C
A carbon atom.
|
static Atom |
H
A hydrogen atom.
|
protected HashMap<Integer,Double> |
isotopeMap
Map of the isotope masses relative to the monoisotopic peak (+1 for
carbon 13).
|
protected String |
letter
The single letter code of the atom.
|
static Atom |
N
A nitrogen atom.
|
protected String |
name
The name of the atom.
|
static Atom |
O
An oxygen atom.
|
static Atom |
P
A phosphorys atom.
|
protected HashMap<Integer,Double> |
representativeComposition
Map of the isotope representative composition of the stable isotopes.
|
static Atom |
S
A sulfur atom.
|
Constructor and Description |
---|
Atom() |
Modifier and Type | Method and Description |
---|---|
Double |
getDifferenceToMonoisotopic(int isotopeNumber)
Returns the mass difference between the given isotope and the
monoisotopic mass.
|
ArrayList<Integer> |
getImplementedIsotopes()
returns a list of isotopes for which a mass is available relative to the
monoisotopic peak (+1 for carbon 13).
|
Double |
getIsotopeMass(int isotopeNumber)
Returns the mass corresponding to the given isotope number.
|
String |
getLetter()
Returns the single letter code of the atom.
|
Double |
getMonoisotopicMass()
Returns the monoisotopic mass.
|
String |
getName()
Returns the name of the atom.
|
addUrParam, getParameterKey, getUrParam
public static final Atom H
public static final Atom N
public static final Atom O
public static final Atom C
public static final Atom S
public static final Atom P
protected HashMap<Integer,Double> isotopeMap
protected HashMap<Integer,Double> representativeComposition
protected String name
protected String letter
public Double getMonoisotopicMass()
public String getName()
public String getLetter()
public ArrayList<Integer> getImplementedIsotopes()
public Double getIsotopeMass(int isotopeNumber)
isotopeNumber
- the isotope number of interest relative to the
monoisotopic peak (+1 for carbon 13).public Double getDifferenceToMonoisotopic(int isotopeNumber)
isotopeNumber
- the isotope number relative to the monoisotopic peak
(+1 for carbon 13)Copyright © 2014. All rights reserved.