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

Method SetResourceInflow

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

This method sets the inflow of the named resource. * It changes this value in the environment, then updates it in the * actual population's resource count. */

Source from the content-addressed store, hash-verified

7197 * actual population's resource count.
7198 */
7199void cPopulation::SetResourceInflow(const cString res_name, double new_level)
7200{
7201 environment.SetResourceInflow(res_name, new_level);
7202 resource_count.SetInflow(res_name, new_level);
7203}
7204
7205/* This method sets the outflow of the named resource.
7206 * It changes this value in the enviroment, then updates the

Callers 5

ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
SetDemeResourceInflowMethod · 0.45

Calls 1

SetInflowMethod · 0.45

Tested by

no test coverage detected