| 47 | } |
| 48 | |
| 49 | void Avida::Systematics::Manager::ClassifyNewUnit(UnitPtr u, const RoleClassificationHints* role_hints) |
| 50 | { |
| 51 | for (int i = 0; i < m_arbiters.GetSize(); i++) { |
| 52 | const ClassificationHints* hints = NULL; |
| 53 | if (role_hints && role_hints->Has(m_arbiters[i]->Role())) hints = &(role_hints->Get(m_arbiters[i]->Role())); |
| 54 | GroupPtr g = m_arbiters[i]->ClassifyNewUnit(u, hints); |
| 55 | if (g) u->AddClassification(g); |
| 56 | } |
| 57 | } |
| 58 | bool Avida::Systematics::Manager::AttachTo(World* world) |
| 59 | { |
| 60 | WorldFacetPtr ptr(this); |
nothing calls this directly
no test coverage detected