org.optaplanner.core.impl.score

## Class DefaultScoreManager<Solution_>

- java.lang.Object
- - org.optaplanner.core.impl.score.DefaultScoreManager<Solution_>

- Type Parameters:
    `Solution_` - the solution type, the class with the `PlanningSolution` annotation
  All Implemented Interfaces:
    ScoreManager<Solution_>

      public class DefaultScoreManager<Solution_>
      extends Object
      implements ScoreManager<Solution_>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultScoreManager(ScoreDirectorFactory<Solution_> scoreDirectorFactory)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ScoreDirectorFactory<Solution_>` | `getScoreDirectorFactory()`
    `void` | `updateScore(Solution_ solution)` Calculates the `Score` of a `PlanningSolution` and updates its `PlanningScore` member.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.optaplanner.core.api.score.ScoreManager

      `create`

- - ### Constructor Detail

    - #### DefaultScoreManager

          public DefaultScoreManager(ScoreDirectorFactory<Solution_> scoreDirectorFactory)

  - ### Method Detail

    - #### getScoreDirectorFactory

          public ScoreDirectorFactory<Solution_> getScoreDirectorFactory()

    - #### updateScore

          public void updateScore(Solution_ solution)

      Description copied from interface: `ScoreManager`
      Calculates the `Score` of a `PlanningSolution` and updates its `PlanningScore` member.
      Specified by:
        `updateScore` in interface `ScoreManager<Solution_>`
      Parameters:
        `solution` - never null

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