Enum Class InnerScoreDirector.ScoreAnalysisMode

java.lang.Object
java.lang.Enum<InnerScoreDirector.ScoreAnalysisMode>
ai.timefold.solver.core.impl.score.director.InnerScoreDirector.ScoreAnalysisMode
All Implemented Interfaces:
Serializable, Comparable<InnerScoreDirector.ScoreAnalysisMode>, Constable
Enclosing interface:
InnerScoreDirector<Solution_,Score_ extends Score<Score_>>

public static enum InnerScoreDirector.ScoreAnalysisMode extends Enum<InnerScoreDirector.ScoreAnalysisMode>
  • Enum Constant Details

    • DEFAULT

      public static final InnerScoreDirector.ScoreAnalysisMode DEFAULT
      The default mode, which will throw an exception if the solution is not initialized.
    • SCORE_CORRUPTION

      public static final InnerScoreDirector.ScoreAnalysisMode SCORE_CORRUPTION
      If analysis is requested as a result of a score corruption detection, there will be no tweaks to the score and no initialization exception will be thrown. This is because score corruption may have been detected during construction heuristics, where the score is rightfully uninitialized.
    • RECOMMENDATION_API

      public static final InnerScoreDirector.ScoreAnalysisMode RECOMMENDATION_API
      Will not throw an exception if the solution is not initialized, but will set Score.initScore() to zero. Recommendation API always has an uninitialized solution by design.
  • Method Details

    • values

      public static InnerScoreDirector.ScoreAnalysisMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static InnerScoreDirector.ScoreAnalysisMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null