Class TLEX

java.lang.Object
edu.fiu.jtlex.algorithms.TLEX
All Implemented Interfaces:
ITLEX

public class TLEX extends Object implements ITLEX
Default implementation of ITLEX.
Since:
jTLEX 1.0
See Also:
  • Constructor Details

  • Method Details

    • getPartitions

      public List<ITimeMLGraph> getPartitions()
      Gets a list of all the partitions.
      Specified by:
      getPartitions in interface ITLEX
      Returns:
      The list of partitions.
      Since:
      jTLEX 1.0
    • getConsistentPartitions

      public List<ITimeMLGraph> getConsistentPartitions()
      Gets a list of the consistent partitions.
      Specified by:
      getConsistentPartitions in interface ITLEX
      Returns:
      The list of consistent partitions.
      Since:
      jTLEX 1.0
    • getInconsistentPartitions

      public List<ITimeMLGraph> getInconsistentPartitions()
      Gets a list of the inconsistent partitions
      Specified by:
      getInconsistentPartitions in interface ITLEX
      Returns:
      The list of inconsistent partitions
      Since:
      jTLEX 1.0
    • getInconsistentSubGraphs

      public Set<ITimeMLGraph> getInconsistentSubGraphs()
      Gets the set of inconsistent subgraphs. This requires the graph to be partitioned, so if it hasn't been done already, this method as a consequence will partition the graph.
      Specified by:
      getInconsistentSubGraphs in interface ITLEX
      Returns:
      The set of inconsistent partitions
      Since:
      jTLEX 1.0
    • getSolutions

      public List<List<String>> getSolutions()
      The list of solutions for the graph.
      Specified by:
      getSolutions in interface ITLEX
      Returns:
      The list of string representing solutions.
      Since:
      jTLEX 1.0
    • getTimeline

      public ITimeMLTimeline getTimeline()
      Returns the timeline of the graph.
      Specified by:
      getTimeline in interface ITLEX
      Returns:
      an ITimeline object containing the timeline of the graph.
      Since:
      jTLEX 1.0
    • getTimelineLength

      public int getTimelineLength()
      Returns the length of the timeline.
      Specified by:
      getTimelineLength in interface ITLEX
      Returns:
      the length of the main timeline, -1 if graph is inconsistent.
      Since:
      jTLEX 1.0
    • getIndeterminantTimePairs

      public List<String> getIndeterminantTimePairs()
      Returns a list of Indeterminant Time Pairs.
      Specified by:
      getIndeterminantTimePairs in interface ITLEX
      Returns:
      a list of strings containing the Indeterminant Time Pairs.
      Since:
      jTLEX 1.0
    • getIndeterminacyScore

      public double getIndeterminacyScore()
      Returns a percent value representing the indeterminacy score.
      Specified by:
      getIndeterminacyScore in interface ITLEX
      Returns:
      a double that is the percent value representing the indeterminacy score.
      Since:
      jTLEX 1.0
    • isConsistent

      public boolean isConsistent()
      Checks if the graph is consistent. This requires the graph to be partitioned, so if it hasn't been done already, this method as a consequence will partition the graph.
      Specified by:
      isConsistent in interface ITLEX
      Returns:
      true if the graph is consistent, else false.
      Since:
      jTLEX 1.0
    • toString

      public String toString()
      Produces a printable string representation of the object
      Overrides:
      toString in class Object
      Returns:
      A printable string representation of the object.
      Since:
      jTLEX 1.0
    • toJson

      public String toJson()
      Produces a JSON representation of the object.
      Specified by:
      toJson in interface ITLEX
      Returns:
      A JSON string representation of the object.
      Since:
      jTLEX 1.0