jenes
Enum GeneticAlgorithm.ResizeStrategy

java.lang.Object
  extended by java.lang.Enum<GeneticAlgorithm.ResizeStrategy>
      extended by jenes.GeneticAlgorithm.ResizeStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GeneticAlgorithm.ResizeStrategy>
Enclosing class:
GeneticAlgorithm<T extends Chromosome>

public static enum GeneticAlgorithm.ResizeStrategy
extends java.lang.Enum<GeneticAlgorithm.ResizeStrategy>

The resize stategy enumeration. It is used in @link jenes.stage.Sequence


Enum Constant Summary
AUTO
          If there is a need to expand, additional individuals are added, else they are removed.
EMPTY
          Population is made empty, and then individuals are added as needed.
NONE
          No resize is perfomed.
 
Method Summary
static GeneticAlgorithm.ResizeStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GeneticAlgorithm.ResizeStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final GeneticAlgorithm.ResizeStrategy NONE
No resize is perfomed.


AUTO

public static final GeneticAlgorithm.ResizeStrategy AUTO
If there is a need to expand, additional individuals are added, else they are removed.


EMPTY

public static final GeneticAlgorithm.ResizeStrategy EMPTY
Population is made empty, and then individuals are added as needed.

Method Detail

values

public static GeneticAlgorithm.ResizeStrategy[] 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 (GeneticAlgorithm.ResizeStrategy c : GeneticAlgorithm.ResizeStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GeneticAlgorithm.ResizeStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null