MCPcopy Create free account
hub / github.com/devosoft/avida / ProcessPostUpdate

Method ProcessPostUpdate

avida-core/source/main/cPopulation.cc:6227–6245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6225}
6226
6227void cPopulation::ProcessPostUpdate(cAvidaContext& ctx)
6228{
6229 ProcessUpdateCellActions(ctx);
6230
6231 cStats& stats = m_world->GetStats();
6232
6233 stats.SetNumCreatures(GetNumOrganisms());
6234
6235 UpdateDemeStats(ctx);
6236 UpdateOrganismStats(ctx);
6237 if (m_world->GetConfig().PRED_PREY_SWITCH.Get() == -2 || m_world->GetConfig().PRED_PREY_SWITCH.Get() > -1) {
6238 UpdateFTOrgStats(ctx);
6239 }
6240 if (m_world->GetConfig().MATING_TYPES.Get()) {
6241 UpdateMaleFemaleOrgStats(ctx);
6242 }
6243
6244 for (int i = 0; i < deme_array.GetSize(); i++) deme_array[i].ProcessUpdate(ctx);
6245}
6246
6247void cPopulation::ProcessUpdateCellActions(cAvidaContext& ctx)
6248{

Callers 5

RunMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45

Calls 6

SetNumCreaturesMethod · 0.80
GetConfigMethod · 0.80
GetStatsMethod · 0.45
GetMethod · 0.45
GetSizeMethod · 0.45
ProcessUpdateMethod · 0.45

Tested by

no test coverage detected