public abstract class AbstractProductIon extends DefaultPeptideIon implements ProductIon, Comparable<ProductIon>
ProductIon
interface. This class implements Comparable interface, which
can be storage into sorted collections based on cleavage position ascending order. This class Extends
DefaultPeptideIon
which inherit peptide ion methods: such as
DefaultPeptideIon.getMass()
,
DefaultPeptideIon.getMassOverCharge()
, and so on.Constructor and Description |
---|
AbstractProductIon(PrecursorIon precursorIon,
ProductIonType type,
int position,
Peptide peptide,
int charge)
Create product ion instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ProductIon o)
Based on ascending order of product ion cleavage position.
|
double |
getMass() |
int |
getPosition() |
PrecursorIon |
getPrecursorIon() |
ProductIonType |
getType() |
equals, getCharge, getMassOverCharge, getPeptide, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCharge
getMassOverCharge, getPeptide
public AbstractProductIon(PrecursorIon precursorIon, ProductIonType type, int position, Peptide peptide, int charge)
PrecursorIon
,
ProductIonType
, cleavage position, and the ProductIon
.
Notice: Not suggest user to create a instance by calling construct method directly.
ReferenceAbstractPrecursorIon.getProductIon(uk.ac.ebi.pride.utilities.mol.ProductIonType, int, int)
see how to generate the product ion.precursorIon
- should not set null! Otherwise throw NullPointerException.type
- should not set null! Otherwise throw NullPointerException.position
- from [1..precursor.peptide.length-1]peptide
- product ion peptide. should not set null! Otherwise throw NullPointerException.charge
- from [1..3], should not great than precursor ion charges.public ProductIonType getType()
getType
in interface ProductIon
ProductIonType
public PrecursorIon getPrecursorIon()
getPrecursorIon
in interface ProductIon
PrecursorIon
public int getPosition()
getPosition
in interface ProductIon
public int compareTo(ProductIon o)
compareTo
in interface Comparable<ProductIon>
public double getMass()
getMass
in interface PeptideIon
getMass
in class DefaultPeptideIon
Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.