Package org.opt4j.optimizer.ea
Enum BasicMatingModule.CouplerType
- java.lang.Object
-
- java.lang.Enum<BasicMatingModule.CouplerType>
-
- org.opt4j.optimizer.ea.BasicMatingModule.CouplerType
-
- All Implemented Interfaces:
Serializable
,Comparable<BasicMatingModule.CouplerType>
- Enclosing class:
- BasicMatingModule
public static enum BasicMatingModule.CouplerType extends Enum<BasicMatingModule.CouplerType>
TheBasicMatingModule.CouplerType
determines the coupler operator to use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
Use theCouplerDefault
operator.RANDOM
Use theCouplerRandom
operator.UNIQUE
Use theCouplerUnique
operator.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicMatingModule.CouplerType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BasicMatingModule.CouplerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final BasicMatingModule.CouplerType DEFAULT
Use theCouplerDefault
operator.
-
RANDOM
public static final BasicMatingModule.CouplerType RANDOM
Use theCouplerRandom
operator.
-
UNIQUE
public static final BasicMatingModule.CouplerType UNIQUE
Use theCouplerUnique
operator.
-
-
Method Detail
-
values
public static BasicMatingModule.CouplerType[] 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 (BasicMatingModule.CouplerType c : BasicMatingModule.CouplerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicMatingModule.CouplerType 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
-
-