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

Method SetResourceOutflow

avida-core/source/main/cEnvironment.cc:1987–1993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1985}
1986
1987bool cEnvironment::SetResourceOutflow(const cString& name, double _outflow )
1988{
1989 cResource* found_resource = resource_lib.GetResource(name);
1990 if (found_resource == NULL) return false;
1991 found_resource->SetOutflow( _outflow );
1992 return true;
1993}
1994
1995bool cEnvironment::ChangeResource(cReaction* reaction, const cString& res, int process_num)
1996{

Callers

nothing calls this directly

Calls 2

GetResourceMethod · 0.45
SetOutflowMethod · 0.45

Tested by

no test coverage detected