[Avida-SVN] r1104 - branches/coopcomm/source/main
beckma24 at myxo.css.msu.edu
beckma24 at myxo.css.msu.edu
Tue Nov 28 20:29:58 PST 2006
Author: beckma24
Date: 2006-11-28 23:29:50 -0500 (Tue, 28 Nov 2006)
New Revision: 1104
Modified:
branches/coopcomm/source/main/cOrgMessage.h
Log:
Minor change. Added counter to base station message predicate that counts unique ID received by the base station
Modified: branches/coopcomm/source/main/cOrgMessage.h
===================================================================
--- branches/coopcomm/source/main/cOrgMessage.h 2006-11-28 19:57:14 UTC (rev 1103)
+++ branches/coopcomm/source/main/cOrgMessage.h 2006-11-29 04:29:50 UTC (rev 1104)
@@ -146,6 +146,7 @@
cPopulationCell* cell = ids.find(*i)->second;
cell->GetPosition(x, y);
out << x <<" "<< y << ",";
+ m_cell_ids_total_good.insert(cell->GetRandomCellID());
} else {
badMSGs++;
// out << *i << ",";
@@ -153,7 +154,7 @@
}
//write # bad messages in last slot
out << badMSGs;
- out << "}";
+ out << "} "<<m_cell_ids_total_good.size();
}
virtual void reset() {
@@ -162,6 +163,7 @@
unsigned int m_data;
std::set<int> m_cell_ids;
+ std::set<int> m_cell_ids_total_good;
};
More information about the Avida-cvs
mailing list