hcrypto.analyzer.evolutionary
Class WordBasedGaPopulation
java.lang.Object
hcrypto.analyzer.evolutionary.GaPopulation
hcrypto.analyzer.evolutionary.WordBasedGaPopulation
public class WordBasedGaPopulation
- extends GaPopulation
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordBasedGaPopulation
public WordBasedGaPopulation(AnalyzerFrame f,
java.lang.String text,
java.lang.String solution,
GaParameters params)
- WordBasedGaPopulation() constructor
- Parameters:
text - -- the text to be cryptanalyzedparams - -- a collection of parameters to control the run
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()