Class Terminal
java.lang.Object
org.episteme.core.mathematics.optimization.evolutionary.geneticprogramming.Program
org.episteme.core.mathematics.optimization.evolutionary.geneticprogramming.Terminal
- All Implemented Interfaces:
Cloneable
Abstraction for the terminals in genetic programming.
- Version:
- 0.1
- Author:
- Levent Bayindir
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep copy of this Terminal instanceintReturns the number of function nodes this terminal has.intReturns the number of nodes this terminal has.intReturns the number of program nodes this terminal has.
-
Constructor Details
-
Terminal
public Terminal()
-
-
Method Details
-
countNodes
public int countNodes()Returns the number of nodes this terminal has.- Specified by:
countNodesin classProgram- Returns:
- 1 (each terminal has one node)
-
countProgramNodes
public int countProgramNodes()Returns the number of program nodes this terminal has.- Specified by:
countProgramNodesin classProgram- Returns:
- 1 (each terminal has one program)
-
countFunctionNodes
public int countFunctionNodes()Returns the number of function nodes this terminal has.- Specified by:
countFunctionNodesin classProgram- Returns:
- 0 (this node is a terminal not a function)
-
clone
-