org.processmining.mining.geneticmining.geneticoperations
Class VariableLocalOnePointCrossover

java.lang.Object
  extended by org.processmining.mining.geneticmining.geneticoperations.VariableLocalOnePointCrossover
All Implemented Interfaces:
Crossover

public class VariableLocalOnePointCrossover
extends java.lang.Object
implements Crossover

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
VariableLocalOnePointCrossover(java.util.Random generator)
           
 
Method Summary
 HeuristicsNet[] doCrossover(HeuristicsNet[] population)
          Do crossover over two individuals in population.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableLocalOnePointCrossover

public VariableLocalOnePointCrossover(java.util.Random generator)
Method Detail

doCrossover

public HeuristicsNet[] doCrossover(HeuristicsNet[] population)
Do crossover over two individuals in population. This crossover always swaps:
- both INPUT and OUTPUT sets of a workflow model element, if the randomly selected double x is between 0 and 0.5 (i.e. 0 <= x < 0.5)
- INPUT set only, if 0.5 <= x < 0.75 - OUTPUT set only, if 0.75 <= x < 1.0

Specified by:
doCrossover in interface Crossover
Parameters:
population - has the two individuals to crossover
Returns:
array with the two offsprings that the crossover produced. If population size is less than two, no crossover is done and the population itself is returned.

main

public static void main(java.lang.String[] args)