analyzers
Class GaAnalyzer

java.lang.Object
  |
  +--analyzers.GaAnalyzer
All Implemented Interfaces:
Analyzer
Direct Known Subclasses:
FreqGaAnalyzer, WordBasedGaAnalyzer

public abstract class GaAnalyzer
extends java.lang.Object
implements Analyzer


Field Summary
protected  GaParameters params
           
protected  GaPopulation population
           
protected  java.lang.StringBuffer resultSB
           
protected  java.lang.String text
           
 
Fields inherited from interface hcrypto.analyzer.Analyzer
DECIPHER_LIMIT
 
Constructor Summary
GaAnalyzer()
          GaAnalyzer() -- Default constructor
GaAnalyzer(GaParameters params)
          GaAnalyzer() -- this constructor is given an object containing parameter settings
 
Method Summary
abstract  void gaSetup()
          This method should create a population for the specific type of GaAnalyzer.
 java.lang.String getReport()
          Part of Analyzer interface.
 void run()
          Part of Analyzer interface.
 void runGa()
          Default implementation.
 void setup(java.lang.String text)
          setup() initializes the text and the result string.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

population

protected GaPopulation population

params

protected GaParameters params

text

protected java.lang.String text

resultSB

protected java.lang.StringBuffer resultSB
Constructor Detail

GaAnalyzer

public GaAnalyzer()
GaAnalyzer() -- Default constructor

GaAnalyzer

public GaAnalyzer(GaParameters params)
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() initializes the text and the result string.
Specified by:
setup in interface Analyzer

run

public void run()
Part of Analyzer interface.
Specified by:
run in interface Analyzer

getReport

public java.lang.String getReport()
Part of Analyzer interface.
Specified by:
getReport in interface Analyzer

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

gaSetup

public abstract void gaSetup()
This method should create a population for the specific type of GaAnalyzer. It should be implemented in the subclass.

runGa

public void runGa()
Default implementation. Runs the population that was created in setUp(). Override this method to customize the run.