hcrypto.analyzer.evolutionary
Class GaPopulation

java.lang.Object
  extended by hcrypto.analyzer.evolutionary.GaPopulation
Direct Known Subclasses:
NgramGaPopulation, WordBasedGaPopulation

public abstract class GaPopulation
extends java.lang.Object

This abstract class should be subclassed with a class containing implementations of the init() and run() methods for a particular type of GaPopulation.


Constructor Summary
GaPopulation(java.lang.String text, java.lang.String solution, GaParameters params)
          GaPopulation() constructor
 
Method Summary
 GaIndividual getFittest(int n)
           
abstract  void init()
          This method initializes the analyzer for the particular type of population.
abstract  void run()
          The generic GA run method.
 void setDisplay(AnalyzerFrame d)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaPopulation

public GaPopulation(java.lang.String text,
                    java.lang.String solution,
                    GaParameters params)
GaPopulation() constructor

Parameters:
text - -- the text to be cryptanalyzed
params - -- a GaParameters object containing all needed parameters
Method Detail

getFittest

public GaIndividual getFittest(int n)

init

public abstract void init()
This method initializes the analyzer for the particular type of population. It should be implemented in the subclass.


run

public abstract void run()
The generic GA run method.


setDisplay

public void setDisplay(AnalyzerFrame d)