public class NeutralLoss extends ExperimentObject
Modifier and Type | Field and Description |
---|---|
static NeutralLoss |
C3H9N
C3H9N loss.
|
static NeutralLoss |
CH4OS
CH4OS loss.
|
static NeutralLoss |
H2O
H2O loss.
|
static NeutralLoss |
H3PO4
H3PO4 loss.
|
static NeutralLoss |
HPO3
H3PO3 loss.
|
String |
name
The name of the neutral loss.
|
static NeutralLoss |
NH3
NH3 loss.
|
Constructor and Description |
---|
NeutralLoss(String name,
AtomChain composition,
boolean fixed)
Constructor for a user defined neutral loss.
|
NeutralLoss(String name,
AtomChain composition,
boolean fixed,
boolean save)
Constructor for a user defined neutral loss.
|
Modifier and Type | Method and Description |
---|---|
static void |
addNeutralLoss(NeutralLoss neutralLoss)
Adds a neutral loss to the class static map.
|
NeutralLoss |
clone() |
AtomChain |
getComposition()
The composition of the loss.
|
Double |
getMass()
Returns the mass of the neutral loss, from the atomic composition if
available, from the mass field otherwise.
|
static NeutralLoss |
getNeutralLoss(String name)
Returns the neutral loss associated to the given name in the static map
of the class.
|
boolean |
isFixed()
Returns a boolean indicating whether the neutral loss is fixed or not.
|
boolean |
isSameAs(NeutralLoss anotherNeutralLoss)
Method indicating whether another neutral loss is the same as the one
considered.
|
static void |
removeNeutralLoss(String name)
Removes the neutral loss associated to the given name in the static map
of the class.
|
void |
setComposition(AtomChain composition)
Sets the composition of the neutral loss.
|
void |
setFixed(boolean fixed)
Sets whether the loss is fixed or not.
|
addUrParam, getParameterKey, getUrParam
public static final NeutralLoss H2O
public static final NeutralLoss NH3
public static final NeutralLoss H3PO4
public static final NeutralLoss HPO3
public static final NeutralLoss CH4OS
public static final NeutralLoss C3H9N
public final String name
public NeutralLoss(String name, AtomChain composition, boolean fixed)
name
- name of the neutral losscomposition
- the atomic composition of the neutral lossfixed
- is the neutral loss fixed or notpublic NeutralLoss(String name, AtomChain composition, boolean fixed, boolean save)
name
- name of the neutral losscomposition
- the atomic composition of the neutral lossfixed
- is the neutral loss fixed or notsave
- if true, the neutral loss will be added to the factorypublic static void addNeutralLoss(NeutralLoss neutralLoss)
neutralLoss
- the neutral loss to addpublic static NeutralLoss getNeutralLoss(String name)
name
- the name of the neutral loss of interestpublic static void removeNeutralLoss(String name)
name
- the name of the neutral loss to removepublic boolean isFixed()
public void setFixed(boolean fixed)
fixed
- a boolean indicating whether the loss is fixed or notpublic AtomChain getComposition()
public void setComposition(AtomChain composition)
composition
- the composition of the neutral losspublic Double getMass()
public boolean isSameAs(NeutralLoss anotherNeutralLoss)
anotherNeutralLoss
- another neutral losspublic NeutralLoss clone()
Copyright © 2016. All rights reserved.