Interface CompoundSet<C extends Compound>
-
- All Known Implementing Classes:
ABITracerCompoundSet,AbstractCompoundSet,AbstractNucleotideCompoundSet,AmbiguityDNACompoundSet,AmbiguityDNARNAHybridCompoundSet,AmbiguityRNACompoundSet,AminoAcidCompoundSet,CaseFreeAminoAcidCompoundSet,DNACompoundSet,ModifiedAminoAcidCompoundSet,RNACompoundSet
public interface CompoundSet<C extends Compound>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancompoundsEquivalent(C compoundOne, C compoundTwo)java.util.List<C>getAllCompounds()CgetCompoundForString(java.lang.String string)Return null if not recognised.java.util.Set<C>getEquivalentCompounds(C compound)intgetMaxSingleCompoundStringLength()Returns the maximum size of a compound String this set holdsjava.lang.StringgetStringForCompound(C compound)booleanhasCompound(C compound)booleanisComplementable()booleanisCompoundStringLengthEqual()Returns true if all String representations of Compounds are of the same length.booleanisValidSequence(Sequence<C> sequence)
-
-
-
Method Detail
-
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
C getCompoundForString(java.lang.String string)
Return null if not recognised. Throw IllegalArgumentException if string is longer than maximum allowed bygetStringForCompound(Compound).
-
getStringForCompound
java.lang.String getStringForCompound(C compound)
-
hasCompound
boolean hasCompound(C compound)
-
getAllCompounds
java.util.List<C> getAllCompounds()
-
isComplementable
boolean isComplementable()
-
-