|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jaga.evolve.Stretcher
Strecher is a Genetic Operator that will add length to a genotype.
The amount it is streched by is configurable and even randomized between limits.
What data is placed in the new section is also configurable.
The position where this new data will be inserted/appended is also configurable.
NOTE: ONLY (FIXED) LENGTH OF NEW SECTION & POS OF SOURCE OF DATA TO COPY CONFIGURABLE
Constructor Summary | |
Stretcher()
Creates new Stretcher. |
|
Stretcher(int stretchAmountP,
int copyFromP)
Creates new Stretcher. |
Method Summary | |
void |
operate(Selector selector,
Population oldPopulation,
Population newPopulation,
int howMany)
method that adds genotypes to the new population by extracting some from the old one and manipulating them in some way. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Stretcher()
public Stretcher(int stretchAmountP, int copyFromP)
stretchAmountP
- Fixed amount to add at end of genotype.copyFromP
- Where to get data from to fill in new section.Method Detail |
public void operate(Selector selector, Population oldPopulation, Population newPopulation, int howMany)
operate
in interface GeneticOperator
oldPopulation
- in parameter having all the original genotypesnewPopulation
- in/out parameter where the next generation of genotypes is being builthowMany
- how many new genotypes to add to the new populationpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |