|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.biology.Ion
com.compomics.util.experiment.biology.ions.ElementaryIon
public class ElementaryIon
This class represents an elementary ion
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.compomics.util.experiment.biology.Ion |
---|
Ion.IonType |
Field Summary | |
---|---|
static ElementaryIon |
proton
A proton |
static int |
PROTON
subtype int for a proton |
Fields inherited from class com.compomics.util.experiment.biology.Ion |
---|
theoreticMass, type |
Constructor Summary | |
---|---|
ElementaryIon(String name,
double theoreticMass,
int subType)
Constructor |
Method Summary | |
---|---|
String |
getName()
Returns the name of the ion. |
ArrayList<NeutralLoss> |
getNeutralLosses()
Returns the possible neutral losses of this ion type. |
static ArrayList<Integer> |
getPossibleSubtypes()
Returns an arraylist of possible subtypes |
CvTerm |
getPrideCvTerm()
Returns the pride cv term adapted to the fragment ion. |
int |
getSubType()
Returns the ion subtype. |
String |
getSubTypeAsString()
Returns the subtype as string. |
boolean |
isSameAs(Ion anotherIon)
Returns a boolean indicating whether the ion is the same as another ion. |
Methods inherited from class com.compomics.util.experiment.biology.Ion |
---|
getGenericIon, getGenericIon, getImplementedIonTypes, getNeutralLossesAsString, getNeutralLossesAsString, getPossibleSubtypes, getTheoreticMass, getType, getTypeAsString, getTypeAsString, setTheoreticMass |
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject |
---|
addUrParam, getParameterKey, getUrParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PROTON
public static final ElementaryIon proton
Constructor Detail |
---|
public ElementaryIon(String name, double theoreticMass, int subType)
name
- the name of the iontheoreticMass
- the theoretic mass of the ionsubType
- the subtype indexMethod Detail |
---|
public String getName()
Ion
getName
in class Ion
public CvTerm getPrideCvTerm()
Ion
getPrideCvTerm
in class Ion
public int getSubType()
Ion
getSubType
in class Ion
public String getSubTypeAsString()
Ion
getSubTypeAsString
in class Ion
public static ArrayList<Integer> getPossibleSubtypes()
public ArrayList<NeutralLoss> getNeutralLosses()
Ion
getNeutralLosses
in class Ion
public boolean isSameAs(Ion anotherIon)
Ion
isSameAs
in class Ion
anotherIon
- the other ion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |