Interface CompoundSet<C extends Compound>
- All Known Implementing Classes:
AbstractCompoundSet
,AbstractNucleotideCompoundSet
,AmbiguityDNACompoundSet
,AmbiguityRNACompoundSet
,AminoAcidCompoundSet
,DNACompoundSet
,RNACompoundSet
public interface CompoundSet<C extends Compound>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compoundsEquivalent
(C compoundOne, C compoundTwo) getCompoundForString
(String string) Return null if not recognised.getEquivalentCompounds
(C compound) int
Returns the maximum size of a compound String this set holdsgetStringForCompound
(C compound) boolean
hasCompound
(C compound) boolean
boolean
Returns true if all String representations of Compounds are of the same length.void
verifySequence
(Sequence<C> sequence)
-
Method Details
-
getMaxSingleCompoundStringLength
int getMaxSingleCompoundStringLength()Returns the maximum size of a compound String this set holds -
isCompoundStringLengthEqual
boolean isCompoundStringLengthEqual()Returns true if all String representations of Compounds are of the same length. -
getCompoundForString
Return null if not recognised. Throw IllegalArgumentException if string is longer than maximum allowed bygetStringForCompound(Compound)
. -
getStringForCompound
-
compoundsEquivalent
-
verifySequence
- Throws:
CompoundNotFoundError
-
getEquivalentCompounds
-
hasCompound
-
getAllCompounds
-
isComplementable
boolean isComplementable()
-