Package org.opt4j.core
Enum Class Individual.State
- All Implemented Interfaces:
Serializable
,Comparable<Individual.State>
,Constable
- Enclosing class:
- Individual
The possible states of an
Individual
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndividual is currently being decoded.Initial state.Individual is evaluated.Individual is currently being evaluated.Individual has aGenotype
.Individual has a Phenotype, i.e. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the individual is decoded in the current state.boolean
Returnstrue
if the individual is evaluated in the current state.boolean
Returnstrue
if the individual is processing in the current state.toString()
Returns the specific name of the state.static Individual.State
Returns the enum constant of this class with the specified name.static Individual.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
Initial state. -
GENOTYPED
Individual has aGenotype
. -
DECODING
Individual is currently being decoded. -
PHENOTYPED
Individual has a Phenotype, i.e. it is decoded. -
EVALUATING
Individual is currently being evaluated. -
EVALUATED
Individual is evaluated.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
Returns the specific name of the state.- Overrides:
toString
in classEnum<Individual.State>
- Returns:
- the specific name of the state
-
isDecoded
public boolean isDecoded()Returnstrue
if the individual is decoded in the current state.- Returns:
true
if the individual is decoded in the current state
-
isEvaluated
public boolean isEvaluated()Returnstrue
if the individual is evaluated in the current state.- Returns:
true
if the individual is evaluated in the current state
-
isProcessing
public boolean isProcessing()Returnstrue
if the individual is processing in the current state.- Returns:
true
if the individual is processing in the current state
-