Documentation of 'org.encog.ml.prg.opp.LevelHolder' Java class
LevelHolder
org.encog.ml.prg.opp

Class LevelHolder



  • public class LevelHolder
    extends java.lang.Object
    The level holder class is passed down as a tree is mutated. The level holder class is initially given the desired output of the program and tracks the desired output for each of the nodes. This allows for type-safe crossovers and mutations.
    • Constructor Detail

      • LevelHolder

        public LevelHolder(int currentLevel)
        Construct the level holder.
        Parameters:
        currentLevel - The level to construct the holder for.
    • Method Detail

      • compatibleTypes

        public static boolean compatibleTypes(java.util.List<ValueType> parentTypes,
                                              java.util.List<ValueType> childTypes)
        Determine if the specified child types are compatible with the parent types.
        Parameters:
        parentTypes - The parent types.
        childTypes - The child types.
        Returns:
        True, if compatible.
      • decreaseLevel

        public void decreaseLevel()
        Decrease the level.
      • getCurrentLevel

        public int getCurrentLevel()
        Returns:
        the currentLevel
      • getNodeFound

        public ProgramNode getNodeFound()
        Returns:
        the nodeFound
      • getTypes

        public java.util.List<ValueType> getTypes()
        Returns:
        the types
      • setCurrentLevel

        public void setCurrentLevel(int currentLevel)
        Parameters:
        currentLevel - the currentLevel to set
      • setNodeFound

        public void setNodeFound(ProgramNode nodeFound)
        Parameters:
        nodeFound - the nodeFound to set
      • setTypes

        public void setTypes(java.util.List<ValueType> types)
        Parameters:
        types - the types to set

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.