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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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 String name
public 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 lossCopyright © 2015. All rights reserved.