public class Score
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Objective |
_objective
Description of the Field
|
protected double |
_satisfaction
Description of the Field
|
protected double |
_value
Description of the Field
|
Constructor and Description |
---|
Score(Objective anObjective,
double aValue)
Creates a new instance of Score.
|
Modifier and Type | Method and Description |
---|---|
Objective |
getObjective()
Get the objective.
|
double |
getSatisfaction()
Get the satisfaction.
|
double |
getValue()
Get the objective's value.
|
java.lang.String |
toString()
A string for displaying a score.
|
protected final Objective _objective
protected final double _value
protected final double _satisfaction
public Score(Objective anObjective, double aValue)
anObjective
- The objective to be scored.aValue
- The value given to the objective.public double getSatisfaction()
public Objective getObjective()
public double getValue()
public java.lang.String toString()
toString
in class java.lang.Object