Interface EasyScoreCalculator<Solution_,Score_ extends Score<Score_>>

Type Parameters:
Solution_ - the solution type, the class with the PlanningSolution annotation
Score_ - the score type to go with the solution

public interface EasyScoreCalculator<Solution_,Score_ extends Score<Score_>>
Used for easy java Score calculation. This is non-incremental calculation, which is slow.

An implementation must be stateless.

  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Score_
    calculateScore(@NonNull Solution_ solution)
    This method is only called if the Score cannot be predicted.
  • Method Details

    • calculateScore

      @NonNull Score_ calculateScore(@NonNull Solution_ solution)
      This method is only called if the Score cannot be predicted. The Score can be predicted for example after an undo move.