org.dllearner.algorithms.gp
Class Program

java.lang.Object
  extended by org.dllearner.algorithms.gp.Program

public class Program
extends Object

This class represents a program, i.e. an individual.

Author:
Jens Lehmann

Constructor Summary
Program(ScorePosNeg score, Description hypothesis)
          Create a new program.
Program(ScorePosNeg score, Description hypothesis, Description adc)
           
 
Method Summary
 Description getAdc()
           
 double getFitness()
          Returns the previously calculated fitness of the program.
 ScorePosNeg getScore()
           
 Description getTree()
          Returns the program tree corresponding to this program.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Program

public Program(ScorePosNeg score,
               Description hypothesis)
Create a new program.


Program

public Program(ScorePosNeg score,
               Description hypothesis,
               Description adc)
Method Detail

getFitness

public double getFitness()
Returns the previously calculated fitness of the program.

Returns:
The fitness of the program.

getTree

public Description getTree()
Returns the program tree corresponding to this program.

Returns:
The program tree.

getScore

public ScorePosNeg getScore()

getAdc

public Description getAdc()


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann