Class Score

java.lang.Object
xal.extension.solver.Score

public class Score extends Object
Score is a collection of objectives with scores mapped to those objectives.
Author:
ky6
  • Field Details

    • objective

      protected final Objective objective
      Description of the Field
    • value

      protected final double value
      Description of the Field
    • satisfaction

      protected final double satisfaction
      Description of the Field
  • Constructor Details

    • Score

      public Score(Objective anObjective, double aValue)
      Creates a new instance of Score.
      Parameters:
      anObjective - The objective to be scored.
      aValue - The value given to the objective.
  • Method Details

    • getSatisfaction

      public double getSatisfaction()
      Get the satisfaction.
      Returns:
      The satisfaction as a double.
    • getObjective

      public Objective getObjective()
      Get the objective.
      Returns:
      The objective to be scored.
    • getValue

      public double getValue()
      Get the objective's value.
      Returns:
      The value
    • toString

      public String toString()
      A string for displaying a score. The string consist of a objective and a value.
      Overrides:
      toString in class Object
      Returns:
      The string representation of a score.