|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Fitness
Type representing a pair whose mutual fitness can be estimated. The pair is one Variant and one EcoFactor. They maybe be orthogonal, in which case their weight will be zero. Or they maybe be relevant in which case their weight will be non-zero and their fitness will be a value between 0 and 1.
Method Summary | |
---|---|
int |
compare(double fitness1,
double fitness2)
Compare fitness 1 with fitness 2 (fitter values are higher values). |
java.lang.Number |
getEnvironmentFactor()
|
double |
getFitness(Trait trait,
EcoFactor factor)
|
int |
getWeight(java.lang.String character,
EcoFactor factor)
|
void |
resetAdjustment(java.lang.Number adjustment,
java.lang.String trait)
Scale the current adjustment by the factor passed in. |
void |
resetEnvironmentFactor(java.lang.String trait,
EcoFactor factor)
|
Method Detail |
---|
int compare(double fitness1, double fitness2)
fitness1
- fitness2
-
java.lang.Number getEnvironmentFactor()
double getFitness(Trait trait, EcoFactor factor) throws FitnessException
trait
- factor
-
FitnessException
int getWeight(java.lang.String character, EcoFactor factor)
character
- the identifier (or key) of the phenotypic character whose
traits/variants will be measured for fitness against the given
factor.factor
-
void resetAdjustment(java.lang.Number adjustment, java.lang.String trait)
adjustment
- if 1 is passed in then nothing changes.trait
- XXXvoid resetEnvironmentFactor(java.lang.String trait, EcoFactor factor)
trait
- XXXfactor
- XXX
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |