|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.gp.GPProblem
public abstract class GPProblem
Abstract base class for all GP problems. See packages examples.gp and examples.grid for sample implementations.
| Constructor Summary | |
|---|---|
GPProblem()
Default constructor for dynamic instantiation. |
|
GPProblem(GPConfiguration a_conf)
|
|
| Method Summary | |
|---|---|
abstract GPGenotype |
create()
|
javax.swing.tree.TreeNode |
createTree(IGPProgram a_prog)
Creates a tree out of a given GP program. |
GPConfiguration |
getGPConfiguration()
|
protected void |
setGPConfiguration(GPConfiguration a_conf)
Sets the configuration. |
void |
showTree(IGPProgram a_prog,
java.lang.String a_filename)
Creates a graphical tree out of a given GP program and saves it to a file. |
void |
showTree(IGPProgram a_prog,
java.lang.String a_filename,
org.jgap.util.tree.TreeBranchRenderer a_treeBranchRenderer,
org.jgap.util.tree.TreeNodeRenderer a_treeNodeRenderer)
Creates a tree out of a given GP program and saves it to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GPProblem(GPConfiguration a_conf)
throws InvalidConfigurationException
InvalidConfigurationExceptionpublic GPProblem()
| Method Detail |
|---|
public abstract GPGenotype create()
throws InvalidConfigurationException
InvalidConfigurationException
public void showTree(IGPProgram a_prog,
java.lang.String a_filename)
throws InvalidConfigurationException
a_prog - the GP program to visualize a tree fora_filename - the name of the file to save the tree in
InvalidConfigurationException
public void showTree(IGPProgram a_prog,
java.lang.String a_filename,
org.jgap.util.tree.TreeBranchRenderer a_treeBranchRenderer,
org.jgap.util.tree.TreeNodeRenderer a_treeNodeRenderer)
throws InvalidConfigurationException
a_prog - the GP program to visualize a tree fora_filename - the name of the file to save the tree ina_treeBranchRenderer - renderer for the tree's branchesa_treeNodeRenderer - renderer for the tree's nodes
InvalidConfigurationException
public javax.swing.tree.TreeNode createTree(IGPProgram a_prog)
throws InvalidConfigurationException
a_prog - the GPGenotype to visualize a tree for
InvalidConfigurationExceptionpublic GPConfiguration getGPConfiguration()
protected void setGPConfiguration(GPConfiguration a_conf)
a_conf - the configuration to set
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||