Package edu.fiu.jtlex.timeml.timeline
Class TimeMLIndeterminacy
java.lang.Object
edu.fiu.jtlex.timeml.timeline.TimeMLIndeterminacy
- All Implemented Interfaces:
ITimeMLIndeterminacy
Default implementation of
IIndeterminacy
.- Since:
- jTLEX 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculates the indeterminacy score.int
Returns the timeline's length.int
Returns the number of adjacent pairs.int
Returns the total number of indeterminant time sections.Return the adjacent indeterminant time pairings.Returns the indeterminant time points
-
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 interfaceITimeMLIndeterminacy
- Returns:
- A number between 0-1 representing the indeterminacy score
- Since:
- jTLEX 1.0
-
indeterminantTimePairs
Return the adjacent indeterminant time pairings.- Specified by:
indeterminantTimePairs
in interfaceITimeMLIndeterminacy
- Returns:
- A List of the adjacent indeterminant time pairings.
- Since:
- jTLEX 1.0
-
indeterminantTimePoints
Returns the indeterminant time points- Specified by:
indeterminantTimePoints
in interfaceITimeMLIndeterminacy
- 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 interfaceITimeMLIndeterminacy
- 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 interfaceITimeMLIndeterminacy
- Returns:
- The timeline's length.
- Since:
- jTLEX 1.0
-
getTotalAdjacentPairs
public int getTotalAdjacentPairs()Returns the number of adjacent pairs.- Specified by:
getTotalAdjacentPairs
in interfaceITimeMLIndeterminacy
- Returns:
- The number of adjacent pairs.
- Since:
- jTLEX 1.0
-