org.encog.ml.prg.extension
public enum EncogOpcodeRegistry extends Enum<EncogOpcodeRegistry>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
add(ProgramExtensionTemplate ext)
Add an opcode.
|
static String |
createKey(String functionName,
int argCount)
Construct a lookup key for the hash map.
|
Collection<ProgramExtensionTemplate> |
findAllOpcodes() |
ProgramExtensionTemplate |
findOpcode(String name,
int args)
Find the specified opcode.
|
static EncogOpcodeRegistry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncogOpcodeRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncogOpcodeRegistry INSTANCE
public static EncogOpcodeRegistry[] values()
for (EncogOpcodeRegistry c : EncogOpcodeRegistry.values()) System.out.println(c);
public static EncogOpcodeRegistry valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static String createKey(String functionName, int argCount)
functionName
- The name of the opcode.argCount
- The number of parameters this opcode accepts.public void add(ProgramExtensionTemplate ext)
ext
- The opcode to add.public Collection<ProgramExtensionTemplate> findAllOpcodes()
public ProgramExtensionTemplate findOpcode(String name, int args)
name
- The name of the opcode.args
- The number of arguments.Copyright © 2014. All Rights Reserved.