|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthcrypto.analyzer.CryptoAnalyzer
public class CryptoAnalyzer
Serves as the foundation for all cryptologic analyzers, including GA analyzers. It should be subclassed with a class containing extensions of its run() and setup() methods.
| Field Summary | |
|---|---|
static int |
PERMUTATION
|
static int |
PLAYFAIR
|
static int |
RAILFENCE
|
static int |
SIMPLESUB
|
| Fields inherited from interface hcrypto.analyzer.Analyzer |
|---|
DECIPHER_LIMIT |
| Constructor Summary | |
|---|---|
CryptoAnalyzer()
CryptoAnalyzer() -- Default constructor |
|
CryptoAnalyzer(GaParameters params)
CryptoAnalyzer() -- this constructor is given an object containing parameter settings |
|
| Method Summary | |
|---|---|
java.lang.String |
getReport()
Part of Analyzer interface. |
static java.lang.String |
prettyPrint(java.lang.String s,
int linelen)
Inserts line breaks into a string. |
void |
run()
Part of Analyzer and Runnable interface. |
void |
setup(java.lang.String text)
setup() initializes the text and the result string. |
void |
setup(java.lang.String text,
AnalyzerFrame f)
setup() -- this version of setup was added to make the analyzer compatible with CryptoToolJ. |
void |
stopThread()
Stops the analyzer. |
boolean |
threadIsStopped()
|
java.lang.String |
toString()
Every class should have a toString() method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SIMPLESUB
public static final int PERMUTATION
public static final int RAILFENCE
public static final int PLAYFAIR
| Constructor Detail |
|---|
public CryptoAnalyzer()
public CryptoAnalyzer(GaParameters params)
params - -- an object containing param1=val1 param2=val2 ...| Method Detail |
|---|
public void setup(java.lang.String text,
AnalyzerFrame f)
public void setup(java.lang.String text)
setup in interface Analyzerpublic void run()
run in interface Analyzerrun in interface java.lang.Runnablepublic void stopThread()
public boolean threadIsStopped()
public java.lang.String getReport()
getReport in interface Analyzerpublic java.lang.String toString()
toString in class java.lang.Object
public static java.lang.String prettyPrint(java.lang.String s,
int linelen)
s - the stringlinelen - the length of the line
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||