jenes.tutorials.problem2
Class PatternProblem

java.lang.Object
  extended by jenes.tutorials.problem2.PatternProblem
All Implemented Interfaces:
GenerationEventListener

public class PatternProblem
extends java.lang.Object
implements GenerationEventListener


Constructor Summary
PatternProblem()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void onGeneration(GeneticAlgorithm ga, long time)
          Invoked when at the end of one generation step
 void run(int[] target, int precision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternProblem

public PatternProblem()
Method Detail

run

public void run(int[] target,
                int precision)

onGeneration

public void onGeneration(GeneticAlgorithm ga,
                         long time)
Description copied from interface: GenerationEventListener
Invoked when at the end of one generation step

Specified by:
onGeneration in interface GenerationEventListener
Parameters:
ga - the genetic algorithm generating the event
time - the event time expressed in milliseconds

main

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