Class Indeterminacy

java.lang.Object
edu.fiu.jtlex.data.Indeterminacy
All Implemented Interfaces:
IIndeterminacy

public class Indeterminacy extends Object implements IIndeterminacy
Default implementation of IIndeterminacy.
Since:
Revision 765
  • 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:
      getIndeterminacyScore in interface IIndeterminacy
      Returns:
      A number between 0-1 representing the indeterminacy score
      Since:
      Revision 765
    • indeterminantTimePairs

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

      public List<String> indeterminantTimePoints()
      Returns the indeterminant time points
      Specified by:
      indeterminantTimePoints in interface IIndeterminacy
      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:
      getTotalIndeterminantSections in interface IIndeterminacy
      Returns:
      The total number of indeterminate time sections.
      Since:
      Revision 765
    • getTimelineLength

      public int getTimelineLength()
      Returns the timeline's length.
      Specified by:
      getTimelineLength in interface IIndeterminacy
      Returns:
      The timeline's length.
      Since:
      Revision 765
    • getTotalAdjacentPairs

      public int getTotalAdjacentPairs()
      Returns the number of adjacent pairs.
      Specified by:
      getTotalAdjacentPairs in interface IIndeterminacy
      Returns:
      The number of adjacent pairs.
      Since:
      Revision 765