public class GlycanFragAnnotation extends Object implements PeakAnnotation
| Modifier and Type | Class and Description |
|---|---|
static class |
GlycanFragAnnotation.FragBuilder
GlycanFragAnnotation Builder
|
| Modifier and Type | Field and Description |
|---|---|
static Composition |
EMPTY_COMPOSITION |
| Constructor and Description |
|---|
GlycanFragAnnotation(GlycanFragAnnotation src)
Copy constructor
|
GlycanFragAnnotation(int charge,
GlycanFragment fragment)
Construct a GlycanFragAnnotation
|
GlycanFragAnnotation(int charge,
GlycanFragment fragment,
Composition isotopeComposition,
Mass neutralLoss) |
| Modifier and Type | Method and Description |
|---|---|
double |
calcTheoreticalMz()
Returns the theoretical m/z for this annotation.
|
GlycanFragAnnotation |
copy()
Creates and returns a copy of this object.
|
boolean |
equals(Object o) |
int |
getCharge()
Return the charge for this annotation.
|
GlycanFragment |
getFragment()
Return the glycan fragment associated with this annotation
|
Composition |
getIsotopeComposition()
Return the Composition that contains the isotopes.
|
int |
getIsotopeCount()
Return the number of isotopes
|
Mass |
getNeutralLoss()
Return the mass shift that is associated with this annotation
|
int |
hashCode() |
boolean |
hasNeutralLoss()
Returns true if this annotation annotates a peak with a neutral loss, false otherwise
|
public static final Composition EMPTY_COMPOSITION
public GlycanFragAnnotation(int charge,
GlycanFragment fragment)
charge - the charge of the fragment.fragment - the glycan fragment to be annotated.public GlycanFragAnnotation(int charge,
GlycanFragment fragment,
Composition isotopeComposition,
Mass neutralLoss)
public GlycanFragAnnotation(GlycanFragAnnotation src)
src - the GlycanFragAnnotation to copypublic boolean hasNeutralLoss()
public Mass getNeutralLoss()
public GlycanFragment getFragment()
public int getIsotopeCount()
public Composition getIsotopeComposition()
public int getCharge()
getCharge in interface PeakAnnotationpublic double calcTheoreticalMz()
public final GlycanFragAnnotation copy()
Copyablex, the expression:
will be true, and that the expression:x.copy() != x
will bex.copy().getClass() == x.getClass()
true, but these are not absolute requirements.
While it is typically the case that:
will bex.copy().equals(x)
true, this is not an absolute requirement.
copy in interface Copyable<PeakAnnotation>Copyright © 2016. All Rights Reserved.