org.optaplanner.core.impl.score.director.easy

## Interface EasyScoreCalculator<Solution_>

- Type Parameters:
    `Solution_` - the solution type, the class with the `PlanningSolution` annotation

      public interface EasyScoreCalculator<Solution_>

  Used for easy java `Score` calculation. This is non-incremental calculation, which is slow.

  An implementation must be stateless.

  See Also:
    `EasyScoreDirector`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Score` | `calculateScore(Solution_ solution)` This method is only called if the `Score` cannot be predicted.

- - ### Method Detail

    - #### calculateScore

          Score calculateScore(Solution_ solution)

      This method is only called if the `Score` cannot be predicted. The `Score` can be predicted for example after an undo `Move`.
      Parameters:
        `solution` - never null
      Returns:
        never null

Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.