Enum HeuristicEntryDto.Objective
- java.lang.Object
-
- java.lang.Enum<HeuristicEntryDto.Objective>
-
- org.evomaster.client.java.controller.api.dto.HeuristicEntryDto.Objective
-
- All Implemented Interfaces:
Serializable
,Comparable<HeuristicEntryDto.Objective>
- Enclosing class:
- HeuristicEntryDto
public static enum HeuristicEntryDto.Objective extends Enum<HeuristicEntryDto.Objective>
Should we try to minimize or maximize the heuristic?
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAXIMIZE
The higher the better.MINIMIZE_TO_ZERO
The lower the better.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HeuristicEntryDto.Objective
valueOf(String name)
Returns the enum constant of this type with the specified name.static HeuristicEntryDto.Objective[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MINIMIZE_TO_ZERO
public static final HeuristicEntryDto.Objective MINIMIZE_TO_ZERO
The lower the better. Minimum is 0. It can be considered as a "distance" to minimize.
-
MAXIMIZE
public static final HeuristicEntryDto.Objective MAXIMIZE
The higher the better. Note: given x, we could rather considered the value 1/x to minimize. But that wouldn't work for negative x, and also would make debugging more difficult (ie better to look at the raw, non-transformed values).
-
-
Method Detail
-
values
public static HeuristicEntryDto.Objective[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HeuristicEntryDto.Objective c : HeuristicEntryDto.Objective.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HeuristicEntryDto.Objective valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-