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

Method AddClassification

avida-core/source/systematics/Unit.cc:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74bool Avida::Systematics::Unit::AddClassification(GroupPtr g)
75{
76 for (int i = 0; i < m_groups->GetSize(); i++) if (m_groups->Get(i)->Role() == g->Role()) return false;
77 m_groups->Push(g);
78 return true;
79}
80
81void Avida::Systematics::Unit::Reclassify(GroupPtr g)
82{

Callers 2

ClassifyNewUnitMethod · 0.80

Calls 4

GetSizeMethod · 0.45
RoleMethod · 0.45
GetMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected