hcrypto.analyzer.evolutionary
Class WordBasedGaAnalyzer
java.lang.Object
hcrypto.analyzer.CryptoAnalyzer
hcrypto.analyzer.evolutionary.GaAnalyzer
hcrypto.analyzer.evolutionary.WordBasedGaAnalyzer
- All Implemented Interfaces:
- Analyzer, java.lang.Runnable
public class WordBasedGaAnalyzer
- extends GaAnalyzer
Assumes that the text is
encrypted with simple substitution and uses a
word-based genetic algorithm to analyze it.
|
Method Summary |
void |
run()
run() conducts the GA run and reports the results. |
void |
setup(java.lang.String text)
setup() creates the population and its dictionaries
CryptoAnalyzer class by creating a WordBasedGAPopulation object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WordBasedGaAnalyzer
public WordBasedGaAnalyzer()
- WordBasedGaAnalyzer() -- Default constructor
WordBasedGaAnalyzer
public WordBasedGaAnalyzer(GaParameters params,
AnalyzerFrame f)
- WordBasedGaAnalyzer() -- this constructor is given an object containing parameter settings
- Parameters:
params - -- an object containing param1=val1 param2=val2 ...
setup
public void setup(java.lang.String text)
- setup() creates the population and its dictionaries
CryptoAnalyzer class by creating a WordBasedGAPopulation object.
- Specified by:
setup in interface Analyzer- Overrides:
setup in class GaAnalyzer
run
public void run()
- run() conducts the GA run and reports the results.
- Specified by:
run in interface Analyzer- Specified by:
run in interface java.lang.Runnable- Overrides:
run in class GaAnalyzer