org.vizzini.ai.geneticprogramming
Interface IChromosomeGP

All Superinterfaces:
Cloneable, Comparable, IChromosome
All Known Implementing Classes:
AbstractChromosomeGP, DefaultChromosomeGP

public interface IChromosomeGP
extends IChromosome

Defines methods required by a chromosome in genetic programming.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from interface org.vizzini.ai.geneticalgorithm.IChromosome
UNKNOWN_FITNESS
 
Method Summary
 Object evaluate(IContext context)
          Evaluate this chromosome.
 IFunction getFunction()
           
 void setFunction(IFunction function)
           
 void splice(IChromosomeGP c0, IChromosomeGP c1, int cut0, int cut1)
          Splice the given chromosomes into this using the given cut indexes.
 
Methods inherited from interface org.vizzini.ai.geneticalgorithm.IChromosome
addFitness, clone, copy, equals, getDescription, getFitness, isFitnessUnknown, mix, mix, mutate, randomlyInitialize, setDescription, setFitness, setFitnessUnknown, size, splice
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

evaluate

Object evaluate(IContext context)
Evaluate this chromosome.

Parameters:
context - Context in which to evaluate.
Since:
v0.3

getFunction

IFunction getFunction()
Returns:
Return function.
Since:
v0.3

setFunction

void setFunction(IFunction function)
Parameters:
function - the function to set
Since:
v0.3

splice

void splice(IChromosomeGP c0,
            IChromosomeGP c1,
            int cut0,
            int cut1)
Splice the given chromosomes into this using the given cut indexes.

Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02