Interface TagComponent
- All Known Implementing Classes:
AminoAcidSequence
,MassGap
public interface TagComponent
Interface for a sequence tag component.
- Author:
- Marc Vaudel
-
Method Summary
Modifier and Type Method Description String
asSequence()
Returns the tag component as String like a peptide sequence.double
getMass()
Returns the mass of the tag component.boolean
isSameAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)
Indicates whether another component is the same as the component of interest.boolean
isSameSequenceAndModificationStatusAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)
Indicates whether another component is the same as the component of interest.
-
Method Details
-
asSequence
String asSequence()Returns the tag component as String like a peptide sequence. Note: this does not include modifications.- Returns:
- the tag component as String like a peptide sequence
-
getMass
double getMass()Returns the mass of the tag component.- Returns:
- the mass of the tag component
-
isSameAs
boolean isSameAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)Indicates whether another component is the same as the component of interest.- 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
boolean isSameSequenceAndModificationStatusAs(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)Indicates whether another component is the same as the component of interest.- Parameters:
anotherCompontent
- another componentsequenceMatchingPreferences
- the sequence matching preferences- Returns:
- a boolean indicating whether the other component is the same as the one of interest
-