|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rubecula.darwin.domain.world.Attraction_ com.rubecula.darwin.domain.world.Attraction_Uniform
public final class Attraction_Uniform
Lifespan: permanent.
Default implementation of Attraction
such that all attractions are
unity (i.e. don't affect the mating choice).
If you want to implement true sexual selection, you need to extend the
Attraction_
type.
Constructor Summary | |
---|---|
Attraction_Uniform()
|
Method Summary | |
---|---|
double |
getAttraction(TraitMap female,
TraitMap male)
Default method for getAttraction. |
boolean |
isUniform()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attraction_Uniform()
Method Detail |
---|
public double getAttraction(TraitMap female, TraitMap male)
female
- the sex-linked traits for the female.male
- the sex-linked traits for the male.
Attraction.getAttraction(TraitMap,
TraitMap)
public boolean isUniform()
Attraction.isUniform()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |