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

Method Process

avida-core/source/actions/SaveLoadActions.cc:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 static const cString GetDescription() { return "Arguments: <cString fname> [int update=-1] [int cellid_offset=0] [int lineage_offset=0] [bool load_groups=0] [bool load_birth_cells=0] [bool load_avatars] [bool load_rebirth] [bool load_parent_dat] [int load_traceq]"; }
78
79 void Process(cAvidaContext& ctx)
80 {
81 // set the update if requested
82 if (m_update >= 0) m_world->GetStats().SetCurrentUpdate(m_update);
83
84 if (!m_world->GetPopulation().LoadPopulation(m_filename, ctx, m_cellid_offset, m_lineage_offset, m_load_groups, m_load_birth_cells, m_load_avatars, m_load_rebirth, m_load_parent_dat, m_load_traceq)) {
85 m_world->GetDriver().Feedback().Error("failed to load population");
86 m_world->GetDriver().Abort(Avida::INVALID_CONFIG);
87 }
88 }
89};
90
91class cActionLoadParasiteGenotypeList : public cAction

Callers

nothing calls this directly

Calls 6

SetCurrentUpdateMethod · 0.80
LoadPopulationMethod · 0.80
FeedbackMethod · 0.80
GetStatsMethod · 0.45
ErrorMethod · 0.45
AbortMethod · 0.45

Tested by

no test coverage detected