66 #ifdef CHECK_MEMORY_LEAKS
68 #endif // CHECK_MEMORY_LEAKS
88 myLastSimDuration(0), myLastIdleDuration(0),
89 myLastVehicleMovementCount(0), myOverallVehicleCount(0), myOverallSimDuration(0) {
127 for (std::vector<MSTrafficLightLogic*>::const_iterator i = logics.begin(); i != logics.end(); ++i) {
140 if (links.size() == 0) {
147 MSTrafficLightLogic::LinkVectorVector::const_iterator j;
148 for (j = links.begin(); j != links.end(); j++) {
149 MSTrafficLightLogic::LinkVector::const_iterator j2;
150 for (j2 = (*j).begin(); j2 != (*j).end(); j2++) {
217 std::vector<GUIGlID> ret;
219 if (!(*i)->isInner() || includeInternal) {
220 ret.push_back((*i)->getGlID());
229 std::vector<GUIGlID> ret;
230 std::vector<std::string> ids;
232 std::string sid = (*i).second->getMicrosimID();
233 if (find(ids.begin(), ids.end(), sid) == ids.end()) {
234 ret.push_back((*i).second->getGlID());
247 for (std::map<std::string, MSDetectorFileOutput*>::const_iterator j = dets.begin(); j != dets.end(); ++j) {
263 for (std::map<std::string, MSJunction*>::const_iterator i = junctions.begin(); i != junctions.end(); ++i) {
267 float* cmin =
new float[2];
268 float* cmax =
new float[2];
272 const std::vector<MSLane*> &lanes = edge->
getLanes();
273 for (std::vector<MSLane*>::const_iterator j = lanes.begin(); j != lanes.end(); ++j) {
274 b.
add((*j)->getShape().getBoxBoundary());
284 throw ProcessError(
"Network size exceeds 1 Lightyear. Please reconsider your inputs.\n");
406 ret->
mkItem(
"loaded vehicles [#]",
true,
408 ret->
mkItem(
"waiting vehicles [#]",
true,
410 ret->
mkItem(
"departed vehicles [#]",
true,
412 ret->
mkItem(
"running vehicles [#]",
true,
414 ret->
mkItem(
"arrived vehicles [#]",
true,
459 throw ProcessError(
"A gui-network was not yet constructed.");