geneticWedge.gp
Enum IndividualDescriptor.IndividualGrowMethod

java.lang.Object
  extended by java.lang.Enum<IndividualDescriptor.IndividualGrowMethod>
      extended by geneticWedge.gp.IndividualDescriptor.IndividualGrowMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IndividualDescriptor.IndividualGrowMethod>
Enclosing class:
IndividualDescriptor

public static enum IndividualDescriptor.IndividualGrowMethod
extends java.lang.Enum<IndividualDescriptor.IndividualGrowMethod>

Determines whether an Individual is grown by the FULL or GROW method


Enum Constant Summary
FULL
          With the FULL method all branches are grown to the maximum depth, leading to regular trees.
GROW
          With the GROW method Terminals and Functions are assigned randomly, leading to irregular trees.
 
Method Summary
static IndividualDescriptor.IndividualGrowMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IndividualDescriptor.IndividualGrowMethod[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GROW

public static final IndividualDescriptor.IndividualGrowMethod GROW
With the GROW method Terminals and Functions are assigned randomly, leading to irregular trees.


FULL

public static final IndividualDescriptor.IndividualGrowMethod FULL
With the FULL method all branches are grown to the maximum depth, leading to regular trees.

Method Detail

values

public static final IndividualDescriptor.IndividualGrowMethod[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(IndividualDescriptor.IndividualGrowMethod c : IndividualDescriptor.IndividualGrowMethod.values())
        System.out.println(c);

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

valueOf

public static IndividualDescriptor.IndividualGrowMethod 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