jaga.evolve
Class BlockCopy
java.lang.Object
|
+--jaga.evolve.BlockCopy
- All Implemented Interfaces:
- GeneticOperator, java.io.Serializable
- public class BlockCopy
- extends java.lang.Object
- implements GeneticOperator
This Mutator copies chunks of bits from one part of the genotype onto another.
- See Also:
- Serialized Form
|
Constructor Summary |
BlockCopy(int pblockSize)
Creates new BlockCopy |
BlockCopy(int pblockSize,
int palignmentSize)
|
BlockCopy(int pblockSize,
int palignmentSize,
int palignmentOffset)
|
BlockCopy(int pblockSize,
int palignmentSize,
int palignmentOffset,
int preadOnlyAlignments)
|
BlockCopy(int pblockSize,
int palignmentSize,
int palignmentOffset,
int preadOnlyAlignments,
int globalOffset)
Complete contructor |
|
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 |
BlockCopy
public BlockCopy(int pblockSize)
- Creates new BlockCopy
BlockCopy
public BlockCopy(int pblockSize,
int palignmentSize)
BlockCopy
public BlockCopy(int pblockSize,
int palignmentSize,
int palignmentOffset)
BlockCopy
public BlockCopy(int pblockSize,
int palignmentSize,
int palignmentOffset,
int preadOnlyAlignments)
BlockCopy
public BlockCopy(int pblockSize,
int palignmentSize,
int palignmentOffset,
int preadOnlyAlignments,
int globalOffset)
- Complete contructor
- Parameters:
pblockSize - Size of blocks to copy.palignmentSize - What size of window to align to, will not copy across alignmentspalignmentOffset - Inside each aligned window where to start a blockreadOnlyAlignments - How many alignments at the start of genotype should not be replacedglobalOffset - At what bit of the genotype to start counting blocks, everything before this will be ignored.
operate
public 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.
- Specified by:
operate in interface GeneticOperator
- Parameters:
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 population
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object