Documentation of 'org.jgap.gp.CommandDynamicArity' Java class
CommandDynamicArity
org.jgap.gp

Class CommandDynamicArity

    • Constructor Detail

      • CommandDynamicArity

        public CommandDynamicArity()
                            throws java.lang.Exception
        Default constructor, only for dynamic instantiation.
        Throws:
        java.lang.Exception
        Since:
        3.4
      • CommandDynamicArity

        public CommandDynamicArity(GPConfiguration a_conf,
                                   int a_arityInitial,
                                   int a_arityMin,
                                   int a_arityMax,
                                   java.lang.Class a_returnType,
                                   int a_subReturnType,
                                   int[] a_subChildTypes)
                            throws InvalidConfigurationException
        Allows specifying a sub return type and sub child types.
        Parameters:
        a_conf - the configuration to use
        a_arityInitial - the number of children of the node
        a_arityMin - the minimum arity allowed/required
        a_arityMax - the maximum arity allowed/required
        a_returnType - type of the return value of the node
        a_subReturnType - sub type of the return type, optional usage
        a_subChildTypes - sub type of a child, optional usage
        Throws:
        InvalidConfigurationException
        Since:
        3.4
    • Method Detail

      • dynamizeArity

        public void dynamizeArity()
        Adaptation of the arity so that it represents a value within the interval [m_arityMin, m_arityMax].
        Overrides:
        dynamizeArity in class CommandGene
        Since:
        3.4

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.