|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlio.crossover.bitchain.OnePointCrossover
public class OnePointCrossover
Implements the one point crossover operator for chains of bits.
| Constructor Summary | |
|---|---|
OnePointCrossover()
Creates a new instance of OnePointCrossover |
|
OnePointCrossover(int pPoint)
Creates a new instance of OnePointCrossover with a given point of crossover |
|
| Method Summary | |
|---|---|
Individual[] |
cross(Individual parent1,
Individual parent2)
Crosses two individuals. |
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object which holds the name and all parameters that describe the resource. |
int |
getPoint()
Returns the point of crossover. |
int |
getSizeOffSpring()
|
static void |
main(java.lang.String[] args)
Main class that allows testing the class. |
void |
setPoint(int pPoint)
Sets the point of crossover. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OnePointCrossover()
public OnePointCrossover(int pPoint)
pPoint - | Method Detail |
|---|
public int getSizeOffSpring()
getSizeOffSpring in interface Crossoverpublic LiOResourceDefinition getDefinition()
getDefinition in interface LiOResourcepublic void setPoint(int pPoint)
pPoint - point of crossover.public int getPoint()
public Individual[] cross(Individual parent1,
Individual parent2)
cross in interface Crossoverparent1 - First parentparent2 - Second parent
public static void main(java.lang.String[] args)
args - Arguments passed by command line
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||