public class EcologicalPopulationUpdateWithPropertyShifting extends java.lang.Object implements PopulationUpdate
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
property |
Constructor and Description |
---|
EcologicalPopulationUpdateWithPropertyShifting(java.lang.String property) |
Modifier and Type | Method and Description |
---|---|
protected AgentFamily |
find(java.lang.String name,
java.util.List<AgentFamily> families) |
protected java.math.BigInteger |
getTotalScore(java.util.Collection<AgentScore> scores) |
protected java.math.BigInteger |
getWorstScore(java.util.Map<java.lang.String,AgentScore> s) |
protected java.util.List<AgentScore> |
normalize(java.util.Collection<AgentScore> scores,
java.math.BigInteger shift) |
void |
update(Simulation current,
java.util.Map<java.lang.String,AgentScore> scores,
java.util.List<AgentFamily> population) |
public EcologicalPopulationUpdateWithPropertyShifting(java.lang.String property)
protected java.math.BigInteger getWorstScore(java.util.Map<java.lang.String,AgentScore> s)
protected java.math.BigInteger getTotalScore(java.util.Collection<AgentScore> scores)
protected java.util.List<AgentScore> normalize(java.util.Collection<AgentScore> scores, java.math.BigInteger shift)
public void update(Simulation current, java.util.Map<java.lang.String,AgentScore> scores, java.util.List<AgentFamily> population)
update
in interface PopulationUpdate
protected AgentFamily find(java.lang.String name, java.util.List<AgentFamily> families)