Class ReadingOrder

java.lang.Object
application.model.rules.misc.naive.ReadingOrder
Direct Known Subclasses:
Orthogonal

public abstract class ReadingOrder
extends java.lang.Object
The base class for naive reading orders
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String specifier
    The specifier for the naive reading order
  • Constructor Summary

    Constructors 
    Constructor Description
    ReadingOrder​(java.lang.String specifier)
    Constructs a new naive reading order
  • Method Summary

    Modifier and Type Method Description
    abstract java.lang.Object clone()
    Clones the naive reading order
    abstract java.util.Comparator<Coordinate> getCoordinateComparator()
    Gets the coordinate comparator
    abstract java.lang.String[] getRegex()
    Gets the regex that will identify the naive reading order
    java.lang.String getSpecifier()
    Gets the specifier for the naive reading order
    abstract void setSpecifier​(java.lang.String specifier)
    Sets the specifier for the naive reading order

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • specifier

      protected java.lang.String specifier
      The specifier for the naive reading order
  • Constructor Details

    • ReadingOrder

      public ReadingOrder​(java.lang.String specifier)
      Constructs a new naive reading order
      Parameters:
      specifier - The specifier for the naive reading order
  • Method Details

    • setSpecifier

      public abstract void setSpecifier​(java.lang.String specifier)
      Sets the specifier for the naive reading order
      Parameters:
      specifier - The specifier of the naive reading order
    • getSpecifier

      public java.lang.String getSpecifier()
      Gets the specifier for the naive reading order
      Returns:
      Returns the specifier for the naive reading order
    • getRegex

      public abstract java.lang.String[] getRegex()
      Gets the regex that will identify the naive reading order
      Returns:
      Returns the regexes that match a naive reading order
    • getCoordinateComparator

      public abstract java.util.Comparator<Coordinate> getCoordinateComparator()
      Gets the coordinate comparator
      Returns:
      Returns the coordinate comparator
    • clone

      public abstract java.lang.Object clone()
      Clones the naive reading order
      Overrides:
      clone in class java.lang.Object
      Returns:
      Returns the cloned naive reading order