68 #include <mesogui/GUIMEVehicleControl.h>
71 #ifdef CHECK_MEMORY_LEAKS
73 #endif // CHECK_MEMORY_LEAKS
93 myLastSimDuration(0), myLastIdleDuration(0),
94 myLastVehicleMovementCount(0), myOverallVehicleCount(0), myOverallSimDuration(0) {
140 for (std::vector<MSTrafficLightLogic*>::const_iterator i = logics.begin(); i != logics.end(); ++i) {
153 if (links.size() == 0) {
160 MSTrafficLightLogic::LinkVectorVector::const_iterator j;
161 for (j = links.begin(); j != links.end(); j++) {
162 MSTrafficLightLogic::LinkVector::const_iterator j2;
163 for (j2 = (*j).begin(); j2 != (*j).end(); j2++) {
223 std::vector<GUIGlID> ret;
225 if (!(*i)->isInner() || includeInternal) {
226 ret.push_back((*i)->getGlID());
235 std::vector<GUIGlID> ret;
236 std::vector<std::string> ids;
238 std::string sid = (*i).second->getMicrosimID();
239 if (find(ids.begin(), ids.end(), sid) == ids.end()) {
240 ret.push_back((*i).second->getGlID());
253 for (std::map<std::string, MSDetectorFileOutput*>::const_iterator j = dets.begin(); j != dets.end(); ++j) {
269 for (std::map<std::string, MSJunction*>::const_iterator i = junctions.begin(); i != junctions.end(); ++i) {
273 float* cmin =
new float[2];
274 float* cmax =
new float[2];
278 const std::vector<MSLane*>& lanes = edge->
getLanes();
279 for (std::vector<MSLane*>::const_iterator j = lanes.begin(); j != lanes.end(); ++j) {
280 b.
add((*j)->getShape().getBoxBoundary());
291 throw ProcessError(
"Network size exceeds 1 Lightyear. Please reconsider your inputs.\n");
413 ret->
mkItem(
"loaded vehicles [#]",
true,
415 ret->
mkItem(
"waiting vehicles [#]",
true,
417 ret->
mkItem(
"departed vehicles [#]",
true,
419 ret->
mkItem(
"running vehicles [#]",
true,
421 ret->
mkItem(
"arrived vehicles [#]",
true,
423 ret->
mkItem(
"collisions [#]",
true,
425 ret->
mkItem(
"teleports [#]",
true,
470 throw ProcessError(
"A gui-network was not yet constructed.");
481 GUINet::getGUIMEVehicleControl() {