Interface Sequence

All Known Implementing Classes:
AASequenceImpl, NucleotideSequenceImpl

public interface Sequence
This interface defines the default behavior of any kind of sequence with a certain mass - be it DNA, protein or something else.
Author:
Lennart Martens
  • Method Summary

    Modifier and Type Method Description
    int getLength()
    This method reports on the length of the current sequence.
    double getMass()
    This method will return the mass for the sequence.
    String getSequence()
    This method will retrieve the sequence.
    void setSequence​(String aSequence)
    This method will set the sequence.
  • Method Details

    • setSequence

      void setSequence​(String aSequence)
      This method will set the sequence.
      Note that most implementations will also allow you to set this via the constructor.
      Parameters:
      aSequence - String with the sequence.
    • getSequence

      String getSequence()
      This method will retrieve the sequence.
      Returns:
      String with the sequence.
    • getMass

      double getMass()
      This method will return the mass for the sequence.
      Returns:
      double with the mass.
    • getLength

      int getLength()
      This method reports on the length of the current sequence.
      Returns:
      int with the length of the sequence.