eaLib API Docs
Last Modified : January 7 2002

mss.ea.rec
Class Recombination

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.rec.Recombination
Direct Known Subclasses:
ChromosomeRecombination, IndividualDuplication, IndividualRecombination

public abstract class Recombination
extends GeneticOperator

Abstract base class for a general recombination operator.

Since:
0.1
Version:
0.1 (06-01-2001)
Author:
Andreas Rummler

Field Summary
protected  int quantity
          Number of offspring this operator will produce.
protected  int required
          Number of parents requires to work correctly.
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
Recombination()
           
 
Method Summary
 int getQuantity()
          Gets the offspring size this operator will produce.
 int getRequired()
          Gets the parent size this operator requires.
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

quantity

protected int quantity
Number of offspring this operator will produce. This is valid for chromosome and individual recombination. The default value is 1. Every subclass should set this value in it's constructor.

required

protected int required
Number of parents requires to work correctly. The default value is 2. Every subclass should set this value in it's constructor.
Constructor Detail

Recombination

public Recombination()
Method Detail

getQuantity

public int getQuantity()
Gets the offspring size this operator will produce.
Returns:
number of offsprings

getRequired

public int getRequired()
Gets the parent size this operator requires.
Returns:
number of parents

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS