JGAP

org.jgap.gp
Enum CommandGene.COMMAND_TYPE

java.lang.Object
  extended by java.lang.Enum<CommandGene.COMMAND_TYPE>
      extended by org.jgap.gp.CommandGene.COMMAND_TYPE
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CommandGene.COMMAND_TYPE>
Enclosing class:
CommandGene

public static enum CommandGene.COMMAND_TYPE
extends java.lang.Enum<CommandGene.COMMAND_TYPE>


Enum Constant Summary
COMMAND_TYPE_ANALYSIS
           
COMMAND_TYPE_ASSIGNMENT
           
COMMAND_TYPE_CONDITIONAL
           
COMMAND_TYPE_DECLARATION
           
COMMAND_TYPE_EXECUTION
           
COMMAND_TYPE_LOOP
           
COMMAND_TYPE_MATH_OPERATION
           
COMMAND_TYPE_OPERATION
           
COMMAND_TYPE_UNDEFINED
           
 
Method Summary
 int intValue()
           
static CommandGene.COMMAND_TYPE valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CommandGene.COMMAND_TYPE[] 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

COMMAND_TYPE_UNDEFINED

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_UNDEFINED

COMMAND_TYPE_LOOP

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_LOOP

COMMAND_TYPE_CONDITIONAL

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_CONDITIONAL

COMMAND_TYPE_OPERATION

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_OPERATION

COMMAND_TYPE_MATH_OPERATION

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_MATH_OPERATION

COMMAND_TYPE_DECLARATION

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_DECLARATION

COMMAND_TYPE_ASSIGNMENT

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_ASSIGNMENT

COMMAND_TYPE_ANALYSIS

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_ANALYSIS

COMMAND_TYPE_EXECUTION

public static final CommandGene.COMMAND_TYPE COMMAND_TYPE_EXECUTION
Method Detail

values

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

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

valueOf

public static CommandGene.COMMAND_TYPE 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

intValue

public int intValue()

JGAP