|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthcrypto.analyzer.evolutionary.GaIndividual
public abstract class GaIndividual
| Constructor Summary | |
|---|---|
GaIndividual()
|
|
GaIndividual(GaIndividual i)
Copy constructor |
|
GaIndividual(java.lang.String text,
java.lang.String initKey,
GaParameters p)
This constructor takes an initial distribution for the key as a parameter. |
|
| Method Summary | |
|---|---|
abstract void |
calcFitness()
This method should be implemented in the subclass. |
int |
compareTo(java.lang.Object o)
From the Comparable interface. |
abstract void |
cross(GaIndividual i2)
This abstract method should be implemented in the subclass. |
java.lang.String |
displayCrossData()
|
java.lang.String |
getDecrypt()
|
double |
getFitness()
|
java.lang.String |
getKey()
|
abstract int |
mutate(double rate)
This method should be implemented in the subclass. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GaIndividual()
public GaIndividual(java.lang.String text,
java.lang.String initKey,
GaParameters p)
text - -- A string giving the text to be decrypted.initKey - -- A string giving the initial values for the key.public GaIndividual(GaIndividual i)
| Method Detail |
|---|
public abstract void cross(GaIndividual i2)
i1 - an Individual parenti2 - an Individual parentpublic abstract int mutate(double rate)
rate - is the mutation ratepublic abstract void calcFitness()
public double getFitness()
public java.lang.String getKey()
public java.lang.String getDecrypt()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String displayCrossData()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||