Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2159

Remove InnerScoreDirector.explainScore() that returns String and move it into ScoreManager or ScoreExplenation.

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Minor
    • 8.0.0.Beta1
    • None
    • None
    • None
    • 2020 Week 40-42 (from Sep 28)
    • 2
    • Undefined
    • NEW
    • NEW

    Description

      Also remove the two AbstractScoreDirector.explainScore() methods.

      The ScoreDirector impls shouldn't be responsible to construct a summary String.
      They should probably be responsible for creating the ScoreExplenation, to avoid calling fireAllRules 3 times.

      I think the ScoreExplenation can even construct the summary string lazely, upon request.

      Attachments

        Activity

          People

            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: