66 #include <mesogui/GUIMEVehicleControl.h>
69 #ifdef CHECK_MEMORY_LEAKS
71 #endif // CHECK_MEMORY_LEAKS
91 myLastSimDuration(0), myLastIdleDuration(0),
92 myLastVehicleMovementCount(0), myOverallVehicleCount(0), myOverallSimDuration(0) {
141 for (std::vector<MSTrafficLightLogic*>::const_iterator i = logics.begin(); i != logics.end(); ++i) {
154 if (links.size() == 0) {
161 MSTrafficLightLogic::LinkVectorVector::const_iterator j;
162 for (j = links.begin(); j != links.end(); ++j) {
163 MSTrafficLightLogic::LinkVector::const_iterator j2;
164 for (j2 = (*j).begin(); j2 != (*j).end(); ++j2) {
231 std::vector<GUIGlID> ret;
233 if (!(*i)->isInner() || includeInternal) {
234 ret.push_back((*i)->getGlID());
243 std::vector<GUIGlID> ret;
244 std::vector<std::string> ids;
246 std::string sid = (*i).second->getMicrosimID();
247 if (find(ids.begin(), ids.end(), sid) == ids.end()) {
248 ret.push_back((*i).second->getGlID());
260 for (std::vector<SumoXMLTag>::const_iterator i = types.begin(); i != types.end(); ++i) {
262 for (std::map<std::string, MSDetectorFileOutput*>::const_iterator j = dets.begin(); j != dets.end(); ++j) {
278 for (std::map<std::string, MSJunction*>::const_iterator i = junctions.begin(); i != junctions.end(); ++i) {
282 float* cmin =
new float[2];
283 float* cmax =
new float[2];
287 const std::vector<MSLane*>& lanes = edge->
getLanes();
288 for (std::vector<MSLane*>::const_iterator j = lanes.begin(); j != lanes.end(); ++j) {
289 b.
add((*j)->getShape().getBoxBoundary());
300 throw ProcessError(
"Network size exceeds 1 Lightyear. Please reconsider your inputs.\n");
422 ret->
mkItem(
"loaded vehicles [#]",
true,
424 ret->
mkItem(
"waiting vehicles [#]",
true,
426 ret->
mkItem(
"departed vehicles [#]",
true,
428 ret->
mkItem(
"running vehicles [#]",
true,
430 ret->
mkItem(
"arrived vehicles [#]",
true,
432 ret->
mkItem(
"collisions [#]",
true,
434 ret->
mkItem(
"teleports [#]",
true,
479 throw ProcessError(
"A gui-network was not yet constructed.");
502 GUINet::getGUIMEVehicleControl() {
513 const std::vector<MSLane*>& lanes = (*i)->getLanes();
514 for (std::vector<MSLane*>::const_iterator j = lanes.begin(); j != lanes.end(); ++j) {
515 static_cast<GUILane*
>(*j)->updateColor(s);
520 (*i)->updateColor(s);