Class TimeMLIndeterminacy

java.lang.Object
edu.fiu.jtlex.timeml.timeline.TimeMLIndeterminacy
All Implemented Interfaces:
ITimeMLIndeterminacy

public class TimeMLIndeterminacy extends Object implements ITimeMLIndeterminacy
Default implementation of IIndeterminacy.
Since:
jTLEX 1.0
  • Constructor Details

    • TimeMLIndeterminacy

      public TimeMLIndeterminacy(List<org.jacop.core.IntVar> shortestTimeLine, List<Boolean> indeterminatePairs, Set<Integer> indeterminateIndexes)
      Creates a new Indeterminacy with the specified information.
      Parameters:
      shortestTimeLine - a list of int variables containing the shortest timeline.
      indeterminatePairs - a list of booleans with the indeterminate pairs.
      indeterminateIndexes - a set of integers with the indexes that are indeterminate
      Throws:
      NullPointerException - if shortestTimeLine, indeterminatePairs, or indeterminateIndexes are null.
  • Method Details

    • getIndeterminacyScore

      public double getIndeterminacyScore()
      Calculates the indeterminacy score.
      Specified by:
      getIndeterminacyScore in interface ITimeMLIndeterminacy
      Returns:
      A number between 0-1 representing the indeterminacy score
      Since:
      jTLEX 1.0
    • indeterminantTimePairs

      public List<String> indeterminantTimePairs()
      Return the adjacent indeterminant time pairings.
      Specified by:
      indeterminantTimePairs in interface ITimeMLIndeterminacy
      Returns:
      A List of the adjacent indeterminant time pairings.
      Since:
      jTLEX 1.0
    • indeterminantTimePoints

      public List<String> indeterminantTimePoints()
      Returns the indeterminant time points
      Specified by:
      indeterminantTimePoints in interface ITimeMLIndeterminacy
      Returns:
      A List of the indeterminate time points as Strings.
      Since:
      jTLEX 1.0
    • getTotalIndeterminantSections

      public int getTotalIndeterminantSections()
      Returns the total number of indeterminant time sections.
      Specified by:
      getTotalIndeterminantSections in interface ITimeMLIndeterminacy
      Returns:
      The total number of indeterminate time sections.
      Since:
      jTLEX 1.0
    • getTimelineLength

      public int getTimelineLength()
      Returns the timeline's length.
      Specified by:
      getTimelineLength in interface ITimeMLIndeterminacy
      Returns:
      The timeline's length.
      Since:
      jTLEX 1.0
    • getTotalAdjacentPairs

      public int getTotalAdjacentPairs()
      Returns the number of adjacent pairs.
      Specified by:
      getTotalAdjacentPairs in interface ITimeMLIndeterminacy
      Returns:
      The number of adjacent pairs.
      Since:
      jTLEX 1.0