|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tostring0.AToString com.rubecula.darwin.domain.environment.Phenome_ com.rubecula.darwin.domain.environment.Phenome_Numerical
public class Phenome_Numerical
Lifespan: permanent.
Concrete class Phenome_Numerical is a simple implementation of
Phenome
with the one policy that Traits can be reduced to a numerical
value. If there is no appropriate numerical value for a trait, then the
Phenome_Gouldian
class should be used, not Phenome_Numerical.
Phenome_Gouldian
Field Summary |
---|
Fields inherited from class com.rubecula.darwin.domain.environment.Phenome_ |
---|
LOG |
Fields inherited from interface net.sf.tostring0.IToString |
---|
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE |
Constructor Summary | |
---|---|
Phenome_Numerical(FitnessEngine fitnessFunction,
NumericalTrait numericalTrait)
Primary Constructor which invokes the super-constructor for, passing in the fitnessFunction as its argument. |
Method Summary | |
---|---|
double |
getTraitValue(java.lang.String trait)
Method to reduce the value of a trait to a (double) number. |
Methods inherited from class com.rubecula.darwin.domain.environment.Phenome_ |
---|
addCharacter, equals, getCharacter, getCharacterKeys, getCharacters, getData, getFitnessEngine, hashCode, setCharacters, setData, size |
Methods inherited from class net.sf.tostring0.AToString |
---|
toString, toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Phenome_Numerical(FitnessEngine fitnessFunction, NumericalTrait numericalTrait)
fitnessFunction
- the FitnessEngine
.numericalTrait
- an implementer of NumericalTrait
.Method Detail |
---|
public double getTraitValue(java.lang.String trait)
getTraitValue
in interface NumericalTrait
trait
- the name of the trait.
NumericalTrait.getTraitValue(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |