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

Method SetDemeResourceCount

avida-core/source/main/cDeme.h:269–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 void AdjustSpatialResource(cAvidaContext& ctx, int rel_cellid, int resource_id, double amount);
268 void AdjustResource(cAvidaContext& ctx, int resource_id, double amount);
269 void SetDemeResourceCount(const cResourceCount in_res) { deme_resource_count = in_res; }
270 void ResizeSpatialGrids(const int in_x, const int in_y) { deme_resource_count.ResizeSpatialGrids(in_x, in_y); }
271 void ModifyDemeResCount(cAvidaContext& ctx, const Apto::Array<double> & res_change, const int absolute_cell_id);
272 double GetCellEnergy(int absolute_cell_id, cAvidaContext& ctx) const;

Callers 2

SetupCellGridMethod · 0.80
UpdateResourceCountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected