Package edu.fiu.jtlex.data
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 voiddetect()Detects indeterminacies in the given TimeML Graph that was provided through the constructor.doublegetIndeterminacyScore()Returns a percent value representing the indeterminacy score.intgetTimelineLength()Returns the overall length of the timeline.intgetTotalAdjacentPairs()Returns the number of adjacent pairs which have been located.intgetTotalIndeterminantSections()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.
-
Constructor Details
-
IndeterminacyDetector
Creates an Indeterminacy Detector with the a given TimeML Graph.- Parameters:
TimeMLGraph- the graph to be analyzed- Throws:
java.lang.NullPointerException- if eventClass argument isnull
-
-
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.
-