public class Objective extends java.lang.Object implements java.lang.Comparable<Objective>
The Objective is the identifier for a single objective in the
Objectives. It is specified by the following properties:
Each Evaluator sets a specific amount of
Objective-Value pairs. Moreover, each
Evaluator has to set the same
Objectives for all phenotypes.
Objectives| Modifier and Type | Class and Description |
|---|---|
static class |
Objective.Sign
The sign of the
Objective. |
| Modifier and Type | Field and Description |
|---|---|
static Value<?> |
INFEASIBLE
Identifier for infeasible results (
null). |
protected java.lang.String |
name |
protected Objective.Sign |
sign |
| Constructor and Description |
|---|
Objective(java.lang.String name)
Constructs an
Objective with a given name, sign=MIN, and
rank=RANK_OBJECTIVE(0). |
Objective(java.lang.String name,
Objective.Sign sign)
Constructs an
Objective with a given name, sign, and
rank=RANK_OBJECTIVE(0). |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Objective other) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name.
|
Objective.Sign |
getSign()
Returns the sign.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final Value<?> INFEASIBLE
null).protected final Objective.Sign sign
protected final java.lang.String name
public Objective(java.lang.String name)
Objective with a given name, sign=MIN, and
rank=RANK_OBJECTIVE(0).name - the namepublic Objective(java.lang.String name,
Objective.Sign sign)
Objective with a given name, sign, and
rank=RANK_OBJECTIVE(0).name - the namesign - the sign of the objectivepublic Objective.Sign getSign()
public java.lang.String getName()
public int compareTo(Objective other)
compareTo in interface java.lang.Comparable<Objective>public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object