Class MassGap
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.identification.amino_acid_tags.MassGap
- All Implemented Interfaces:
TagComponent,Serializable
An undefined mass gap.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the tag component as String like a peptide sequence.doublegetMass()Returns the mass of the tag component.booleanisSameAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences) Indicates whether another component is the same as the component of interest.booleanisSameSequenceAndModificationStatusAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences) Indicates whether another component is the same as the component of interest.voidsetMass(double value) Sets the mass of the gap.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
MassGap
public MassGap()Empty default constructor. -
MassGap
public MassGap(double value) Constructor.- Parameters:
value- the value of the mass gap
-
-
Method Details
-
setMass
public void setMass(double value) Sets the mass of the gap.- Parameters:
value- the mass of the gap
-
asSequence
Description copied from interface:TagComponentReturns the tag component as String like a peptide sequence. Note: this does not include modifications.- Specified by:
asSequencein interfaceTagComponent- Returns:
- the tag component as String like a peptide sequence
-
getMass
public double getMass()Description copied from interface:TagComponentReturns the mass of the tag component.- Specified by:
getMassin interfaceTagComponent- Returns:
- the mass of the tag component
-
isSameAs
public boolean isSameAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences) Description copied from interface:TagComponentIndicates whether another component is the same as the component of interest.- Specified by:
isSameAsin interfaceTagComponent- Parameters:
anotherCompontent- another componentsequenceMatchingPreferences- the sequence matching preferences- Returns:
- a boolean indicating whether the other component is the same as the one of interest
-
isSameSequenceAndModificationStatusAs
public boolean isSameSequenceAndModificationStatusAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences) Description copied from interface:TagComponentIndicates whether another component is the same as the component of interest.- Specified by:
isSameSequenceAndModificationStatusAsin interfaceTagComponent- Parameters:
anotherCompontent- another componentsequenceMatchingPreferences- the sequence matching preferences- Returns:
- a boolean indicating whether the other component is the same as the one of interest
-