/// <summary> /// Transfer genomes from GenomeList into GenomeById. /// </summary> public void LoadWorkingDictionary() { GenomeById.Clear(); foreach (var genome in GenomeList) { GenomeById.Add(genome.Id, genome); } GenomeList.Clear(); }
/// <summary> /// Complete all pending genome moves for this species. /// </summary> public void CompletePendingMoves() { // Remove genomes that are marked for removal. foreach (int id in PendingRemovesList) { GenomeById.Remove(id); } // Process pending additions. foreach (var genome in PendingAddsList) { GenomeById.Add(genome.Id, genome); } PendingRemovesList.Clear(); PendingAddsList.Clear(); }