Enum Class Individual.State

java.lang.Object
java.lang.Enum<Individual.State>
org.opt4j.core.Individual.State
All Implemented Interfaces:
Serializable, Comparable<Individual.State>, Constable
Enclosing class:
Individual

public static enum Individual.State extends Enum<Individual.State>
The possible states of an Individual.
  • Enum Constant Details

    • EMPTY

      public static final Individual.State EMPTY
      Initial state.
    • GENOTYPED

      public static final Individual.State GENOTYPED
      Individual has a Genotype.
    • DECODING

      public static final Individual.State DECODING
      Individual is currently being decoded.
    • PHENOTYPED

      public static final Individual.State PHENOTYPED
      Individual has a Phenotype, i.e. it is decoded.
    • EVALUATING

      public static final Individual.State EVALUATING
      Individual is currently being evaluated.
    • EVALUATED

      public static final Individual.State EVALUATED
      Individual is evaluated.
  • Method Details

    • values

      public static Individual.State[] 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

      public static Individual.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Returns the specific name of the state.
      Overrides:
      toString in class Enum<Individual.State>
      Returns:
      the specific name of the state
    • isDecoded

      public boolean isDecoded()
      Returns true if the individual is decoded in the current state.
      Returns:
      true if the individual is decoded in the current state
    • isEvaluated

      public boolean isEvaluated()
      Returns true if the individual is evaluated in the current state.
      Returns:
      true if the individual is evaluated in the current state
    • isProcessing

      public boolean isProcessing()
      Returns true if the individual is processing in the current state.
      Returns:
      true if the individual is processing in the current state