public abstract class Constraint extends Criterion implements Comparable<Constraint>
The Constraint is the identifier for a single constraint in the Constraints. It is the superclass for concrete constraints. It is specified by
the following properties:
Each Evaluator sets a specific amount of Constraint-Value pairs.
InfeasibilityConstraint,
SatisfactionConstraint,
Constraints,
Objectives.getConstraints()| Modifier and Type | Class and Description |
|---|---|
static class |
Constraint.Direction
Defines the possible directions a constraint can be defined.
|
| Constructor and Description |
|---|
Constraint(String name,
Constraint.Direction direction,
double limit) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Constraint other) |
Constraint.Direction |
getDirection() |
double |
getLimit() |
String |
toString() |
public Constraint(String name, Constraint.Direction direction, double limit)
public Constraint.Direction getDirection()
public double getLimit()
public int compareTo(Constraint other)
compareTo in interface Comparable<Constraint>