Package org.opt4j.operator.crossover
Enum BasicCrossoverModule.PermutationType
- java.lang.Object
-
- java.lang.Enum<BasicCrossoverModule.PermutationType>
-
- org.opt4j.operator.crossover.BasicCrossoverModule.PermutationType
-
- All Implemented Interfaces:
Serializable
,Comparable<BasicCrossoverModule.PermutationType>
- Enclosing class:
- BasicCrossoverModule
public static enum BasicCrossoverModule.PermutationType extends Enum<BasicCrossoverModule.PermutationType>
Type ofCrossover
operator for thePermutationGenotype
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUCKET
Use theCrossoverPermutationBucket
.ONEPOINT
Use theCrossoverPermutationOnePoint
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicCrossoverModule.PermutationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BasicCrossoverModule.PermutationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONEPOINT
public static final BasicCrossoverModule.PermutationType ONEPOINT
Use theCrossoverPermutationOnePoint
.
-
BUCKET
public static final BasicCrossoverModule.PermutationType BUCKET
Use theCrossoverPermutationBucket
.
-
-
Method Detail
-
values
public static BasicCrossoverModule.PermutationType[] 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 (BasicCrossoverModule.PermutationType c : BasicCrossoverModule.PermutationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicCrossoverModule.PermutationType 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
-
-