RISC JKU

at.jku.risc.stout.urauc.data

Class Alignment

    • Constructor Detail

      • Alignment

        public Alignment()
        Creates an alignment with initial capacity 16.
      • Alignment

        public Alignment(int capacity)
        Creates an alignment with the given initial capacity.
    • Method Detail

      • addAllRootIdx

        public void addAllRootIdx(int addLeft,
                         int addRight)
      • incAllRootIdxLeft

        public void incAllRootIdxLeft()
      • incAllRootIdxRight

        public void incAllRootIdxRight()
      • isAdmissible

        public boolean isAdmissible()
        Tests whether the alignment is admissible or not. This test has cubic complexity.
      • reset

        public void reset()
        Resets the alignment to the initial state.
      • setAtomIfTailAdmissible

        public boolean setAtomIfTailAdmissible(int idx,
                                      Alignment.AlignmentAtom atom)
        Sets the Alignment.AlignmentAtom at the given (relative) position if the atom is admissible with the elements behind it (the elements with higher index). Returns true if the admissibility test was positive.
      • setSize

        public void setSize(int size)
        Sets the relative size and increases the capacity if necessary.