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

Method UpdateMerit

avida-core/source/cpu/cTestCPUInterface.cc:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool cTestCPUInterface::UpdateMerit(cAvidaContext& ctx, double new_merit)
142{
143 m_test_info.GetTestPhenotype(m_cur_depth).SetMerit(cMerit(new_merit));
144 return true;
145}
146
147int cTestCPUInterface::GetStateGridID(cAvidaContext& ctx)
148{

Callers 15

applyKilledPreyMeritMethod · 0.45
injureOrgMethod · 0.45
DoDonateMethod · 0.45
DoEnergyDonateMethod · 0.45
DoEnergyDonateAmountMethod · 0.45
Inst_DonateNULLMethod · 0.45
Inst_SleepMethod · 0.45
applyKilledPreyMeritMethod · 0.45
injureOrgMethod · 0.45
Inst_AttackPredMethod · 0.45

Calls 2

cMeritClass · 0.50
SetMeritMethod · 0.45

Tested by

no test coverage detected