JGAP

org.jgap.gp
Class CrossMethod

java.lang.Object
  extended by org.jgap.gp.CrossMethod
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BranchTypingCross

public abstract class CrossMethod
extends java.lang.Object
implements java.io.Serializable

Abstract base class for GP-crossing over implementations.

Since:
3.0
See Also:
Serialized Form

Constructor Summary
CrossMethod(GPConfiguration a_configuration)
           
 
Method Summary
 GPConfiguration getConfiguration()
           
abstract  IGPProgram[] operate(IGPProgram a_i1, IGPProgram a_i2)
          Crosses two individuals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossMethod

public CrossMethod(GPConfiguration a_configuration)
Method Detail

getConfiguration

public GPConfiguration getConfiguration()

operate

public abstract IGPProgram[] operate(IGPProgram a_i1,
                                     IGPProgram a_i2)
Crosses two individuals.

Parameters:
a_i1 - the first individual to cross
a_i2 - the second individual to cross
Returns:
an array of the two resulting individuals
Since:
3.0

JGAP