hcrypto.analyzer.evolutionary
Class NgramGaPopulation

java.lang.Object
  extended by hcrypto.analyzer.evolutionary.GaPopulation
      extended by hcrypto.analyzer.evolutionary.NgramGaPopulation

public class NgramGaPopulation
extends GaPopulation

Implements an instance of a GaPopulation by providing implementations of the init() and run() methods for a NgramGaAnalyzer.


Field Summary
static int KUCERA10
           
static int N_SHUFFLES
           
 
Constructor Summary
NgramGaPopulation(AnalyzerFrame f, java.lang.String text, java.lang.String solution, GaParameters params)
          NgramGaPopulation() constructor
 
Method Summary
 void displayBest()
           
 void displaySummary()
           
 GaIndividual getFittest(int n)
           
 void init()
          Inherited abstract method from GaPopulation.
 void run()
          This method implements the abstract run() method inherited from GaPopulation.
 
Methods inherited from class hcrypto.analyzer.evolutionary.GaPopulation
setDisplay
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N_SHUFFLES

public static final int N_SHUFFLES
See Also:
Constant Field Values

KUCERA10

public static final int KUCERA10
See Also:
Constant Field Values
Constructor Detail

NgramGaPopulation

public NgramGaPopulation(AnalyzerFrame f,
                         java.lang.String text,
                         java.lang.String solution,
                         GaParameters params)
NgramGaPopulation() constructor

Parameters:
text - -- the text to be cryptanalyzed
params - -- a collection of parameters to control the run
Method Detail

init

public void init()
Inherited abstract method from GaPopulation.

Specified by:
init in class GaPopulation

run

public void run()
This method implements the abstract run() method inherited from GaPopulation.

Specified by:
run in class GaPopulation

getFittest

public GaIndividual getFittest(int n)
Overrides:
getFittest in class GaPopulation

displayBest

public void displayBest()

displaySummary

public void displaySummary()