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