Package xal.extension.solver
Class Score
java.lang.Object
xal.extension.solver.Score
Score is a collection of objectives with scores mapped to those objectives.
- Author:
- ky6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Objective
Description of the Fieldprotected final double
Description of the Fieldprotected final double
Description of the Field -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
objective
Description of the Field -
value
protected final double valueDescription of the Field -
satisfaction
protected final double satisfactionDescription of the Field
-
-
Constructor Details
-
Score
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
Get the objective.- Returns:
- The objective to be scored.
-
getValue
public double getValue()Get the objective's value.- Returns:
- The value
-
toString
A string for displaying a score. The string consist of a objective and a value.
-