Class SimplePoint

    • Constructor Detail

      • SimplePoint

        public SimplePoint​(int position,
                           boolean unknown,
                           boolean uncertain)
    • Method Detail

      • setPosition

        protected void setPosition​(int position)
      • isUnknown

        public boolean isUnknown()
        Description copied from interface: Point
        Returns true if the current position is unknown but is beyond the position encoded for. This is the same as the position
        >80
        as encoded by UniProt.
        Specified by:
        isUnknown in interface Point
      • setUnknown

        protected void setUnknown​(boolean unknown)
      • isUncertain

        public boolean isUncertain()
        Description copied from interface: Point
        Returns a true if the exact point is unknown. Equivalent position from UniProt is
        ?80
        .
        Specified by:
        isUncertain in interface Point
      • setUncertain

        protected void setUncertain​(boolean uncertain)
      • reverse

        public Point reverse​(int length)
        Description copied from interface: Point
        Returns the equivalent position on the reverse strand
        Specified by:
        reverse in interface Point
        Parameters:
        length - Length of the sequence to translate to
      • offset

        public Point offset​(int distance)
        Description copied from interface: Point
        Returns a new point offset by the given distance
        Specified by:
        offset in interface Point
      • reverse

        protected int reverse​(int position,
                              int length)
      • isLower

        public boolean isLower​(Point point)
        Description copied from interface: Point
        Returns true if the current point is at a lower position than the point given.
        Specified by:
        isLower in interface Point
      • isHigher

        public boolean isHigher​(Point point)
        Description copied from interface: Point
        Returns true if the point is higher in value to the current point
        Specified by:
        isHigher in interface Point