org.jgap.gp
Enum CommandGene.COMMAND_TYPE
java.lang.Object
java.lang.Enum<CommandGene.COMMAND_TYPE>
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>
| 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 |
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
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()