|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFitnessEvaluation.PatternMatch.WordMatch
public class WordMatch
Matches strings
| Constructor Summary | |
|---|---|
WordMatch()
Creates a new instance of WordMatch |
|
WordMatch(java.lang.String s)
Creates a new instance of WordMatch |
|
| Method Summary | |
|---|---|
boolean |
canCache()
Return true if it is ok to cache the results of the fitness function |
double |
evaluateString(Phenotype p)
Compare a string to the word. |
void |
getFitness(Individual i)
Creates a new instance of FitnessEvaluator |
void |
setProperties(java.util.Properties p)
Set properties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WordMatch()
public WordMatch(java.lang.String s)
s - String to match| Method Detail |
|---|
public void setProperties(java.util.Properties p)
ParameterI
setProperties in interface ParameterIp - object containing propertiespublic double evaluateString(Phenotype p)
p - Compared phenotype
public void getFitness(Individual i)
FitnessFunction
getFitness in interface FitnessFunctioni - Evaluated individualpublic boolean canCache()
FitnessFunction
canCache in interface FitnessFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||