public enum StepCountingHillClimbingType extends Enum<StepCountingHillClimbingType>
Enum Constant and Description |
---|
ACCEPTED_MOVE
Every accepted move is counted.
|
EQUAL_OR_IMPROVING_STEP
Every step that equals or improves the
Score of the last step is counted. |
IMPROVING_STEP
Every step that improves the
Score of the last step is counted. |
SELECTED_MOVE
Every selected move is counted.
|
STEP
Every step is counted.
|
Modifier and Type | Method and Description |
---|---|
static StepCountingHillClimbingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StepCountingHillClimbingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StepCountingHillClimbingType SELECTED_MOVE
public static final StepCountingHillClimbingType ACCEPTED_MOVE
Note: If LocalSearchForagerConfig.getAcceptedCountLimit()
= 1,
then this behaves exactly the same as {link #STEP}.
public static final StepCountingHillClimbingType STEP
public static final StepCountingHillClimbingType EQUAL_OR_IMPROVING_STEP
Score
of the last step is counted.public static final StepCountingHillClimbingType IMPROVING_STEP
Score
of the last step is counted.public static StepCountingHillClimbingType[] values()
for (StepCountingHillClimbingType c : StepCountingHillClimbingType.values()) System.out.println(c);
public static StepCountingHillClimbingType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2006–2020 JBoss by Red Hat. All rights reserved.