java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.identification.amino_acid_tags.MassGap
All Implemented Interfaces:
TagComponent, Serializable

public class MassGap
extends ExperimentObject
implements TagComponent
An undefined mass gap.
Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form
  • 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

      public String asSequence()
      Description copied from interface: TagComponent
      Returns the tag component as String like a peptide sequence. Note: this does not include modifications.
      Specified by:
      asSequence in interface TagComponent
      Returns:
      the tag component as String like a peptide sequence
    • getMass

      public double getMass()
      Description copied from interface: TagComponent
      Returns the mass of the tag component.
      Specified by:
      getMass in interface TagComponent
      Returns:
      the mass of the tag component
    • isSameAs

      public boolean isSameAs​(TagComponent anotherCompontent, SequenceMatchingParameters sequenceMatchingPreferences)
      Description copied from interface: TagComponent
      Indicates whether another component is the same as the component of interest.
      Specified by:
      isSameAs in interface TagComponent
      Parameters:
      anotherCompontent - another component
      sequenceMatchingPreferences - 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: TagComponent
      Indicates whether another component is the same as the component of interest.
      Specified by:
      isSameSequenceAndModificationStatusAs in interface TagComponent
      Parameters:
      anotherCompontent - another component
      sequenceMatchingPreferences - the sequence matching preferences
      Returns:
      a boolean indicating whether the other component is the same as the one of interest