Class Program
java.lang.Object
org.episteme.core.mathematics.optimization.evolutionary.geneticprogramming.Program
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Objectclone()Returns a deep copy of this Program instanceabstract intReturns the number of function nodes this program has.abstract intReturns the number of nodes this program has.abstract intReturns the number of program nodes this program has.abstract ObjectReturns evaluation of this program with the given parameterabstract StringgetName()Returns the name of this program.abstract StringtoText()Returns a string representation of this program.
-
Constructor Details
-
Program
public Program()
-
-
Method Details
-
toText
Returns a string representation of this program. (Instead of toString - Used by Javolution)- Returns:
- number of function nodes
-
getName
-
eval
-
countNodes
public abstract int countNodes()Returns the number of nodes this program has.- Returns:
- number of children nodes
-
countProgramNodes
public abstract int countProgramNodes()Returns the number of program nodes this program has. This method traverses all the children nodes recursively until the leaf nodes are reached and counts the number of programs.- Returns:
- number of program nodes
-
countFunctionNodes
public abstract int countFunctionNodes()Returns the number of function nodes this program has. This method traverses all the children nodes recursively until the leaf nodes are reached and counts the number of functions.- Returns:
- number of function nodes
-
clone
-