Interface RichSequence

    • Method Detail

      • getSeqVersion

        Double getSeqVersion()
        The version of the associated symbol list. Note the use of an object for the value means that it can be nulled.
        the version
      • setSeqVersion

        void setSeqVersion​(Double seqVersion)
                    throws ChangeVetoException
        Sets the version of the associated symbol list. Note the use of an object for the value means that it can be nulled.
        seqVersion - the version to set.
        ChangeVetoException - if it doesn't want to change.
      • getFeatureSet

        The features for this sequence.
        a set of RichFeature objects.
      • setFeatureSet

        void setFeatureSet​(Set<Feature> features)
                    throws ChangeVetoException
        Sets the features of this sequence. Note that it is not checked to see if the features actually belong to this sequence, you'd best check that yourself and make changes using feature.setParent() if necessary.
        features - the features to assign to this sequence, replacing all others. Must be a set of RichFeature objects.
        ChangeVetoException - if they could not be assigned.
      • setCircular

        void setCircular​(boolean circular)
                  throws ChangeVetoException
        Circularises the Sequence. The circular length can then be said to be the length of the sequence itself.
        circular - set to true if you want it to be circular
        ChangeVetoException - if the change is blocked. Some implementations may choose not to support circularisation and should throw an exception here. Some implementations may only support this method for certain Alphabets.
      • getCircular

        boolean getCircular()
        Is the sequence circular? Circularity has implications for work with locations and any coordinate work eg symbolAt(int i). Classes that allow it should test this method when working with coordinates or locations / features.
        true if the this is circular else false.
      • getInternalSymbolList

        SymbolList getInternalSymbolList()
        A special function that returns the SymbolList that this RichSequence is based around. This should _not_ be the RichSequence object itself, as this function is used to perform actions on the symbol list without referring to the RichSequence object directly.
        the internal SymbolList of the RichSequence, NOT the RichSequence object itself.