|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.core.GeneticOperator | +--mss.ea.ini.Initialization
Abstract base class of an initialization operator.
Field Summary | |
protected int |
number
Number of individuals this operator should produce. |
protected int |
setSize
Number of chromosomes to be generated. |
Fields inherited from class mss.ea.core.GeneticOperator |
description, ID, name |
Constructor Summary | |
Initialization()
Constructor. |
|
Initialization(int indNumber)
Constructor with number of individuals. |
|
Initialization(int indNumber,
int chrSetSize)
Constructor with individual number and chromosome set size. |
Method Summary | |
abstract ChromosomeSet |
createSet()
Abstract method for creating a chromosome set. |
int |
getChromosomeSize()
Gets the number of chromosomes to be generated. |
int |
getIndividualNumber()
Gets the number of individuals to be generated. |
IndividualStream |
getStream()
Gets a stream of new individuals. |
Individual |
next()
Generates another individual. |
void |
setChromosomeSize(int size)
Sets the number of chromosomes to be generated. |
void |
setIndividualNumber(int indNumber)
Sets the number of individuals to be generated. |
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 |
protected int number
protected int setSize
Constructor Detail |
public Initialization()
public Initialization(int indNumber)
indNumber
- number of chromosomes to be generatedpublic Initialization(int indNumber, int chrSetSize)
indNumber
- number of individuals to be generatedchrSetSize
- number of chromosomes to be generatedMethod Detail |
public abstract ChromosomeSet createSet()
public Individual next()
next
in interface IndividualSource
public IndividualStream getStream()
getStream
in interface IndividualSource
public int getIndividualNumber()
public void setIndividualNumber(int indNumber)
indNumber
- number of individuals to generatedpublic int getChromosomeSize()
public void setChromosomeSize(int size)
size
- number of chromosomes to be generated
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |