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

Method Inst_TaskPutResetInputs

avida-core/source/cpu/cHardwareCPU.cc:4179–4186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4177}
4178
4179bool cHardwareCPU::Inst_TaskPutResetInputs(cAvidaContext& ctx)
4180{
4181 bool return_value = Inst_TaskPut(ctx); // Do a normal put
4182 m_organism->GetOrgInterface().ResetInputs(ctx); // Now re-randomize the inputs this organism sees
4183 m_organism->ClearInput(); // Also clear their input buffers, or they can still claim
4184 // rewards for numbers no longer in their environment!
4185 return return_value;
4186}
4187
4188bool cHardwareCPU::Inst_TaskIO(cAvidaContext& ctx)
4189{

Callers

nothing calls this directly

Calls 2

ClearInputMethod · 0.80
ResetInputsMethod · 0.45

Tested by

no test coverage detected