JGAP

examples.gp.monalisa.core
Class DrawingProblem

java.lang.Object
  extended by org.jgap.gp.GPProblem
      extended by examples.gp.monalisa.core.DrawingProblem

public class DrawingProblem
extends GPProblem

DrawingProblem encapsulates the GP configuration of the commands to use for composing a picture from polygons.

Since:
3.4

Nested Class Summary
static class DrawingProblem.TerminalType
          TerminalType helps differentiate the terminals that have different ranges.
 
Field Summary
static CommandGene SUBPROGRAM
           
 
Constructor Summary
DrawingProblem(GPConfiguration a_conf)
           
 
Method Summary
 GPGenotype create()
          Generates an inital genotype for the drawing problem.
 
Methods inherited from class org.jgap.gp.GPProblem
createTree, getGPConfiguration, setGPConfiguration, showTree, showTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBPROGRAM

public static CommandGene SUBPROGRAM
Constructor Detail

DrawingProblem

public DrawingProblem(GPConfiguration a_conf)
               throws InvalidConfigurationException
Throws:
InvalidConfigurationException
Method Detail

create

public GPGenotype create()
                  throws InvalidConfigurationException
Generates an inital genotype for the drawing problem.

Specified by:
create in class GPProblem
Returns:
an initial Genotype
Throws:
InvalidConfigurationException - in case of an error

JGAP