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

Method UpdateCellDataExpired

avida-core/source/main/cPopulationCell.cc:581–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581void cPopulationCell::UpdateCellDataExpired()
582{
583 const int expiration = m_world->GetConfig().MARKING_EXPIRE_DATE.Get();
584 const int update = m_world->GetStats().GetUpdate();
585 const int ud_marked = m_cell_data.update;
586 // update only if marked, can expire, and enough time has passed
587 if (ud_marked != -1 && expiration != -1 && (expiration < (update - ud_marked))) ClearCellData();
588}

Callers 6

GetCellDataMethod · 0.80
GetCellDataOrgIDMethod · 0.80
GetCellDataUpdateMethod · 0.80
GetCellDataTerritoryMethod · 0.80
SetupSymbolMapsMethod · 0.80

Calls 4

GetConfigMethod · 0.80
GetUpdateMethod · 0.80
GetMethod · 0.45
GetStatsMethod · 0.45

Tested by

no test coverage detected