Class IndeterminacyDetector

java.lang.Object
edu.fiu.jtlex.data.IndeterminacyDetector

public class IndeterminacyDetector
extends java.lang.Object
Indeterminant timelines are where there are a pair of nodes (events or times) that do not have a clear order in time.
Author:
ceber003, luisrobaina, emmanuelgarcia
  • Constructor Summary

    Constructors 
    Constructor Description
    IndeterminacyDetector​(IGraph TimeMLGraph)
    Creates an Indeterminacy Detector with the a given TimeML Graph.
  • Method Summary

    Modifier and Type Method Description
    void detect()
    Detects indeterminacies in the given TimeML Graph that was provided through the constructor.
    double getIndeterminacyScore()
    Returns a percent value representing the indeterminacy score.
    int getTimelineLength()
    Returns the overall length of the timeline.
    int getTotalAdjacentPairs()
    Returns the number of adjacent pairs which have been located.
    int getTotalIndeterminantSections()
    Returns the total number of indeterminant time points which have been located.
    java.util.List<java.lang.String> indeterminantTimePairs()
    Returns the adjacent indeterminant time pairings.
    java.util.List<java.lang.String> indeterminantTimePoints()
    Returns the time points which are indeterminant.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IndeterminacyDetector

      public IndeterminacyDetector​(IGraph TimeMLGraph)
      Creates an Indeterminacy Detector with the a given TimeML Graph.
      Parameters:
      TimeMLGraph - the graph to be analyzed
      Throws:
      java.lang.NullPointerException - if eventClass argument is null
  • Method Details

    • detect

      public void detect()
      Detects indeterminacies in the given TimeML Graph that was provided through the constructor.
    • getIndeterminacyScore

      public double getIndeterminacyScore()
      Returns a percent value representing the indeterminacy score.
      Returns:
      a percent value representing the indeterminacy score.
    • indeterminantTimePairs

      public java.util.List<java.lang.String> indeterminantTimePairs()
      Returns the adjacent indeterminant time pairings.
      Returns:
      the adjacent indeterminant time pairings.
    • indeterminantTimePoints

      public java.util.List<java.lang.String> indeterminantTimePoints()
      Returns the time points which are indeterminant.
      Returns:
      the time points which are indeterminant.
    • getTotalIndeterminantSections

      public int getTotalIndeterminantSections()
      Returns the total number of indeterminant time points which have been located.
      Returns:
      the total number of indeterminant time points which have been located.
    • getTimelineLength

      public int getTimelineLength()
      Returns the overall length of the timeline.
      Returns:
      the overall length of the timeline.
    • getTotalAdjacentPairs

      public int getTotalAdjacentPairs()
      Returns the number of adjacent pairs which have been located.
      Returns:
      the number of adjacent pairs which have been located.