hcrypto.analyzer.evolutionary
Class GaAnalyzer

java.lang.Object
  extended by hcrypto.analyzer.CryptoAnalyzer
      extended by hcrypto.analyzer.evolutionary.GaAnalyzer
All Implemented Interfaces:
Analyzer, java.lang.Runnable
Direct Known Subclasses:
NgramGaAnalyzer, WordBasedGaAnalyzer

public class GaAnalyzer
extends CryptoAnalyzer

Superclass for all GaAnalyzers. To create a new GaAnalyzer, define a subclass of this and create GaPopulation and GaIndividual subclasses for that particular GA.


Field Summary
 
Fields inherited from class hcrypto.analyzer.CryptoAnalyzer
PERMUTATION, PLAYFAIR, RAILFENCE, SIMPLESUB
 
Fields inherited from interface hcrypto.analyzer.Analyzer
DECIPHER_LIMIT
 
Constructor Summary
GaAnalyzer()
          GaAnalyzer() -- Default constructor
GaAnalyzer(GaParameters params, AnalyzerFrame f)
          GaAnalyzer() -- this constructor is given an object containing parameter settings
 
Method Summary
 void run()
          conducts the GA run and reports the results.
 void setup(java.lang.String text)
          setup() creates the population for the GA.
 
Methods inherited from class hcrypto.analyzer.CryptoAnalyzer
getReport, prettyPrint, setup, stopThread, threadIsStopped, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GaAnalyzer

public GaAnalyzer()
GaAnalyzer() -- Default constructor


GaAnalyzer

public GaAnalyzer(GaParameters params,
                  AnalyzerFrame f)
GaAnalyzer() -- this constructor is given an object containing parameter settings

Parameters:
params - -- an object containing param1=val1 param2=val2 ...
Method Detail

setup

public void setup(java.lang.String text)
setup() creates the population for the GA.

Specified by:
setup in interface Analyzer
Overrides:
setup in class CryptoAnalyzer

run

public void run()
conducts the GA run and reports the results. It is usually invoked from the subclass.

Specified by:
run in interface Analyzer
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class CryptoAnalyzer