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

Class GPProgramBase

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, IGPProgram, ICloneable
    Direct Known Subclasses:
    GPProgram


    public abstract class GPProgramBase
    extends java.lang.Object
    implements IGPProgram
    Base class for GPProgram's. See org.jgap.gp.impl.GPProgram for an implementation.
    Since:
    3.0
    See Also:
    Serialized Form
    • Method Detail

      • equals

        public boolean equals(java.lang.Object a_other)
        Compares this entity against the specified object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        a_other - the object to compare against
        Returns:
        true: if the objects are the same, false otherwise
        Since:
        3.0
      • calcFitnessValue

        public double calcFitnessValue()
        Returns:
        fitness value of this program determined via the registered fitness function
        Since:
        3.0
      • getFitnessValue

        public double getFitnessValue()
        Specified by:
        getFitnessValue in interface IGPProgram
        Returns:
        fitness value of this program, cached access
        Since:
        3.0
      • getFitnessValueDirectly

        public double getFitnessValueDirectly()
        Returns:
        computed fitness value of this program, may be unitialized
        Since:
        3.2
      • setTypes

        public void setTypes(java.lang.Class[] a_types)
        Specified by:
        setTypes in interface IGPProgram
      • getTypes

        public java.lang.Class[] getTypes()
        Specified by:
        getTypes in interface IGPProgram
      • getType

        public java.lang.Class getType(int a_index)
      • setArgTypes

        public void setArgTypes(java.lang.Class[][] a_argTypes)
        Specified by:
        setArgTypes in interface IGPProgram
      • getArgTypes

        public java.lang.Class[][] getArgTypes()
        Specified by:
        getArgTypes in interface IGPProgram
      • getArgType

        public java.lang.Class[] getArgType(int a_index)
      • getNodeSet

        public CommandGene[] getNodeSet(int a_index)
      • setMaxDepths

        public void setMaxDepths(int[] a_maxDepths)
        Specified by:
        setMaxDepths in interface IGPProgram
      • setMinDepths

        public void setMinDepths(int[] a_minDepths)
        Specified by:
        setMinDepths in interface IGPProgram
      • setMaxNodes

        public void setMaxNodes(int a_maxNodes)
        Specified by:
        setMaxNodes in interface IGPProgram
      • setApplicationData

        public void setApplicationData(java.lang.Object a_data)
        Sets the application data object.
        Specified by:
        setApplicationData in interface IGPProgram
        Parameters:
        a_data - the object to set
        Since:
        3.01
      • getApplicationData

        public java.lang.Object getApplicationData()
        Specified by:
        getApplicationData in interface IGPProgram
        Returns:
        the application data object set
        Since:
        3.01
      • clone

        public abstract java.lang.Object clone()
        Specified by:
        clone in interface ICloneable
        Overrides:
        clone in class java.lang.Object
        Returns:
        deep clone of this instance
        Since:
        3.2

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.