hcrypto.analyzer.evolutionary
Class WordBasedGaPopulation

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

public class WordBasedGaPopulation
extends GaPopulation


Constructor Summary
WordBasedGaPopulation(AnalyzerFrame f, java.lang.String text, java.lang.String solution, GaParameters params)
          WordBasedGaPopulation() constructor
 
Method Summary
 void displayBest()
           
 void displaySummary()
           
 Dictionary getEvalDict()
           
 GaIndividual getFittest(int n)
           
 PatternDictionary getSeedDict()
           
 void init()
          This method initializes the analyzer.
 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
 

Constructor Detail

WordBasedGaPopulation

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

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

init

public void init()
This method initializes the analyzer. It sorts the tokens in the cryptogram to give preference to those with the smallest (non empty) pattern sets. It then creates the population, giving each individual an encryption key based on a pairing of a token from the cryptogram and a word from the pattern word dictionary.

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()

getSeedDict

public PatternDictionary getSeedDict()

getEvalDict

public Dictionary getEvalDict()