Documentation of 'org.jgap.gp.impl.DefaultProgramCreator' Java class
DefaultProgramCreator
org.jgap.gp.impl

Class DefaultProgramCreator

  • All Implemented Interfaces:
    IProgramCreator


    public class DefaultProgramCreator
    extends java.lang.Object
    implements IProgramCreator
    Used by DefaultPopulationCreator to create GP programs.
    Since:
    3.2.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IGPProgram create(GPConfiguration a_conf, int a_programIndex, java.lang.Class[] a_types, java.lang.Class[][] a_argTypes, CommandGene[][] a_nodeSets, int[] a_minDepths, int[] a_maxDepths, int a_maxNodes, int a_depth, boolean a_grow, int a_tries, boolean[] a_fullModeAllowed)
      Initializes the given population by adding new individuals to it.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultProgramCreator

        public DefaultProgramCreator()
    • Method Detail

      • create

        public IGPProgram create(GPConfiguration a_conf,
                                 int a_programIndex,
                                 java.lang.Class[] a_types,
                                 java.lang.Class[][] a_argTypes,
                                 CommandGene[][] a_nodeSets,
                                 int[] a_minDepths,
                                 int[] a_maxDepths,
                                 int a_maxNodes,
                                 int a_depth,
                                 boolean a_grow,
                                 int a_tries,
                                 boolean[] a_fullModeAllowed)
                          throws InvalidConfigurationException
        Description copied from interface: IProgramCreator
        Initializes the given population by adding new individuals to it.
        Specified by:
        create in interface IProgramCreator
        Parameters:
        a_conf - the configuration to use
        a_programIndex - index of the current program in the population, starting with 0
        a_types - Class[]
        a_argTypes - Class[][]
        a_nodeSets - CommandGene[][]
        a_minDepths - int[]
        a_maxDepths - int[]
        a_maxNodes - int
        a_depth - the required depth of the program
        a_grow - true: use grow mode, false: use full mode
        a_tries - maximum number of tries allowed to produce a valid program
        a_fullModeAllowed - boolean[]
        Returns:
        the newly created program
        Throws:
        InvalidConfigurationException - in case of any error

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.