public class PenaltyPair
extends java.lang.Object
| Constructor and Description |
|---|
PenaltyPair(java.lang.String name,
double score)
Constructs a PenaltyPair with the given name and score
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Getter for the penalty name
|
double |
getScore()
Getter for the fitness score
|
void |
setName(java.lang.String name)
Setter for the penalty name
|
void |
setScore(double score)
Setter for the fitness
|
public PenaltyPair(java.lang.String name,
double score)
name - the penalty's namescore - the fitness of the penaltypublic java.lang.String getName()
public void setName(java.lang.String name)
name - penalty namepublic double getScore()
public void setScore(double score)
score - the fitness