Package edu.fiu.jtlex.data
Class Indeterminacy
java.lang.Object
edu.fiu.jtlex.data.Indeterminacy
- All Implemented Interfaces:
IIndeterminacy
Default implementation of
IIndeterminacy.- Since:
- Revision 765
-
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
-
Indeterminacy
public Indeterminacy(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 interfaceIIndeterminacy- Returns:
- A number between 0-1 representing the indeterminacy score
- Since:
- Revision 765
-
indeterminantTimePairs
Return the adjacent indeterminant time pairings.- Specified by:
indeterminantTimePairsin interfaceIIndeterminacy- Returns:
- A List of the adjacent indeterminant time pairings.
- Since:
- Revision 765
-
indeterminantTimePoints
Returns the indeterminant time points- Specified by:
indeterminantTimePointsin interfaceIIndeterminacy- Returns:
- A List of the indeterminate time points as Strings.
- Since:
- Revision 765
-
getTotalIndeterminantSections
public int getTotalIndeterminantSections()Returns the total number of indeterminant time sections.- Specified by:
getTotalIndeterminantSectionsin interfaceIIndeterminacy- Returns:
- The total number of indeterminate time sections.
- Since:
- Revision 765
-
getTimelineLength
public int getTimelineLength()Returns the timeline's length.- Specified by:
getTimelineLengthin interfaceIIndeterminacy- Returns:
- The timeline's length.
- Since:
- Revision 765
-
getTotalAdjacentPairs
public int getTotalAdjacentPairs()Returns the number of adjacent pairs.- Specified by:
getTotalAdjacentPairsin interfaceIIndeterminacy- Returns:
- The number of adjacent pairs.
- Since:
- Revision 765
-