|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFitnessEvaluation.RoyalTree.RoyalTree
public class RoyalTree
Constructor Summary | |
---|---|
RoyalTree()
Creates a new instance of RoyalTree |
Method Summary | |
---|---|
boolean |
canCache()
Return true if it is ok to cache the results of the fitness function |
double |
evaluate(java.lang.String s)
Given a string, calculate its fitness. |
double |
evaluateString(Phenotype p)
The phenotype will be a tree in lisp-syntax. |
void |
getFitness(Individual i)
Creates a new instance of FitnessEvaluator |
static void |
main(java.lang.String[] args)
|
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 RoyalTree()
Method Detail |
---|
public void setProperties(java.util.Properties p)
ParameterI
setProperties
in interface ParameterI
p
- object containing propertiespublic double evaluateString(Phenotype p)
p
- The candidate phenotype
public double evaluate(java.lang.String s)
s
- string describing the candidate tree.
public void getFitness(Individual i)
FitnessFunction
getFitness
in interface FitnessFunction
i
- Evaluated individualpublic boolean canCache()
FitnessFunction
canCache
in interface FitnessFunction
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |