com.rubecula.darwin.domain.world
Interface Attraction
- All Known Implementing Classes:
- Attraction_, Attraction_Uniform
public interface Attraction
This interface enables sexual selection.
- Author:
- Robin Hillyard
getAttraction
double getAttraction(TraitMap female,
TraitMap male)
- Compare the sex-linked traits of the male and the female and determine
the attraction. The attraction isn't necessarily mutual -- it may only
apply to one sex for the other.
- Parameters:
female
- the sex-linked traits for the female.male
- the sex-linked traits for the male.
- Returns:
- a value: 1.0 very attractive; 0.0 unattractive.
isUniform
boolean isUniform()
- Returns:
- true if all pairs of trait maps will yield the same attraction
value.
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.