Eclipse SUMO - Simulation of Urban MObility
TraCIAPI.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2012-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 // C++ TraCI client API implementation
18 /****************************************************************************/
19 #ifndef TraCIAPI_h
20 #define TraCIAPI_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <vector>
27 #include <limits>
28 #include <string>
29 #include <sstream>
30 #include <iomanip>
31 #include <foreign/tcpip/socket.h>
32 #include <libsumo/TraCIConstants.h>
33 #include <libsumo/TraCIDefs.h>
34 
35 // ===========================================================================
36 // global definitions
37 // ===========================================================================
38 #define DEFAULT_VIEW "View #0"
39 #define PRECISION 2
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
50 class TraCIAPI {
51 public:
54  TraCIAPI();
55 
57  ~TraCIAPI();
58 
61 
67  void connect(const std::string& host, int port);
68 
70  void setOrder(int order);
71 
73  void close();
75 
77  void simulationStep(double time = 0);
78 
80  void load(const std::vector<std::string>& args);
81 
84  int getUnsignedByte(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
85  int getByte(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
86  int getInt(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
87  double getDouble(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
88  libsumo::TraCIPositionVector getPolygon(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
89  libsumo::TraCIPosition getPosition(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
90  libsumo::TraCIPosition getPosition3D(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
91  std::string getString(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
92  std::vector<std::string> getStringVector(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
93  libsumo::TraCIColor getColor(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
94  libsumo::TraCIStage getTraCIStage(int cmd, int var, const std::string& id, tcpip::Storage* add = 0);
96 
98  return myOutput;
99  }
100 
107  public:
111  TraCIScopeWrapper(TraCIAPI& parent, int cmdGetID, int cmdSetID, int subscribeID, int contextSubscribeID) :
112  myParent(parent),
113  myCmdGetID(cmdGetID),
114  myCmdSetID(cmdSetID),
115  mySubscribeID(subscribeID),
116  myContextSubscribeID(contextSubscribeID) {
117  }
118 
120  virtual ~TraCIScopeWrapper() {}
121 
123  std::string getParameter(const std::string& objectID, const std::string& key) const;
124 
126  void setParameter(const std::string& objectID, const std::string& key, const std::string& value) const;
127 
128  void subscribe(const std::string& objID, const std::vector<int>& vars, double beginTime, double endTime) const;
129  void subscribeContext(const std::string& objID, int domain, double range, const std::vector<int>& vars, double beginTime, double endTime) const;
130 
132  const libsumo::TraCIResults getSubscriptionResults(const std::string& objID) const;
133 
135  const libsumo::SubscriptionResults getContextSubscriptionResults(const std::string& objID) const;
136 
137  // the following are only for internal use
141 
142 
143  protected:
152 
153 
154  private:
157 
160 
161  };
162 
163 
164 
165 
166 
170  class EdgeScope : public TraCIScopeWrapper {
171  public:
173  virtual ~EdgeScope() {}
174 
175  std::vector<std::string> getIDList() const;
176  int getIDCount() const;
177  double getAdaptedTraveltime(const std::string& edgeID, double time) const;
178  double getEffort(const std::string& edgeID, double time) const;
179  double getCO2Emission(const std::string& edgeID) const;
180  double getCOEmission(const std::string& edgeID) const;
181  double getHCEmission(const std::string& edgeID) const;
182  double getPMxEmission(const std::string& edgeID) const;
183  double getNOxEmission(const std::string& edgeID) const;
184  double getFuelConsumption(const std::string& edgeID) const;
185  double getNoiseEmission(const std::string& edgeID) const;
186  double getElectricityConsumption(const std::string& edgeID) const;
187  double getLastStepMeanSpeed(const std::string& edgeID) const;
188  double getLastStepOccupancy(const std::string& edgeID) const;
189  double getLastStepLength(const std::string& edgeID) const;
190  double getTraveltime(const std::string& edgeID) const;
191  int getLastStepVehicleNumber(const std::string& edgeID) const;
192  double getLastStepHaltingNumber(const std::string& edgeID) const;
193  std::vector<std::string> getLastStepVehicleIDs(const std::string& edgeID) const;
194  int getLaneNumber(const std::string& edgeID) const;
195  std::string getStreetName(const std::string& id) const;
196 
197  void adaptTraveltime(const std::string& edgeID, double time, double beginSeconds = 0., double endSeconds = std::numeric_limits<double>::max()) const;
198  void setEffort(const std::string& edgeID, double effort, double beginSeconds = 0., double endSeconds = std::numeric_limits<double>::max()) const;
199  void setMaxSpeed(const std::string& edgeID, double speed) const;
200 
201  private:
203  EdgeScope(const EdgeScope& src);
204 
206  EdgeScope& operator=(const EdgeScope& src);
207 
208  };
209 
210 
211 
212 
213 
217  class GUIScope : public TraCIScopeWrapper {
218  public:
220  virtual ~GUIScope() {}
221 
222  std::vector<std::string> getIDList() const;
223  double getZoom(const std::string& viewID = DEFAULT_VIEW) const;
224  libsumo::TraCIPosition getOffset(const std::string& viewID = DEFAULT_VIEW) const;
225  std::string getSchema(const std::string& viewID = DEFAULT_VIEW) const;
226  libsumo::TraCIPositionVector getBoundary(const std::string& viewID = DEFAULT_VIEW) const;
227  void setZoom(const std::string& viewID, double zoom) const;
228  void setOffset(const std::string& viewID, double x, double y) const;
229  void setSchema(const std::string& viewID, const std::string& schemeName) const;
230  void setBoundary(const std::string& viewID, double xmin, double ymin, double xmax, double ymax) const;
231  void screenshot(const std::string& viewID, const std::string& filename, const int width = -1, const int height = -1) const;
232  void trackVehicle(const std::string& viewID, const std::string& vehID) const;
233 
234  private:
236  GUIScope(const GUIScope& src);
237 
239  GUIScope& operator=(const GUIScope& src);
240 
241  };
242 
243 
244 
245 
246 
251  public:
253  virtual ~InductionLoopScope() {}
254 
255  std::vector<std::string> getIDList() const;
256  double getPosition(const std::string& loopID) const;
257  std::string getLaneID(const std::string& loopID) const;
258  int getLastStepVehicleNumber(const std::string& loopID) const;
259  double getLastStepMeanSpeed(const std::string& loopID) const;
260  std::vector<std::string> getLastStepVehicleIDs(const std::string& loopID) const;
261  double getLastStepOccupancy(const std::string& loopID) const;
262  double getLastStepMeanLength(const std::string& loopID) const;
263  double getTimeSinceDetection(const std::string& loopID) const;
264  std::vector<libsumo::TraCIVehicleData> getVehicleData(const std::string& loopID) const;
265 
266 
267  private:
270 
273 
274  };
275 
276 
277 
278 
279 
284  public:
286  virtual ~JunctionScope() {}
287 
288  std::vector<std::string> getIDList() const;
289  int getIDCount() const;
290  libsumo::TraCIPosition getPosition(const std::string& junctionID) const;
291  libsumo::TraCIPositionVector getShape(const std::string& junctionID) const;
292 
293  private:
295  JunctionScope(const JunctionScope& src);
296 
299 
300  };
301 
302 
303 
304 
305 
309  class LaneScope : public TraCIScopeWrapper {
310  public:
312  virtual ~LaneScope() {}
313 
314  std::vector<std::string> getIDList() const;
315  int getIDCount() const;
316  double getLength(const std::string& laneID) const;
317  double getMaxSpeed(const std::string& laneID) const;
318  double getWidth(const std::string& laneID) const;
319  std::vector<std::string> getAllowed(const std::string& laneID) const;
320  std::vector<std::string> getDisallowed(const std::string& laneID) const;
321  int getLinkNumber(const std::string& laneID) const;
322  std::vector<libsumo::TraCIConnection> getLinks(const std::string& laneID) const;
323  libsumo::TraCIPositionVector getShape(const std::string& laneID) const;
324  std::string getEdgeID(const std::string& laneID) const;
325  double getCO2Emission(const std::string& laneID) const;
326  double getCOEmission(const std::string& laneID) const;
327  double getHCEmission(const std::string& laneID) const;
328  double getPMxEmission(const std::string& laneID) const;
329  double getNOxEmission(const std::string& laneID) const;
330  double getFuelConsumption(const std::string& laneID) const;
331  double getNoiseEmission(const std::string& laneID) const;
332  double getElectricityConsumption(const std::string& laneID) const;
333  double getLastStepMeanSpeed(const std::string& laneID) const;
334  double getLastStepOccupancy(const std::string& laneID) const;
335  double getLastStepLength(const std::string& laneID) const;
336  double getTraveltime(const std::string& laneID) const;
337  int getLastStepVehicleNumber(const std::string& laneID) const;
338  int getLastStepHaltingNumber(const std::string& laneID) const;
339  std::vector<std::string> getLastStepVehicleIDs(const std::string& laneID) const;
340  std::vector<std::string> getFoes(const std::string& laneID, const std::string& toLaneID) const;
341  std::vector<std::string> getInternalFoes(const std::string& laneID) const;
342 
343  void setAllowed(const std::string& laneID, const std::vector<std::string>& allowedClasses) const;
344  void setDisallowed(const std::string& laneID, const std::vector<std::string>& disallowedClasses) const;
345  void setMaxSpeed(const std::string& laneID, double speed) const;
346  void setLength(const std::string& laneID, double length) const;
347 
348  private:
350  LaneScope(const LaneScope& src);
351 
353  LaneScope& operator=(const LaneScope& src);
354 
355  };
356 
357 
362  public:
364  virtual ~LaneAreaScope() {}
365 
366  std::vector<std::string> getIDList() const;
367 
368  private:
370  LaneAreaScope(const LaneAreaScope& src);
371 
374 
375  };
376 
377 
381  class MeMeScope : public TraCIScopeWrapper {
382  public:
384  virtual ~MeMeScope() {}
385 
386  std::vector<std::string> getIDList() const;
387  int getLastStepVehicleNumber(const std::string& detID) const;
388  double getLastStepMeanSpeed(const std::string& detID) const;
389  std::vector<std::string> getLastStepVehicleIDs(const std::string& detID) const;
390  int getLastStepHaltingNumber(const std::string& detID) const;
391 
392  private:
394  MeMeScope(const MeMeScope& src);
395 
397  MeMeScope& operator=(const MeMeScope& src);
398 
399  };
400 
401 
402 
403 
404 
408  class POIScope : public TraCIScopeWrapper {
409  public:
411  virtual ~POIScope() {}
412 
413  std::vector<std::string> getIDList() const;
414  int getIDCount() const;
415  std::string getType(const std::string& poiID) const;
416  libsumo::TraCIPosition getPosition(const std::string& poiID) const;
417  libsumo::TraCIColor getColor(const std::string& poiID) const;
418  double getWidth(const std::string& poiID) const;
419  double getHeight(const std::string& poiID) const;
420  double getAngle(const std::string& poiID) const;
421  std::string getImageFile(const std::string& poiID) const;
422 
423  void setType(const std::string& poiID, const std::string& setType) const;
424  void setPosition(const std::string& poiID, double x, double y) const;
425  void setColor(const std::string& poiID, const libsumo::TraCIColor& c) const;
426  void setWidth(const std::string& poiID, double width) const;
427  void setHeight(const std::string& poiID, double height) const;
428  void setAngle(const std::string& poiID, double angle) const;
429  void setImageFile(const std::string& poiID, const std::string& imageFile) const;
430  void add(const std::string& poiID, double x, double y, const libsumo::TraCIColor& c, const std::string& type, int layer, const std::string& imgFile, double width, double height, double angle) const;
431  void remove(const std::string& poiID, int layer = 0) const;
432 
433  private:
435  POIScope(const POIScope& src);
436 
438  POIScope& operator=(const POIScope& src);
439 
440  };
441 
442 
443 
444 
445 
450  public:
452  virtual ~PolygonScope() {}
453 
454  std::vector<std::string> getIDList() const;
455  int getIDCount() const;
456  double getLineWidth(const std::string& polygonID) const;
457  std::string getType(const std::string& polygonID) const;
458  libsumo::TraCIPositionVector getShape(const std::string& polygonID) const;
459  libsumo::TraCIColor getColor(const std::string& polygonID) const;
460  void setType(const std::string& polygonID, const std::string& setType) const;
461  void setShape(const std::string& polygonID, const libsumo::TraCIPositionVector& shape) const;
462  void setColor(const std::string& polygonID, const libsumo::TraCIColor& c) const;
463  void setLineWidth(const std::string& polygonID, const double lineWidth) const;
464  void add(const std::string& polygonID, const libsumo::TraCIPositionVector& shape, const libsumo::TraCIColor& c, bool fill, const std::string& type, int layer) const;
465  void remove(const std::string& polygonID, int layer = 0) const;
466 
467  private:
469  PolygonScope(const PolygonScope& src);
470 
472  PolygonScope& operator=(const PolygonScope& src);
473 
474  };
475 
476 
477 
478 
479 
483  class RouteScope : public TraCIScopeWrapper {
484  public:
486  virtual ~RouteScope() {}
487 
488  std::vector<std::string> getIDList() const;
489  std::vector<std::string> getEdges(const std::string& routeID) const;
490 
491  void add(const std::string& routeID, const std::vector<std::string>& edges) const;
492 
493  private:
495  RouteScope(const RouteScope& src);
496 
498  RouteScope& operator=(const RouteScope& src);
499 
500  };
501 
502 
503 
508  public:
510  virtual ~SimulationScope() {}
511 
512  int getCurrentTime() const;
513  double getTime() const;
514  int getLoadedNumber() const;
515  std::vector<std::string> getLoadedIDList() const;
516  int getDepartedNumber() const;
517  std::vector<std::string> getDepartedIDList() const;
518  int getArrivedNumber() const;
519  std::vector<std::string> getArrivedIDList() const;
520  int getStartingTeleportNumber() const;
521  std::vector<std::string> getStartingTeleportIDList() const;
522  int getEndingTeleportNumber() const;
523  std::vector<std::string> getEndingTeleportIDList() const;
524  double getDeltaT() const;
526  int getMinExpectedNumber() const;
527 
528  int getBusStopWaiting(const std::string& stopID) const;
529  std::vector<std::string> getBusStopWaitingIDList(const std::string& stopID) const;
530 
531  libsumo::TraCIPosition convert2D(const std::string& edgeID, double pos, int laneIndex = 0, bool toGeo = false) const;
532  libsumo::TraCIPosition convert3D(const std::string& edgeID, double pos, int laneIndex = 0, bool toGeo = false) const;
533  libsumo::TraCIRoadPosition convertRoad(double x, double y, bool isGeo = false, const std::string& vClass = "ignoring") const;
534  libsumo::TraCIPosition convertGeo(double x, double y, bool fromGeo = false) const;
535 
536  double getDistance2D(double x1, double y1, double x2, double y2, bool isGeo = false, bool isDriving = false);
537  double getDistanceRoad(const std::string& edgeID1, double pos1, const std::string& edgeID2, double pos2, bool isDriving = false);
538 
539 
540  private:
542  SimulationScope(const SimulationScope& src);
543 
546 
547  };
548 
549 
550 
551 
552 
557  public:
559  virtual ~TrafficLightScope() {}
560 
561  std::vector<std::string> getIDList() const;
562  int getIDCount() const;
563  std::string getRedYellowGreenState(const std::string& tlsID) const;
564  std::vector<libsumo::TraCILogic> getCompleteRedYellowGreenDefinition(const std::string& tlsID) const;
565  std::vector<std::string> getControlledLanes(const std::string& tlsID) const;
566  std::vector<std::vector<libsumo::TraCILink> > getControlledLinks(const std::string& tlsID) const;
567  std::string getProgram(const std::string& tlsID) const;
568  int getPhase(const std::string& tlsID) const;
569  double getPhaseDuration(const std::string& tlsID) const;
570  double getNextSwitch(const std::string& tlsID) const;
571  std::string getPhaseName(const std::string& tlsID) const;
572 
573  void setRedYellowGreenState(const std::string& tlsID, const std::string& state) const;
574  void setPhase(const std::string& tlsID, int index) const;
575  void setPhaseName(const std::string& tlsID, const std::string& name) const;
576  void setProgram(const std::string& tlsID, const std::string& programID) const;
577  void setPhaseDuration(const std::string& tlsID, double phaseDuration) const;
578  void setCompleteRedYellowGreenDefinition(const std::string& tlsID, const libsumo::TraCILogic& logic) const;
579 
580  private:
583 
586 
587  };
588 
589 
590 
591 
592 
597  public:
599  virtual ~VehicleTypeScope() {}
600 
601  std::vector<std::string> getIDList() const;
602  double getLength(const std::string& typeID) const;
603  double getMaxSpeed(const std::string& typeID) const;
604  double getSpeedFactor(const std::string& typeID) const;
605  double getSpeedDeviation(const std::string& typeID) const;
606  double getAccel(const std::string& typeID) const;
607  double getDecel(const std::string& typeID) const;
608  double getEmergencyDecel(const std::string& typeID) const;
609  double getApparentDecel(const std::string& typeID) const;
610  double getImperfection(const std::string& typeID) const;
611  double getTau(const std::string& typeID) const;
612  std::string getVehicleClass(const std::string& typeID) const;
613  std::string getEmissionClass(const std::string& typeID) const;
614  std::string getShapeClass(const std::string& typeID) const;
615  double getMinGap(const std::string& typeID) const;
616  double getWidth(const std::string& typeID) const;
617  double getHeight(const std::string& typeID) const;
618  libsumo::TraCIColor getColor(const std::string& typeID) const;
619  double getMinGapLat(const std::string& typeID) const;
620  double getMaxSpeedLat(const std::string& typeID) const;
621  std::string getLateralAlignment(const std::string& typeID) const;
622  int getPersonCapacity(const std::string& typeID) const;
623 
624  void setLength(const std::string& typeID, double length) const;
625  void setMaxSpeed(const std::string& typeID, double speed) const;
626  void setVehicleClass(const std::string& typeID, const std::string& clazz) const;
627  void setSpeedFactor(const std::string& typeID, double factor) const;
628  void setSpeedDeviation(const std::string& typeID, double deviation) const;
629  void setEmissionClass(const std::string& typeID, const std::string& clazz) const;
630  void setShapeClass(const std::string& typeID, const std::string& shapeClass) const;
631  void setWidth(const std::string& typeID, double width) const;
632  void setHeight(const std::string& typeID, double height) const;
633  void setMinGap(const std::string& typeID, double minGap) const;
634  void setAccel(const std::string& typeID, double accel) const;
635  void setDecel(const std::string& typeID, double decel) const;
636  void setEmergencyDecel(const std::string& typeID, double decel) const;
637  void setApparentDecel(const std::string& typeID, double decel) const;
638  void setImperfection(const std::string& typeID, double imperfection) const;
639  void setTau(const std::string& typeID, double tau) const;
640  void setColor(const std::string& typeID, const libsumo::TraCIColor& c) const;
641  void setMinGapLat(const std::string& typeID, double minGapLat) const;
642  void setMaxSpeedLat(const std::string& typeID, double speed) const;
643  void setLateralAlignment(const std::string& typeID, const std::string& latAlignment) const;
644  void copy(const std::string& origTypeID, const std::string& newTypeID) const;
645 
646  private:
649 
652 
653  };
654 
655 
656 
657 
658 
663  public:
665  virtual ~VehicleScope() {}
666 
682  SIGNAL_RESET = -1, /*< sending a negative signal resets all signals to their computed values immediately */
683  };
684 
687  std::vector<std::string> getIDList() const;
688  int getIDCount() const;
689  double getSpeed(const std::string& vehicleID) const;
690  double getLateralSpeed(const std::string& vehicleID) const;
691  double getAcceleration(const std::string& vehicleID) const;
692  libsumo::TraCIPosition getPosition(const std::string& vehicleID) const;
693  libsumo::TraCIPosition getPosition3D(const std::string& vehicleID) const;
694  double getAngle(const std::string& vehicleID) const;
695  std::string getRoadID(const std::string& vehicleID) const;
696  std::string getLaneID(const std::string& vehicleID) const;
697  int getLaneIndex(const std::string& vehicleID) const;
698  std::string getTypeID(const std::string& vehicleID) const;
699  std::string getRouteID(const std::string& vehicleID) const;
700  int getRouteIndex(const std::string& vehicleID) const;
701  std::vector<std::string> getRoute(const std::string& vehicleID) const;
702  libsumo::TraCIColor getColor(const std::string& vehicleID) const;
703  double getLanePosition(const std::string& vehicleID) const;
704  double getDistance(const std::string& vehicleID) const;
705  int getSignals(const std::string& vehicleID) const;
706  double getCO2Emission(const std::string& vehicleID) const;
707  double getCOEmission(const std::string& vehicleID) const;
708  double getHCEmission(const std::string& vehicleID) const;
709  double getPMxEmission(const std::string& vehicleID) const;
710  double getNOxEmission(const std::string& vehicleID) const;
711  double getFuelConsumption(const std::string& vehicleID) const;
712  double getNoiseEmission(const std::string& vehicleID) const;
713  double getElectricityConsumption(const std::string& vehicleID) const;
714  int getSpeedMode(const std::string& vehicleID) const;
715  int getStopState(const std::string& vehicleID) const;
716  double getWaitingTime(const std::string& vehicleID) const;
717  double getAccumulatedWaitingTime(const std::string& vehicleID) const;
718  double getSlope(const std::string& vehicleID) const;
719  double getAllowedSpeed(const std::string& vehicleID) const;
720  int getPersonNumber(const std::string& vehicleID) const;
721  std::vector<std::string> getPersonIDList(const std::string& vehicleID) const;
722  double getSpeedWithoutTraCI(const std::string& vehicleID) const;
723  bool isRouteValid(const std::string& vehicleID) const;
724  double getLateralLanePosition(const std::string& vehicleID) const;
725  double getSpeedFactor(const std::string& vehicleID) const;
726  std::string getLine(const std::string& vehicleID) const;
727  std::vector<std::string> getVia(const std::string& vehicleID) const;
728  std::vector<libsumo::TraCINextTLSData> getNextTLS(const std::string& vehID) const;
729  std::vector<libsumo::TraCIBestLanesData> getBestLanes(const std::string& vehicleID) const;
730  std::pair<std::string, double> getLeader(const std::string& vehicleID, double dist) const;
731  int getRoutingMode(const std::string& vehicleID) const;
732  std::pair<int, int> getLaneChangeState(const std::string& vehicleID, int direction) const;
734 
737  double getLength(const std::string& vehicleID) const;
738  double getMaxSpeed(const std::string& vehicleID) const;
739  double getAccel(const std::string& vehicleID) const;
740  double getDecel(const std::string& vehicleID) const;
741  double getEmergencyDecel(const std::string& vehicleID) const;
742  double getApparentDecel(const std::string& vehicleID) const;
743  double getTau(const std::string& vehicleID) const;
744  double getImperfection(const std::string& vehicleID) const;
745  double getSpeedDeviation(const std::string& vehicleID) const;
746  double getMinGap(const std::string& vehicleID) const;
747  double getWidth(const std::string& vehicleID) const;
748  double getHeight(const std::string& veihcleID) const;
749  double getMaxSpeedLat(const std::string& vehicleID) const;
750  double getMinGapLat(const std::string& vehicleID) const;
751  int getPersonCapacity(const std::string& vehicleID) const;
752  std::string getVehicleClass(const std::string& vehicleID) const;
753  std::string getEmissionClass(const std::string& vehicleID) const;
754  std::string getShapeClass(const std::string& vehicleID) const;
755  std::string getLateralAlignment(const std::string& vehicleID) const;
757 
760  void add(const std::string& vehicleID,
761  const std::string& routeID,
762  const std::string& typeID = "DEFAULT_VEHTYPE",
763  std::string depart = "-1",
764  const std::string& departLane = "first",
765  const std::string& departPos = "base",
766  const std::string& departSpeed = "0",
767  const std::string& arrivalLane = "current",
768  const std::string& arrivalPos = "max",
769  const std::string& arrivalSpeed = "current",
770  const std::string& fromTaz = "",
771  const std::string& toTaz = "",
772  const std::string& line = "",
773  int personCapacity = 0,
774  int personNumber = 0) const;
775 
776  void changeTarget(const std::string& vehicleID, const std::string& edgeID) const;
777  void changeLane(const std::string& vehicleID, int laneIndex, double duration) const;
778  void changeLaneRelative(const std::string& vehicleID, int laneChange, double duration) const;
779  void changeSublane(const std::string& vehicleID, double latDist) const;
780  void setRouteID(const std::string& vehicleID, const std::string& routeID) const;
781  void setRoute(const std::string& vehicleID, const std::vector<std::string>& edge) const;
782  void rerouteTraveltime(const std::string& vehicleID, bool currentTravelTimes = true) const;
783  void moveTo(const std::string& vehicleID, const std::string& laneID, double position) const;
784  void moveToXY(const std::string& vehicleID, const std::string& edgeID, const int lane, const double x, const double y, const double angle, const int keepRoute) const;
785  void slowDown(const std::string& vehicleID, double speed, double duration) const;
786  void openGap(const std::string& vehicleID, double newTau, double duration, double changeRate, double maxDecel) const;
787  void setSpeed(const std::string& vehicleID, double speed) const;
788  void setSpeedMode(const std::string& vehicleID, int mode) const;
789  void setStop(const std::string vehicleID, const std::string edgeID, const double endPos = 1.,
790  const int laneIndex = 0, const double duration = std::numeric_limits<double>::max(),
791  const int flags = 0, const double startPos = std::numeric_limits<int>::min(),
792  const double until = -1) const;
793  void setType(const std::string& vehicleID, const std::string& typeID) const;
794  void remove(const std::string& vehicleID, char reason = libsumo::REMOVE_VAPORIZED) const;
795  void setColor(const std::string& vehicleID, const libsumo::TraCIColor& c) const;
796  void setLine(const std::string& vehicleID, const std::string& line) const;
797  void setVia(const std::string& vehicleID, const std::vector<std::string>& via) const;
798  void setSignals(const std::string& vehicleID, int signals) const;
799  void setRoutingMode(const std::string& vehicleID, int routingMode) const;
801 
804  void setShapeClass(const std::string& vehicleID, const std::string& clazz) const;
805  void setEmissionClass(const std::string& vehicleID, const std::string& clazz) const;
806  void setSpeedFactor(const std::string& vehicleID, double factor) const;
807  void setMaxSpeed(const std::string& vehicleID, double speed) const;
809 
811  /* @brief Filters are added to the last modified vehicle context
812  * subscription (call these fucntions right after subscribing) */
814 
815  /* @brief Adds a lane-filter, lanes is a list of relative lane indices (-1 -> right neighboring lane of the ego, 0 -> ego lane, etc.)
816  * noOpposite specifies whether vehicles on opposite direction lanes shall be returned
817  * downstreamDist and upstreamDist specify the range of the search for surrounding vehicles along the road net. */
818  void addSubscriptionFilterLanes(const std::vector<int>& lanes,
819  bool noOpposite = false, double downstreamDist = -1, double upstreamDist = -1) const;
820 
821  /* @brief Omits vehicles on other edges than the ego's */
822  void addSubscriptionFilterNoOpposite() const;
823 
824  /* @brief Limits the downstream distance for resulting vehicles */
825  void addSubscriptionFilterDownstreamDistance(double dist) const;
826 
827  /* @brief Limits the updstream distance for resulting vehicles */
828  void addSubscriptionFilterUpstreamDistance(double dist) const;
829 
830  /* @brief Restricts vehicles returned by the last modified vehicle context subscription to leader and follower of the ego.
831  * downstreamDist and upstreamDist specify the range of the search for leader and follower along the road net. */
832  void addSubscriptionFilterCFManeuver(double downstreamDist = -1, double upstreamDist = -1) const;
833 
834  /* @brief Restricts returned vehicles to neighbor and ego-lane leader
835  * and follower of the ego in the given direction
836  * noOpposite specifies whether vehicles on opposite direction lanes shall be returned
837  * downstreamDist and upstreamDist specify the range of the search for leader and follower along the road net.
838  * Combine with: distance filters; vClass/vType filter. */
839  void addSubscriptionFilterLCManeuver(int direction, bool noOpposite = false, double downstreamDist = -1, double upstreamDist = -1) const;
840 
841  /* @brief Restricts returned vehicles to neighbor and ego-lane leader and follower of the ego.
842  * Combine with: lanes-filter to restrict to one direction; distance filters; vClass/vType filter. */
843  void addSubscriptionFilterLeadFollow(const std::vector<int>& lanes) const;
844 
845  /* @brief Restricts returned vehicles to foes on an upcoming junction */
846  void addSubscriptionFilterTurn(double downstreamDist = -1, double upstreamDist = -1) const;
847 
848  /* @brief Restricts returned vehicles to the given classes */
849  void addSubscriptionFilterVClass(const std::vector<std::string>& vClasses) const;
850 
851  /* @brief Restricts returned vehicles to the given types */
852  void addSubscriptionFilterVType(const std::vector<std::string>& vTypes) const;
853 
855 
856  private:
857  void addSubscriptionFilterEmpty(int filterType) const;
858  void addSubscriptionFilterFloat(int filterType, double val) const;
859  void addSubscriptionFilterStringList(int filterType, const std::vector<std::string>& vals) const;
860  void addSubscriptionFilterByteList(int filterType, const std::vector<int>& vals) const;
861 
863  VehicleScope(const VehicleScope& src);
864 
866  VehicleScope& operator=(const VehicleScope& src);
867 
868  };
869 
874  public:
876  virtual ~PersonScope() {}
877 
878  std::vector<std::string> getIDList() const;
879  int getIDCount() const;
880  double getSpeed(const std::string& personID) const;
881  libsumo::TraCIPosition getPosition(const std::string& personID) const;
882  libsumo::TraCIPosition getPosition3D(const std::string& personID) const;
883  std::string getRoadID(const std::string& personID) const;
884  std::string getTypeID(const std::string& personID) const;
885  double getWaitingTime(const std::string& personID) const;
886  std::string getNextEdge(const std::string& personID) const;
887  std::string getVehicle(const std::string& personID) const;
888  int getRemainingStages(const std::string& personID) const;
889  libsumo::TraCIStage getStage(const std::string& personID, int nextStageIndex = 0) const;
890  std::vector<std::string> getEdges(const std::string& personID, int nextStageIndex = 0) const;
891  double getAngle(const std::string& personID) const;
892  double getSlope(const std::string& personID) const;
893  double getLanePosition(const std::string& personID) const;
894  libsumo::TraCIColor getColor(const std::string& personID) const;
895 
898  double getLength(const std::string& personID) const;
900 
901 
902  void removeStages(const std::string& personID) const;
903  void add(const std::string& personID, const std::string& edgeID, double pos, double depart = libsumo::DEPARTFLAG_NOW, const std::string typeID = "DEFAULT_PEDTYPE");
904  void appendStage(const std::string& personID, const libsumo::TraCIStage& stage);
905  void appendWaitingStage(const std::string& personID, double duration, const std::string& description = "waiting", const std::string& stopID = "");
906  void appendWalkingStage(const std::string& personID, const std::vector<std::string>& edges, double arrivalPos, double duration = -1, double speed = -1, const std::string& stopID = "");
907  void appendDrivingStage(const std::string& personID, const std::string& toEdge, const std::string& lines, const std::string& stopID = "");
908  void removeStage(const std::string& personID, int nextStageIndex) const;
909  void rerouteTraveltime(const std::string& personID) const;
910  void setSpeed(const std::string& personID, double speed) const;
911  void setType(const std::string& personID, const std::string& typeID) const;
912  void setLength(const std::string& personID, double length) const;
913  void setWidth(const std::string& personID, double width) const;
914  void setHeight(const std::string& personID, double height) const;
915  void setMinGap(const std::string& personID, double minGap) const;
916  void setColor(const std::string& personID, const libsumo::TraCIColor& c) const;
917 
918  private:
920  PersonScope(const PersonScope& src);
921 
923  PersonScope& operator=(const PersonScope& src);
924  };
925 
926 
927 
928 public:
959 
960 
961 protected:
964 
967  void send_commandSimulationStep(double time) const;
968 
969 
972  void send_commandClose() const;
973 
974 
977  void send_commandSetOrder(int order) const;
978 
986  void createCommand(int cmdID, int varID, const std::string& objID, tcpip::Storage* add = nullptr) const;
987  void createFilterCommand(int cmdID, int varID, tcpip::Storage* add = nullptr) const;
988 
989 
997  void send_commandSubscribeObjectVariable(int domID, const std::string& objID, double beginTime, double endTime, const std::vector<int>& vars) const;
998 
999 
1009  void send_commandSubscribeObjectContext(int domID, const std::string& objID, double beginTime, double endTime,
1010  int domain, double range, const std::vector<int>& vars) const;
1012 
1013 
1016 
1023  void check_resultState(tcpip::Storage& inMsg, int command, bool ignoreCommandId = false, std::string* acknowledgement = 0) const;
1024 
1028  int check_commandGetResult(tcpip::Storage& inMsg, int command, int expectedType = -1, bool ignoreCommandId = false) const;
1029 
1030  bool processGet(int command, int expectedType, bool ignoreCommandId = false);
1031  bool processSet(int command);
1033 
1034  void readVariableSubscription(int cmdId, tcpip::Storage& inMsg);
1035  void readContextSubscription(int cmdId, tcpip::Storage& inMsg);
1036  void readVariables(tcpip::Storage& inMsg, const std::string& objectID, int variableCount, libsumo::SubscriptionResults& into);
1037 
1038  template <class T>
1039  static inline std::string toString(const T& t, std::streamsize accuracy = PRECISION) {
1040  std::ostringstream oss;
1041  oss.setf(std::ios::fixed, std::ios::floatfield);
1042  oss << std::setprecision(accuracy);
1043  oss << t;
1044  return oss.str();
1045  }
1046 
1048  void closeSocket();
1049 
1050 protected:
1051  std::map<int, TraCIScopeWrapper*> myDomains;
1058 };
1059 
1060 
1061 #endif
1062 
1063 /****************************************************************************/
TraCIAPI::EdgeScope::getCO2Emission
double getCO2Emission(const std::string &edgeID) const
Definition: TraCIAPI.cpp:690
libsumo::CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE
Definition: TraCIConstants.h:171
libsumo::CMD_GET_TL_VARIABLE
TRACI_CONST int CMD_GET_TL_VARIABLE
Definition: TraCIConstants.h:120
TraCIAPI::VehicleScope::getLeader
std::pair< std::string, double > getLeader(const std::string &vehicleID, double dist) const
Definition: TraCIAPI.cpp:2630
TraCIAPI::VehicleScope::SIGNAL_BLINKER_RIGHT
Definition: TraCIAPI.h:668
TraCIAPI::PersonScope::setLength
void setLength(const std::string &personID, double length) const
Definition: TraCIAPI.cpp:3539
TraCIAPI::TrafficLightScope::getProgram
std::string getProgram(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1949
TraCIAPI::POIScope::getHeight
double getHeight(const std::string &poiID) const
Definition: TraCIAPI.cpp:1350
TraCIAPI::VehicleScope::getAllowedSpeed
double getAllowedSpeed(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2736
TraCIAPI::PolygonScope::operator=
PolygonScope & operator=(const PolygonScope &src)
invalidated assignment operator
TraCIAPI::VehicleScope::addSubscriptionFilterNoOpposite
void addSubscriptionFilterNoOpposite() const
Definition: TraCIAPI.cpp:3168
TraCIAPI::EdgeScope::getFuelConsumption
double getFuelConsumption(const std::string &edgeID) const
Definition: TraCIAPI.cpp:716
TraCIAPI::PersonScope::getIDCount
int getIDCount() const
Definition: TraCIAPI.cpp:3290
TraCIAPI::POIScope::getIDCount
int getIDCount() const
Definition: TraCIAPI.cpp:1325
TraCIAPI::SimulationScope::getArrivedNumber
int getArrivedNumber() const
Definition: TraCIAPI.cpp:1657
TraCIAPI::POIScope::add
void add(const std::string &poiID, double x, double y, const libsumo::TraCIColor &c, const std::string &type, int layer, const std::string &imgFile, double width, double height, double angle) const
Definition: TraCIAPI.cpp:1440
TraCIAPI::VehicleTypeScope::getHeight
double getHeight(const std::string &typeID) const
Definition: TraCIAPI.cpp:2169
TraCIAPI::TrafficLightScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:1848
TraCIAPI::VehicleScope::getPosition
libsumo::TraCIPosition getPosition(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2409
libsumo::CMD_GET_POLYGON_VARIABLE
TRACI_CONST int CMD_GET_POLYGON_VARIABLE
Definition: TraCIConstants.h:210
TraCIAPI::VehicleScope::getRoute
std::vector< std::string > getRoute(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2455
TraCIAPI::VehicleScope::getSpeedWithoutTraCI
double getSpeedWithoutTraCI(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2756
TraCIAPI::VehicleScope::changeLane
void changeLane(const std::string &vehicleID, int laneIndex, double duration) const
Definition: TraCIAPI.cpp:2862
TraCIAPI::VehicleScope::changeLaneRelative
void changeLaneRelative(const std::string &vehicleID, int laneChange, double duration) const
Definition: TraCIAPI.cpp:2876
TraCIAPI::PersonScope::setType
void setType(const std::string &personID, const std::string &typeID) const
Definition: TraCIAPI.cpp:3530
TraCIAPI::MeMeScope::operator=
MeMeScope & operator=(const MeMeScope &src)
invalidated assignment operator
TraCIAPI::VehicleScope::changeTarget
void changeTarget(const std::string &vehicleID, const std::string &edgeID) const
Definition: TraCIAPI.cpp:2852
libsumo::CMD_SET_GUI_VARIABLE
TRACI_CONST int CMD_SET_GUI_VARIABLE
Definition: TraCIConstants.h:274
TraCIAPI::MeMeScope::getLastStepMeanSpeed
double getLastStepMeanSpeed(const std::string &detID) const
Definition: TraCIAPI.cpp:1300
TraCIAPI::LaneAreaScope::LaneAreaScope
LaneAreaScope(TraCIAPI &parent)
Definition: TraCIAPI.h:363
TraCIAPI::VehicleScope::setMaxSpeed
void setMaxSpeed(const std::string &vehicleID, double speed) const
Definition: TraCIAPI.cpp:3073
TraCIAPI::VehicleScope::getPersonNumber
int getPersonNumber(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2741
TraCIAPI::GUIScope::getSchema
std::string getSchema(const std::string &viewID=DEFAULT_VIEW) const
Definition: TraCIAPI.cpp:847
TraCIAPI::VehicleScope::getRoadID
std::string getRoadID(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2424
TraCIAPI::VehicleScope::getPosition3D
libsumo::TraCIPosition getPosition3D(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2414
TraCIAPI::VehicleScope::moveToXY
void moveToXY(const std::string &vehicleID, const std::string &edgeID, const int lane, const double x, const double y, const double angle, const int keepRoute) const
Definition: TraCIAPI.cpp:2955
TraCIAPI::VehicleScope::addSubscriptionFilterCFManeuver
void addSubscriptionFilterCFManeuver(double downstreamDist=-1, double upstreamDist=-1) const
Definition: TraCIAPI.cpp:3184
TraCIAPI::LaneScope::getNOxEmission
double getNOxEmission(const std::string &laneID) const
Definition: TraCIAPI.cpp:1155
TraCIAPI::VehicleTypeScope::getMinGapLat
double getMinGapLat(const std::string &typeID) const
Definition: TraCIAPI.cpp:2144
TraCIAPI::PersonScope::getAngle
double getAngle(const std::string &personID) const
Definition: TraCIAPI.cpp:3310
TraCIAPI::VehicleTypeScope::getMaxSpeedLat
double getMaxSpeedLat(const std::string &typeID) const
Definition: TraCIAPI.cpp:2149
TraCIAPI::lane
LaneScope lane
Scope for interaction with lanes.
Definition: TraCIAPI.h:938
libsumo::CMD_SUBSCRIBE_VEHICLE_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_VEHICLE_VARIABLE
Definition: TraCIConstants.h:156
TraCIAPI::EdgeScope::getNOxEmission
double getNOxEmission(const std::string &edgeID) const
Definition: TraCIAPI.cpp:711
TraCIAPI::InductionLoopScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:927
tcpip::Socket
Definition: socket.h:59
TraCIAPI::LaneScope::getInternalFoes
std::vector< std::string > getInternalFoes(const std::string &laneID) const
Definition: TraCIAPI.cpp:1227
TraCIAPI::readContextSubscription
void readContextSubscription(int cmdId, tcpip::Storage &inMsg)
Definition: TraCIAPI.cpp:606
TraCIAPI::close
void close()
ends the simulation and closes the connection
Definition: TraCIAPI.cpp:103
TraCIAPI::LaneScope::getHCEmission
double getHCEmission(const std::string &laneID) const
Definition: TraCIAPI.cpp:1145
TraCIAPI::JunctionScope::getIDCount
int getIDCount() const
Definition: TraCIAPI.cpp:1015
TraCIAPI::processSet
bool processSet(int command)
Definition: TraCIAPI.cpp:343
TraCIAPI::LaneScope::getFoes
std::vector< std::string > getFoes(const std::string &laneID, const std::string &toLaneID) const
Definition: TraCIAPI.cpp:1211
TraCIAPI::VehicleTypeScope::getTau
double getTau(const std::string &typeID) const
Definition: TraCIAPI.cpp:2119
TraCIAPI::LaneScope::getLastStepLength
double getLastStepLength(const std::string &laneID) const
Definition: TraCIAPI.cpp:1185
TraCIAPI::POIScope::getPosition
libsumo::TraCIPosition getPosition(const std::string &poiID) const
Definition: TraCIAPI.cpp:1335
TraCIAPI::PersonScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:3285
TraCIAPI::POIScope::getType
std::string getType(const std::string &poiID) const
Definition: TraCIAPI.cpp:1330
TraCIAPI::VehicleScope::moveTo
void moveTo(const std::string &vehicleID, const std::string &laneID, double position) const
Definition: TraCIAPI.cpp:2942
TraCIAPI::EdgeScope::getNoiseEmission
double getNoiseEmission(const std::string &edgeID) const
Definition: TraCIAPI.cpp:721
TraCIAPI::LaneScope::~LaneScope
virtual ~LaneScope()
Definition: TraCIAPI.h:312
libsumo::TraCIResults
std::map< int, std::shared_ptr< TraCIResult > > TraCIResults
{variable->value}
Definition: TraCIDefs.h:202
libsumo::TraCIPosition
A 3D-position.
Definition: TraCIDefs.h:110
TraCIAPI::PersonScope::getPosition
libsumo::TraCIPosition getPosition(const std::string &personID) const
Definition: TraCIAPI.cpp:3300
TraCIAPI::VehicleScope::setSpeedFactor
void setSpeedFactor(const std::string &vehicleID, double factor) const
Definition: TraCIAPI.cpp:3064
TraCIAPI::GUIScope
Scope for interaction with the gui.
Definition: TraCIAPI.h:217
DEFAULT_VIEW
#define DEFAULT_VIEW
Definition: TraCIAPI.h:38
TraCIAPI::TraCIScopeWrapper::getContextSubscriptionResults
const libsumo::SubscriptionResults getContextSubscriptionResults(const std::string &objID) const
Definition: TraCIAPI.cpp:3657
TraCIAPI::VehicleScope::setRoutingMode
void setRoutingMode(const std::string &vehicleID, int routingMode) const
Definition: TraCIAPI.cpp:3124
libsumo::CMD_SUBSCRIBE_ROUTE_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_ROUTE_CONTEXT
Definition: TraCIConstants.h:176
TraCIAPI::MeMeScope::getLastStepVehicleNumber
int getLastStepVehicleNumber(const std::string &detID) const
Definition: TraCIAPI.cpp:1295
TraCIAPI::POIScope
Scope for interaction with POIs.
Definition: TraCIAPI.h:408
TraCIAPI::VehicleScope::getLength
double getLength(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2721
TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper
virtual ~TraCIScopeWrapper()
Destructor.
Definition: TraCIAPI.h:120
TraCIAPI::junction
JunctionScope junction
Scope for interaction with junctions.
Definition: TraCIAPI.h:936
TraCIAPI::POIScope::setAngle
void setAngle(const std::string &poiID, double angle) const
Definition: TraCIAPI.cpp:1420
TraCIAPI::send_commandSetOrder
void send_commandSetOrder(int order) const
Sends a SetOrder command.
Definition: TraCIAPI.cpp:148
TraCIAPI::VehicleScope::getMinGap
double getMinGap(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2711
TraCIAPI::TrafficLightScope::setPhase
void setPhase(const std::string &tlsID, int index) const
Definition: TraCIAPI.cpp:1984
TraCIAPI::VehicleScope::addSubscriptionFilterStringList
void addSubscriptionFilterStringList(int filterType, const std::vector< std::string > &vals) const
Definition: TraCIAPI.cpp:3259
TraCIAPI::RouteScope::~RouteScope
virtual ~RouteScope()
Definition: TraCIAPI.h:486
TraCIAPI::PersonScope::getVehicle
std::string getVehicle(const std::string &personID) const
Definition: TraCIAPI.cpp:3356
TraCIAPI::VehicleScope::SIGNAL_FOGLIGHT
Definition: TraCIAPI.h:673
TraCIAPI::VehicleTypeScope::setShapeClass
void setShapeClass(const std::string &typeID, const std::string &shapeClass) const
Definition: TraCIAPI.cpp:2300
TraCIAPI::LaneScope::LaneScope
LaneScope(TraCIAPI &parent)
Definition: TraCIAPI.h:311
TraCIAPI::PolygonScope::add
void add(const std::string &polygonID, const libsumo::TraCIPositionVector &shape, const libsumo::TraCIColor &c, bool fill, const std::string &type, int layer) const
Definition: TraCIAPI.cpp:1563
libsumo::CMD_GET_PERSON_VARIABLE
TRACI_CONST int CMD_GET_PERSON_VARIABLE
Definition: TraCIConstants.h:298
TraCIAPI::VehicleScope::SIGNAL_FRONTLIGHT
Definition: TraCIAPI.h:672
TraCIAPI::VehicleTypeScope::getSpeedDeviation
double getSpeedDeviation(const std::string &typeID) const
Definition: TraCIAPI.cpp:2089
TraCIAPI::POIScope::setImageFile
void setImageFile(const std::string &poiID, const std::string &imageFile) const
Definition: TraCIAPI.cpp:1430
libsumo::CMD_SET_POI_VARIABLE
TRACI_CONST int CMD_SET_POI_VARIABLE
Definition: TraCIConstants.h:199
TraCIAPI::getPolygon
libsumo::TraCIPositionVector getPolygon(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:396
TraCIAPI::SimulationScope::getDistanceRoad
double getDistanceRoad(const std::string &edgeID1, double pos1, const std::string &edgeID2, double pos2, bool isDriving=false)
Definition: TraCIAPI.cpp:1823
TraCIAPI::VehicleScope::setSpeedMode
void setSpeedMode(const std::string &vehicleID, int mode) const
Definition: TraCIAPI.cpp:3022
TraCIAPI::TrafficLightScope::getRedYellowGreenState
std::string getRedYellowGreenState(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1858
TraCIAPI::InductionLoopScope::InductionLoopScope
InductionLoopScope(TraCIAPI &parent)
Definition: TraCIAPI.h:252
TraCIAPI::TraCIScopeWrapper::subscribe
void subscribe(const std::string &objID, const std::vector< int > &vars, double beginTime, double endTime) const
Definition: TraCIAPI.cpp:3613
TraCIAPI::person
PersonScope person
Scope for interaction with persons.
Definition: TraCIAPI.h:944
TraCIAPI::TrafficLightScope::operator=
TrafficLightScope & operator=(const TrafficLightScope &src)
invalidated assignment operator
TraCIAPI::LaneAreaScope
Scope for interaction with lane area detectors.
Definition: TraCIAPI.h:361
TraCIAPI::VehicleScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:2379
libsumo::CMD_SET_POLYGON_VARIABLE
TRACI_CONST int CMD_SET_POLYGON_VARIABLE
Definition: TraCIConstants.h:214
TraCIAPI::VehicleTypeScope::setMinGap
void setMinGap(const std::string &typeID, double minGap) const
Definition: TraCIAPI.cpp:2254
TraCIAPI::EdgeScope
Scope for interaction with edges.
Definition: TraCIAPI.h:170
TraCIAPI::LaneScope::getLinks
std::vector< libsumo::TraCIConnection > getLinks(const std::string &laneID) const
Definition: TraCIAPI.cpp:1075
TraCIAPI::VehicleScope::SIGNAL_DOOR_OPEN_LEFT
Definition: TraCIAPI.h:677
TraCIAPI::LaneScope
Scope for interaction with lanes.
Definition: TraCIAPI.h:309
TraCIAPI::VehicleScope::addSubscriptionFilterTurn
void addSubscriptionFilterTurn(double downstreamDist=-1, double upstreamDist=-1) const
Definition: TraCIAPI.cpp:3219
TraCIAPI::LaneScope::setAllowed
void setAllowed(const std::string &laneID, const std::vector< std::string > &allowedClasses) const
Definition: TraCIAPI.cpp:1233
libsumo::CMD_GET_LANEAREA_VARIABLE
TRACI_CONST int CMD_GET_LANEAREA_VARIABLE
Definition: TraCIConstants.h:285
TraCIAPI::setOrder
void setOrder(int order)
set priority (execution order) for the client
Definition: TraCIAPI.cpp:88
TraCIAPI::LaneScope::getLastStepVehicleIDs
std::vector< std::string > getLastStepVehicleIDs(const std::string &laneID) const
Definition: TraCIAPI.cpp:1205
TraCIAPI::VehicleScope::getNoiseEmission
double getNoiseEmission(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2515
TraCIAPI::SimulationScope::getDepartedNumber
int getDepartedNumber() const
Definition: TraCIAPI.cpp:1647
TraCIAPI::GUIScope::setOffset
void setOffset(const std::string &viewID, double x, double y) const
Definition: TraCIAPI.cpp:867
TraCIAPI::VehicleScope::getSlope
double getSlope(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2536
TraCIAPI::SimulationScope::getNetBoundary
libsumo::TraCIPositionVector getNetBoundary() const
Definition: TraCIAPI.cpp:1692
TraCIAPI::SimulationScope::getMinExpectedNumber
int getMinExpectedNumber() const
Definition: TraCIAPI.cpp:1698
TraCIAPI::inductionloop
InductionLoopScope inductionloop
Scope for interaction with inductive loops.
Definition: TraCIAPI.h:934
libsumo::CMD_SET_SIM_VARIABLE
TRACI_CONST int CMD_SET_SIM_VARIABLE
Definition: TraCIConstants.h:259
TraCIAPI::VehicleScope::remove
void remove(const std::string &vehicleID, char reason=libsumo::REMOVE_VAPORIZED) const
Definition: TraCIAPI.cpp:2841
TraCIAPI::TrafficLightScope::setPhaseName
void setPhaseName(const std::string &tlsID, const std::string &name) const
Definition: TraCIAPI.cpp:1993
TraCIAPI::MeMeScope::getLastStepHaltingNumber
int getLastStepHaltingNumber(const std::string &detID) const
Definition: TraCIAPI.cpp:1310
libsumo::ContextSubscriptionResults
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
Definition: TraCIDefs.h:205
TraCIAPI::RouteScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:1603
TraCIAPI::VehicleScope::getLanePosition
double getLanePosition(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2465
TraCIAPI::TrafficLightScope::getControlledLinks
std::vector< std::vector< libsumo::TraCILink > > getControlledLinks(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1921
libsumo::CMD_SUBSCRIBE_PERSON_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_PERSON_CONTEXT
Definition: TraCIConstants.h:294
TraCIAPI::VehicleScope::getLateralAlignment
std::string getLateralAlignment(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2776
TraCIAPI::PolygonScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:1483
TraCIAPI::PersonScope::getWaitingTime
double getWaitingTime(const std::string &personID) const
Definition: TraCIAPI.cpp:3345
libsumo::CMD_SUBSCRIBE_JUNCTION_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_JUNCTION_VARIABLE
Definition: TraCIConstants.h:231
TraCIAPI::VehicleScope::setSignals
void setSignals(const std::string &vehicleID, int signals) const
Definition: TraCIAPI.cpp:3115
TraCIAPI::PolygonScope::~PolygonScope
virtual ~PolygonScope()
Definition: TraCIAPI.h:452
TraCIAPI::POIScope::setWidth
void setWidth(const std::string &poiID, double width) const
Definition: TraCIAPI.cpp:1400
TraCIAPI::EdgeScope::getElectricityConsumption
double getElectricityConsumption(const std::string &edgeID) const
Definition: TraCIAPI.cpp:726
TraCIAPI::PersonScope::getStage
libsumo::TraCIStage getStage(const std::string &personID, int nextStageIndex=0) const
Definition: TraCIAPI.cpp:3366
TraCIAPI::myDomains
std::map< int, TraCIScopeWrapper * > myDomains
Definition: TraCIAPI.h:1051
TraCIAPI::VehicleTypeScope::operator=
VehicleTypeScope & operator=(const VehicleTypeScope &src)
invalidated assignment operator
TraCIAPI::VehicleTypeScope::VehicleTypeScope
VehicleTypeScope(TraCIAPI &parent)
Definition: TraCIAPI.h:598
TraCIAPI::EdgeScope::~EdgeScope
virtual ~EdgeScope()
Definition: TraCIAPI.h:173
TraCIAPI::createFilterCommand
void createFilterCommand(int cmdID, int varID, tcpip::Storage *add=nullptr) const
Definition: TraCIAPI.cpp:185
TraCIAPI::VehicleTypeScope::setVehicleClass
void setVehicleClass(const std::string &typeID, const std::string &clazz) const
Definition: TraCIAPI.cpp:2199
TraCIAPI::VehicleTypeScope::getMaxSpeed
double getMaxSpeed(const std::string &typeID) const
Definition: TraCIAPI.cpp:2079
TraCIAPI::RouteScope::operator=
RouteScope & operator=(const RouteScope &src)
invalidated assignment operator
libsumo::TraCIColor
A color.
Definition: TraCIDefs.h:136
TraCIAPI::TraCIScopeWrapper::getAllContextSubscriptionResults
const libsumo::ContextSubscriptionResults getAllContextSubscriptionResults() const
Definition: TraCIAPI.cpp:3651
TraCIAPI::VehicleScope::getRouteIndex
int getRouteIndex(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2449
libsumo::CMD_SUBSCRIBE_POI_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_POI_CONTEXT
Definition: TraCIConstants.h:191
libsumo::CMD_SUBSCRIBE_PERSON_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_PERSON_VARIABLE
Definition: TraCIConstants.h:304
TraCIAPI::VehicleScope::addSubscriptionFilterVType
void addSubscriptionFilterVType(const std::vector< std::string > &vTypes) const
Definition: TraCIAPI.cpp:3237
TraCIAPI::VehicleScope::rerouteTraveltime
void rerouteTraveltime(const std::string &vehicleID, bool currentTravelTimes=true) const
Definition: TraCIAPI.cpp:2925
libsumo::CMD_SUBSCRIBE_LANEAREA_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_LANEAREA_CONTEXT
Definition: TraCIConstants.h:281
libsumo::CMD_GET_LANE_VARIABLE
TRACI_CONST int CMD_GET_LANE_VARIABLE
Definition: TraCIConstants.h:135
TraCIAPI::TraCIScopeWrapper::mySubscriptionResults
libsumo::SubscriptionResults mySubscriptionResults
Definition: TraCIAPI.h:150
TraCIAPI::EdgeScope::operator=
EdgeScope & operator=(const EdgeScope &src)
invalidated assignment operator
TraCIAPI::LaneScope::getLength
double getLength(const std::string &laneID) const
Definition: TraCIAPI.cpp:1045
TraCIAPI::VehicleScope::getMaxSpeed
double getMaxSpeed(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2404
TraCIAPI::VehicleScope::setLine
void setLine(const std::string &vehicleID, const std::string &line) const
Definition: TraCIAPI.cpp:3094
TraCIAPI::LaneScope::getShape
libsumo::TraCIPositionVector getShape(const std::string &laneID) const
Definition: TraCIAPI.cpp:1125
TraCIAPI::SimulationScope::getStartingTeleportIDList
std::vector< std::string > getStartingTeleportIDList() const
Definition: TraCIAPI.cpp:1672
TraCIAPI::LaneScope::getLastStepHaltingNumber
int getLastStepHaltingNumber(const std::string &laneID) const
Definition: TraCIAPI.cpp:1200
TraCIAPI::SimulationScope::getBusStopWaitingIDList
std::vector< std::string > getBusStopWaitingIDList(const std::string &stopID) const
Definition: TraCIAPI.cpp:1708
TraCIAPI::VehicleScope::getCO2Emission
double getCO2Emission(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2485
libsumo::CMD_SUBSCRIBE_VEHICLE_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_VEHICLE_CONTEXT
Definition: TraCIConstants.h:146
TraCIAPI::getTraCIStage
libsumo::TraCIStage getTraCIStage(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:481
TraCIAPI::VehicleScope::setEmissionClass
void setEmissionClass(const std::string &vehicleID, const std::string &clazz) const
Definition: TraCIAPI.cpp:3143
TraCIAPI::getColor
libsumo::TraCIColor getColor(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:467
TraCIAPI::GUIScope::~GUIScope
virtual ~GUIScope()
Definition: TraCIAPI.h:220
TraCIAPI::InductionLoopScope
Scope for interaction with inductive loops.
Definition: TraCIAPI.h:250
TraCIAPI::LaneScope::getEdgeID
std::string getEdgeID(const std::string &laneID) const
Definition: TraCIAPI.cpp:1130
TraCIAPI::PersonScope::setWidth
void setWidth(const std::string &personID, double width) const
Definition: TraCIAPI.cpp:3549
TraCIAPI::SimulationScope::getStartingTeleportNumber
int getStartingTeleportNumber() const
Definition: TraCIAPI.cpp:1667
TraCIAPI::PersonScope::rerouteTraveltime
void rerouteTraveltime(const std::string &personID) const
Definition: TraCIAPI.cpp:3392
libsumo::CMD_GET_VEHICLE_VARIABLE
TRACI_CONST int CMD_GET_VEHICLE_VARIABLE
Definition: TraCIConstants.h:150
libsumo::CMD_SET_VEHICLE_VARIABLE
TRACI_CONST int CMD_SET_VEHICLE_VARIABLE
Definition: TraCIConstants.h:154
libsumo::CMD_GET_VEHICLETYPE_VARIABLE
TRACI_CONST int CMD_GET_VEHICLETYPE_VARIABLE
Definition: TraCIConstants.h:165
TraCIAPI::InductionLoopScope::getLastStepMeanSpeed
double getLastStepMeanSpeed(const std::string &loopID) const
Definition: TraCIAPI.cpp:947
TraCIAPI::EdgeScope::getLastStepVehicleIDs
std::vector< std::string > getLastStepVehicleIDs(const std::string &edgeID) const
Definition: TraCIAPI.cpp:761
TraCIAPI::LaneAreaScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:1279
libsumo::DEPARTFLAG_NOW
TRACI_CONST int DEPARTFLAG_NOW
Definition: TraCIConstants.h:426
TraCIAPI::VehicleScope::addSubscriptionFilterFloat
void addSubscriptionFilterFloat(int filterType, double val) const
Definition: TraCIAPI.cpp:3249
TraCIAPI::TrafficLightScope::setRedYellowGreenState
void setRedYellowGreenState(const std::string &tlsID, const std::string &state) const
Definition: TraCIAPI.cpp:1975
TraCIAPI::createCommand
void createCommand(int cmdID, int varID, const std::string &objID, tcpip::Storage *add=nullptr) const
Sends a GetVariable / SetVariable request if mySocket is connected. Otherwise writes to myOutput only...
Definition: TraCIAPI.cpp:161
TraCIAPI::EdgeScope::getLastStepOccupancy
double getLastStepOccupancy(const std::string &edgeID) const
Definition: TraCIAPI.cpp:736
TraCIAPI::RouteScope
Scope for interaction with routes.
Definition: TraCIAPI.h:483
libsumo
Definition: Edge.cpp:30
TraCIAPI::InductionLoopScope::~InductionLoopScope
virtual ~InductionLoopScope()
Definition: TraCIAPI.h:253
TraCIAPI::TraCIScopeWrapper
An abstract interface for accessing type-dependent values.
Definition: TraCIAPI.h:106
TraCIAPI::POIScope::setHeight
void setHeight(const std::string &poiID, double height) const
Definition: TraCIAPI.cpp:1410
TraCIAPI::MeMeScope::getLastStepVehicleIDs
std::vector< std::string > getLastStepVehicleIDs(const std::string &detID) const
Definition: TraCIAPI.cpp:1305
TraCIAPI::VehicleScope::addSubscriptionFilterLCManeuver
void addSubscriptionFilterLCManeuver(int direction, bool noOpposite=false, double downstreamDist=-1, double upstreamDist=-1) const
Definition: TraCIAPI.cpp:3195
TraCIAPI::VehicleScope::getImperfection
double getImperfection(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2691
TraCIAPI::GUIScope::screenshot
void screenshot(const std::string &viewID, const std::string &filename, const int width=-1, const int height=-1) const
Definition: TraCIAPI.cpp:899
TraCIAPI::PersonScope::appendDrivingStage
void appendDrivingStage(const std::string &personID, const std::string &toEdge, const std::string &lines, const std::string &stopID="")
Definition: TraCIAPI.cpp:3493
TraCIAPI::VehicleScope::getNOxEmission
double getNOxEmission(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2505
libsumo::CMD_SET_JUNCTION_VARIABLE
TRACI_CONST int CMD_SET_JUNCTION_VARIABLE
Definition: TraCIConstants.h:229
TraCIAPI::LaneScope::getPMxEmission
double getPMxEmission(const std::string &laneID) const
Definition: TraCIAPI.cpp:1150
libsumo::CMD_SUBSCRIBE_EDGE_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_EDGE_VARIABLE
Definition: TraCIConstants.h:246
TraCIAPI::VehicleTypeScope::setSpeedDeviation
void setSpeedDeviation(const std::string &typeID, double deviation) const
Definition: TraCIAPI.cpp:2217
TraCIAPI::GUIScope::getOffset
libsumo::TraCIPosition getOffset(const std::string &viewID=DEFAULT_VIEW) const
Definition: TraCIAPI.cpp:842
TraCIAPI::PersonScope::operator=
PersonScope & operator=(const PersonScope &src)
invalidated assignment operator
TraCIAPI::EdgeScope::getPMxEmission
double getPMxEmission(const std::string &edgeID) const
Definition: TraCIAPI.cpp:706
TraCIAPI::TraCIScopeWrapper::getParameter
std::string getParameter(const std::string &objectID, const std::string &key) const
retrieve generic paramter
Definition: TraCIAPI.cpp:3590
TraCIAPI::VehicleScope::getLateralSpeed
double getLateralSpeed(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2394
TraCIAPI::load
void load(const std::vector< std::string > &args)
Let sumo load a simulation using the given command line like options.
Definition: TraCIAPI.cpp:643
libsumo::CMD_SUBSCRIBE_POLYGON_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_POLYGON_CONTEXT
Definition: TraCIConstants.h:206
TraCIAPI::VehicleScope::addSubscriptionFilterLeadFollow
void addSubscriptionFilterLeadFollow(const std::vector< int > &lanes) const
Definition: TraCIAPI.cpp:3213
TraCIAPI::VehicleScope::getHeight
double getHeight(const std::string &veihcleID) const
Definition: TraCIAPI.cpp:2726
TraCIAPI::SimulationScope::getEndingTeleportNumber
int getEndingTeleportNumber() const
Definition: TraCIAPI.cpp:1677
TraCIAPI::PolygonScope::remove
void remove(const std::string &polygonID, int layer=0) const
Definition: TraCIAPI.cpp:1590
TraCIAPI::PersonScope::~PersonScope
virtual ~PersonScope()
Definition: TraCIAPI.h:876
TraCIAPI::~TraCIAPI
~TraCIAPI()
Destructor.
Definition: TraCIAPI.cpp:69
TraCIAPI::EdgeScope::getStreetName
std::string getStreetName(const std::string &id) const
Definition: TraCIAPI.cpp:773
TraCIAPI::VehicleScope::getStopState
int getStopState(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2666
libsumo::CMD_SUBSCRIBE_SIM_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_SIM_CONTEXT
Definition: TraCIConstants.h:251
TraCIAPI::LaneScope::getDisallowed
std::vector< std::string > getDisallowed(const std::string &laneID) const
Definition: TraCIAPI.cpp:1065
TraCIAPI::PersonScope::setHeight
void setHeight(const std::string &personID, double height) const
Definition: TraCIAPI.cpp:3558
TraCIAPI::LaneScope::getLastStepVehicleNumber
int getLastStepVehicleNumber(const std::string &laneID) const
Definition: TraCIAPI.cpp:1195
libsumo::TraCILogic
Definition: TraCIDefs.h:233
TraCIAPI::closeSocket
void closeSocket()
Closes the connection.
Definition: TraCIAPI.cpp:113
TraCIAPI::getCommandStorage
const tcpip::Storage & getCommandStorage() const
Definition: TraCIAPI.h:97
TraCIAPI::PolygonScope::PolygonScope
PolygonScope(TraCIAPI &parent)
Definition: TraCIAPI.h:451
TraCIAPI::VehicleScope::addSubscriptionFilterUpstreamDistance
void addSubscriptionFilterUpstreamDistance(double dist) const
Definition: TraCIAPI.cpp:3178
TraCIAPI::simulationStep
void simulationStep(double time=0)
Advances by one step (or up to the given time)
Definition: TraCIAPI.cpp:621
TraCIAPI::VehicleScope::setColor
void setColor(const std::string &vehicleID, const libsumo::TraCIColor &c) const
Definition: TraCIAPI.cpp:3082
TraCIAPI::send_commandSubscribeObjectVariable
void send_commandSubscribeObjectVariable(int domID, const std::string &objID, double beginTime, double endTime, const std::vector< int > &vars) const
Sends a SubscribeVariable request.
Definition: TraCIAPI.cpp:208
TraCIAPI::VehicleTypeScope::setColor
void setColor(const std::string &typeID, const libsumo::TraCIColor &c) const
Definition: TraCIAPI.cpp:2363
libsumo::CMD_GET_POI_VARIABLE
TRACI_CONST int CMD_GET_POI_VARIABLE
Definition: TraCIConstants.h:195
TraCIAPI::LaneScope::getLastStepOccupancy
double getLastStepOccupancy(const std::string &laneID) const
Definition: TraCIAPI.cpp:1180
TraCIAPI::SimulationScope::convert2D
libsumo::TraCIPosition convert2D(const std::string &edgeID, double pos, int laneIndex=0, bool toGeo=false) const
Definition: TraCIAPI.cpp:1714
TraCIConstants.h
TraCIAPI::VehicleScope::setType
void setType(const std::string &vehicleID, const std::string &typeID) const
Definition: TraCIAPI.cpp:3055
libsumo::CMD_SUBSCRIBE_GUI_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_GUI_VARIABLE
Definition: TraCIConstants.h:276
TraCIAPI::trafficlights
TrafficLightScope trafficlights
Scope for interaction with traffic lights.
Definition: TraCIAPI.h:954
TraCIAPI::TrafficLightScope::getNextSwitch
double getNextSwitch(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1969
TraCIAPI::getInt
int getInt(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:376
TraCIAPI
C++ TraCI client API implementation.
Definition: TraCIAPI.h:50
TraCIAPI::GUIScope::setSchema
void setSchema(const std::string &viewID, const std::string &schemeName) const
Definition: TraCIAPI.cpp:877
libsumo::CMD_SUBSCRIBE_SIM_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_SIM_VARIABLE
Definition: TraCIConstants.h:261
TraCIAPI::VehicleScope::addSubscriptionFilterDownstreamDistance
void addSubscriptionFilterDownstreamDistance(double dist) const
Definition: TraCIAPI.cpp:3173
TraCIAPI::VehicleScope::addSubscriptionFilterLanes
void addSubscriptionFilterLanes(const std::vector< int > &lanes, bool noOpposite=false, double downstreamDist=-1, double upstreamDist=-1) const
Definition: TraCIAPI.cpp:3152
TraCIAPI::EdgeScope::getHCEmission
double getHCEmission(const std::string &edgeID) const
Definition: TraCIAPI.cpp:701
TraCIAPI::POIScope::getImageFile
std::string getImageFile(const std::string &poiID) const
Definition: TraCIAPI.cpp:1360
TraCIAPI::readVariables
void readVariables(tcpip::Storage &inMsg, const std::string &objectID, int variableCount, libsumo::SubscriptionResults &into)
Definition: TraCIAPI.cpp:530
libsumo::CMD_SET_VEHICLETYPE_VARIABLE
TRACI_CONST int CMD_SET_VEHICLETYPE_VARIABLE
Definition: TraCIConstants.h:169
TraCIAPI::VehicleScope::getElectricityConsumption
double getElectricityConsumption(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2520
TraCIAPI::VehicleScope::getLaneIndex
int getLaneIndex(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2434
TraCIAPI::toString
static std::string toString(const T &t, std::streamsize accuracy=PRECISION)
Definition: TraCIAPI.h:1039
TraCIAPI::JunctionScope
Scope for interaction with junctions.
Definition: TraCIAPI.h:283
TraCIAPI::VehicleTypeScope::getWidth
double getWidth(const std::string &typeID) const
Definition: TraCIAPI.cpp:2164
libsumo::REMOVE_VAPORIZED
TRACI_CONST int REMOVE_VAPORIZED
Definition: TraCIConstants.h:389
TraCIAPI::InductionLoopScope::getVehicleData
std::vector< libsumo::TraCIVehicleData > getVehicleData(const std::string &loopID) const
Definition: TraCIAPI.cpp:973
TraCIAPI::SimulationScope::getEndingTeleportIDList
std::vector< std::string > getEndingTeleportIDList() const
Definition: TraCIAPI.cpp:1682
TraCIAPI::PersonScope::getLanePosition
double getLanePosition(const std::string &personID) const
Definition: TraCIAPI.cpp:3320
TraCIAPI::InductionLoopScope::operator=
InductionLoopScope & operator=(const InductionLoopScope &src)
invalidated assignment operator
TraCIAPI::PersonScope::PersonScope
PersonScope(TraCIAPI &parent)
Definition: TraCIAPI.h:875
libsumo::CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT
Definition: TraCIConstants.h:161
TraCIAPI::VehicleTypeScope::setMaxSpeed
void setMaxSpeed(const std::string &typeID, double speed) const
Definition: TraCIAPI.cpp:2190
TraCIAPI::VehicleScope::SIGNAL_HIGHBEAM
Definition: TraCIAPI.h:674
TraCIAPI::SimulationScope::convert3D
libsumo::TraCIPosition convert3D(const std::string &edgeID, double pos, int laneIndex=0, bool toGeo=false) const
Definition: TraCIAPI.cpp:1736
libsumo::CMD_SET_LANE_VARIABLE
TRACI_CONST int CMD_SET_LANE_VARIABLE
Definition: TraCIConstants.h:139
TraCIAPI::TraCIScopeWrapper::setParameter
void setParameter(const std::string &objectID, const std::string &key, const std::string &value) const
set generic paramter
Definition: TraCIAPI.cpp:3599
TraCIAPI::JunctionScope::getPosition
libsumo::TraCIPosition getPosition(const std::string &junctionID) const
Definition: TraCIAPI.cpp:1021
TraCIAPI::SimulationScope::~SimulationScope
virtual ~SimulationScope()
Definition: TraCIAPI.h:510
TraCIAPI::GUIScope::getBoundary
libsumo::TraCIPositionVector getBoundary(const std::string &viewID=DEFAULT_VIEW) const
Definition: TraCIAPI.cpp:852
TraCIAPI::VehicleScope::getVia
std::vector< std::string > getVia(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2547
TraCIAPI::POIScope::POIScope
POIScope(TraCIAPI &parent)
Definition: TraCIAPI.h:410
TraCIAPI::EdgeScope::getIDCount
int getIDCount() const
Definition: TraCIAPI.cpp:669
TraCIAPI::EdgeScope::EdgeScope
EdgeScope(TraCIAPI &parent)
Definition: TraCIAPI.h:172
libsumo::TraCIStage
Definition: TraCIDefs.h:345
TraCIAPI::VehicleTypeScope::setLength
void setLength(const std::string &typeID, double length) const
Definition: TraCIAPI.cpp:2181
TraCIAPI::MeMeScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:1290
TraCIAPI::LaneScope::getFuelConsumption
double getFuelConsumption(const std::string &laneID) const
Definition: TraCIAPI.cpp:1160
TraCIAPI::EdgeScope::getLastStepHaltingNumber
double getLastStepHaltingNumber(const std::string &edgeID) const
Definition: TraCIAPI.cpp:756
TraCIAPI::VehicleScope::getEmissionClass
std::string getEmissionClass(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2552
TraCIAPI::GUIScope::operator=
GUIScope & operator=(const GUIScope &src)
invalidated assignment operator
TraCIAPI::VehicleTypeScope::getLateralAlignment
std::string getLateralAlignment(const std::string &typeID) const
Definition: TraCIAPI.cpp:2154
PRECISION
#define PRECISION
Definition: TraCIAPI.h:39
libsumo::CMD_SUBSCRIBE_POLYGON_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_POLYGON_VARIABLE
Definition: TraCIConstants.h:216
TraCIAPI::VehicleTypeScope::getPersonCapacity
int getPersonCapacity(const std::string &typeID) const
Definition: TraCIAPI.cpp:2159
libsumo::CMD_SUBSCRIBE_LANEAREA_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_LANEAREA_VARIABLE
Definition: TraCIConstants.h:289
TraCIAPI::PersonScope::setMinGap
void setMinGap(const std::string &personID, double minGap) const
Definition: TraCIAPI.cpp:3567
TraCIAPI::getPosition3D
libsumo::TraCIPosition getPosition3D(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:430
TraCIAPI::VehicleScope::getSpeed
double getSpeed(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2389
TraCIAPI::VehicleTypeScope::getColor
libsumo::TraCIColor getColor(const std::string &typeID) const
Definition: TraCIAPI.cpp:2174
TraCIAPI::send_commandSubscribeObjectContext
void send_commandSubscribeObjectContext(int domID, const std::string &objID, double beginTime, double endTime, int domain, double range, const std::vector< int > &vars) const
Sends a SubscribeContext request.
Definition: TraCIAPI.cpp:236
libsumo::CMD_SET_TL_VARIABLE
TRACI_CONST int CMD_SET_TL_VARIABLE
Definition: TraCIConstants.h:124
libsumo::CMD_SET_PERSON_VARIABLE
TRACI_CONST int CMD_SET_PERSON_VARIABLE
Definition: TraCIConstants.h:302
TraCIAPI::MeMeScope
Scope for interaction with multi entry/-exit detectors.
Definition: TraCIAPI.h:381
TraCIAPI::TraCIScopeWrapper::operator=
TraCIScopeWrapper & operator=(const TraCIScopeWrapper &src)
invalidated assignment operator
TraCIAPI::PolygonScope::getIDCount
int getIDCount() const
Definition: TraCIAPI.cpp:1488
TraCIAPI::PolygonScope::getType
std::string getType(const std::string &polygonID) const
Definition: TraCIAPI.cpp:1498
libsumo::CMD_GET_SIM_VARIABLE
TRACI_CONST int CMD_GET_SIM_VARIABLE
Definition: TraCIConstants.h:255
TraCIAPI::LaneAreaScope::~LaneAreaScope
virtual ~LaneAreaScope()
Definition: TraCIAPI.h:364
TraCIAPI::getStringVector
std::vector< std::string > getStringVector(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:453
TraCIAPI::VehicleTypeScope::setMinGapLat
void setMinGapLat(const std::string &typeID, double minGapLat) const
Definition: TraCIAPI.cpp:2264
TraCIAPI::TrafficLightScope::getPhase
int getPhase(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1954
TraCIAPI::VehicleTypeScope::setWidth
void setWidth(const std::string &typeID, double width) const
Definition: TraCIAPI.cpp:2236
TraCIAPI::route
RouteScope route
Scope for interaction with routes.
Definition: TraCIAPI.h:950
TraCIAPI::GUIScope::setZoom
void setZoom(const std::string &viewID, double zoom) const
Definition: TraCIAPI.cpp:858
TraCIAPI::VehicleTypeScope::setEmissionClass
void setEmissionClass(const std::string &typeID, const std::string &clazz) const
Definition: TraCIAPI.cpp:2227
TraCIAPI::TrafficLightScope::TrafficLightScope
TrafficLightScope(TraCIAPI &parent)
Definition: TraCIAPI.h:558
TraCIAPI::POIScope::setType
void setType(const std::string &poiID, const std::string &setType) const
Definition: TraCIAPI.cpp:1366
TraCIAPI::EdgeScope::getLastStepMeanSpeed
double getLastStepMeanSpeed(const std::string &edgeID) const
Definition: TraCIAPI.cpp:731
TraCIAPI::VehicleTypeScope::setHeight
void setHeight(const std::string &typeID, double height) const
Definition: TraCIAPI.cpp:2245
TraCIAPI::PersonScope::appendWalkingStage
void appendWalkingStage(const std::string &personID, const std::vector< std::string > &edges, double arrivalPos, double duration=-1, double speed=-1, const std::string &stopID="")
Definition: TraCIAPI.cpp:3472
TraCIAPI::VehicleScope::getHCEmission
double getHCEmission(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2495
TraCIAPI::LaneScope::getTraveltime
double getTraveltime(const std::string &laneID) const
Definition: TraCIAPI.cpp:1190
TraCIAPI::TraCIScopeWrapper::myParent
TraCIAPI & myParent
The parent TraCI client which offers the connection.
Definition: TraCIAPI.h:145
TraCIAPI::InductionLoopScope::getLastStepVehicleNumber
int getLastStepVehicleNumber(const std::string &loopID) const
Definition: TraCIAPI.cpp:942
TraCIAPI::InductionLoopScope::getPosition
double getPosition(const std::string &loopID) const
Definition: TraCIAPI.cpp:932
TraCIAPI::LaneScope::getMaxSpeed
double getMaxSpeed(const std::string &laneID) const
Definition: TraCIAPI.cpp:1050
TraCIAPI::VehicleScope::getAccel
double getAccel(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2676
TraCIAPI::JunctionScope::getShape
libsumo::TraCIPositionVector getShape(const std::string &junctionID) const
Definition: TraCIAPI.cpp:1026
TraCIAPI::VehicleScope::SIGNAL_EMERGENCY_BLUE
Definition: TraCIAPI.h:679
TraCIAPI::VehicleTypeScope::getMinGap
double getMinGap(const std::string &typeID) const
Definition: TraCIAPI.cpp:2139
TraCIAPI::VehicleTypeScope::setDecel
void setDecel(const std::string &typeID, double decel) const
Definition: TraCIAPI.cpp:2318
TraCIAPI::multientryexit
MeMeScope multientryexit
Scope for interaction with multi-entry/-exit detectors.
Definition: TraCIAPI.h:942
TraCIAPI::TrafficLightScope::getCompleteRedYellowGreenDefinition
std::vector< libsumo::TraCILogic > getCompleteRedYellowGreenDefinition(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1863
TraCIAPI::RouteScope::getEdges
std::vector< std::string > getEdges(const std::string &routeID) const
Definition: TraCIAPI.cpp:1608
TraCIAPI::InductionLoopScope::getTimeSinceDetection
double getTimeSinceDetection(const std::string &loopID) const
Definition: TraCIAPI.cpp:967
TraCIAPI::InductionLoopScope::getLastStepVehicleIDs
std::vector< std::string > getLastStepVehicleIDs(const std::string &loopID) const
Definition: TraCIAPI.cpp:952
TraCIAPI::VehicleScope::setVia
void setVia(const std::string &vehicleID, const std::vector< std::string > &via) const
Definition: TraCIAPI.cpp:3103
TraCIAPI::VehicleScope::getCOEmission
double getCOEmission(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2490
TraCIAPI::VehicleScope::getWidth
double getWidth(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2716
TraCIAPI::LaneScope::getCOEmission
double getCOEmission(const std::string &laneID) const
Definition: TraCIAPI.cpp:1140
libsumo::CMD_SUBSCRIBE_JUNCTION_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_JUNCTION_CONTEXT
Definition: TraCIConstants.h:221
TraCIAPI::VehicleScope::getSignals
int getSignals(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2475
TraCIAPI::LaneScope::getLastStepMeanSpeed
double getLastStepMeanSpeed(const std::string &laneID) const
Definition: TraCIAPI.cpp:1175
TraCIAPI::simulation
SimulationScope simulation
Scope for interaction with the simulation.
Definition: TraCIAPI.h:952
TraCIAPI::VehicleScope::setShapeClass
void setShapeClass(const std::string &vehicleID, const std::string &clazz) const
Definition: TraCIAPI.cpp:3133
TraCIAPI::VehicleTypeScope::getDecel
double getDecel(const std::string &typeID) const
Definition: TraCIAPI.cpp:2099
TraCIAPI::SimulationScope::getDepartedIDList
std::vector< std::string > getDepartedIDList() const
Definition: TraCIAPI.cpp:1652
TraCIAPI::VehicleScope::getSpeedFactor
double getSpeedFactor(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2696
TraCIAPI::MeMeScope::~MeMeScope
virtual ~MeMeScope()
Definition: TraCIAPI.h:384
TraCIAPI::VehicleScope::SIGNAL_DOOR_OPEN_RIGHT
Definition: TraCIAPI.h:678
TraCIAPI::VehicleScope::getAngle
double getAngle(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2419
TraCIAPI::VehicleScope::getBestLanes
std::vector< libsumo::TraCIBestLanesData > getBestLanes(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2591
TraCIAPI::TraCIScopeWrapper::myCmdSetID
int myCmdSetID
Definition: TraCIAPI.h:147
TraCIAPI::TrafficLightScope::getPhaseDuration
double getPhaseDuration(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1964
TraCIAPI::PersonScope::getNextEdge
std::string getNextEdge(const std::string &personID) const
Definition: TraCIAPI.cpp:3350
TraCIAPI::VehicleScope::getLateralLanePosition
double getLateralLanePosition(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2480
TraCIAPI::getUnsignedByte
int getUnsignedByte(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:355
TraCIAPI::VehicleScope::slowDown
void slowDown(const std::string &vehicleID, double speed, double duration) const
Definition: TraCIAPI.cpp:2977
TraCIAPI::VehicleScope::setStop
void setStop(const std::string vehicleID, const std::string edgeID, const double endPos=1., const int laneIndex=0, const double duration=std::numeric_limits< double >::max(), const int flags=0, const double startPos=std::numeric_limits< int >::min(), const double until=-1) const
Definition: TraCIAPI.cpp:3031
TraCIAPI::SimulationScope::getCurrentTime
int getCurrentTime() const
Definition: TraCIAPI.cpp:1627
TraCIAPI::PolygonScope::getColor
libsumo::TraCIColor getColor(const std::string &polygonID) const
Definition: TraCIAPI.cpp:1508
libsumo::CMD_SUBSCRIBE_GUI_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_GUI_CONTEXT
Definition: TraCIConstants.h:266
TraCIAPI::PersonScope::getColor
libsumo::TraCIColor getColor(const std::string &personID) const
Definition: TraCIAPI.cpp:3325
TraCIAPI::VehicleTypeScope::~VehicleTypeScope
virtual ~VehicleTypeScope()
Definition: TraCIAPI.h:599
TraCIAPI::PolygonScope::setLineWidth
void setLineWidth(const std::string &polygonID, const double lineWidth) const
Definition: TraCIAPI.cpp:1513
TraCIAPI::GUIScope::trackVehicle
void trackVehicle(const std::string &viewID, const std::string &vehID) const
Definition: TraCIAPI.cpp:914
TraCIAPI::RouteScope::RouteScope
RouteScope(TraCIAPI &parent)
Definition: TraCIAPI.h:485
libsumo::CMD_SUBSCRIBE_POI_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_POI_VARIABLE
Definition: TraCIConstants.h:201
TraCIAPI::VehicleScope::getWaitingTime
double getWaitingTime(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2525
TraCIAPI::EdgeScope::adaptTraveltime
void adaptTraveltime(const std::string &edgeID, double time, double beginSeconds=0., double endSeconds=std::numeric_limits< double >::max()) const
Definition: TraCIAPI.cpp:779
TraCIAPI::TrafficLightScope::getControlledLanes
std::vector< std::string > getControlledLanes(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1916
TraCIAPI::myOutput
tcpip::Storage myOutput
The reusable output storage.
Definition: TraCIAPI.h:1055
TraCIAPI::TrafficLightScope
Scope for interaction with traffic lights.
Definition: TraCIAPI.h:556
TraCIAPI::POIScope::setColor
void setColor(const std::string &poiID, const libsumo::TraCIColor &c) const
Definition: TraCIAPI.cpp:1387
TraCIAPI::VehicleTypeScope::getVehicleClass
std::string getVehicleClass(const std::string &typeID) const
Definition: TraCIAPI.cpp:2124
TraCIAPI::VehicleScope::addSubscriptionFilterByteList
void addSubscriptionFilterByteList(int filterType, const std::vector< int > &vals) const
Definition: TraCIAPI.cpp:3269
TraCIAPI::TrafficLightScope::getPhaseName
std::string getPhaseName(const std::string &tlsID) const
Definition: TraCIAPI.cpp:1959
TraCIAPI::PersonScope::removeStage
void removeStage(const std::string &personID, int nextStageIndex) const
Definition: TraCIAPI.cpp:3510
TraCIAPI::SimulationScope::getArrivedIDList
std::vector< std::string > getArrivedIDList() const
Definition: TraCIAPI.cpp:1662
libsumo::CMD_SUBSCRIBE_TL_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_TL_CONTEXT
Definition: TraCIConstants.h:116
TraCIAPI::SimulationScope::convertRoad
libsumo::TraCIRoadPosition convertRoad(double x, double y, bool isGeo=false, const std::string &vClass="ignoring") const
Definition: TraCIAPI.cpp:1759
TraCIAPI::JunctionScope::operator=
JunctionScope & operator=(const JunctionScope &src)
invalidated assignment operator
TraCIAPI::VehicleScope::SIGNAL_WIPER
Definition: TraCIAPI.h:676
TraCIAPI::VehicleScope::changeSublane
void changeSublane(const std::string &vehicleID, double latDist) const
Definition: TraCIAPI.cpp:2892
TraCIAPI::PolygonScope::setColor
void setColor(const std::string &polygonID, const libsumo::TraCIColor &c) const
Definition: TraCIAPI.cpp:1551
TraCIAPI::VehicleScope::getShapeClass
std::string getShapeClass(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2557
TraCIAPI::POIScope::remove
void remove(const std::string &poiID, int layer=0) const
Definition: TraCIAPI.cpp:1469
libsumo::CMD_SUBSCRIBE_ROUTE_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_ROUTE_VARIABLE
Definition: TraCIConstants.h:186
TraCIAPI::LaneScope::getWidth
double getWidth(const std::string &laneID) const
Definition: TraCIAPI.cpp:1055
TraCIAPI::VehicleScope::getRouteID
std::string getRouteID(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2444
TraCIAPI::VehicleTypeScope::setSpeedFactor
void setSpeedFactor(const std::string &typeID, double factor) const
Definition: TraCIAPI.cpp:2208
libsumo::CMD_GET_GUI_VARIABLE
TRACI_CONST int CMD_GET_GUI_VARIABLE
Definition: TraCIConstants.h:270
TraCIAPI::processGet
bool processGet(int command, int expectedType, bool ignoreCommandId=false)
Definition: TraCIAPI.cpp:330
TraCIAPI::VehicleScope::SIGNAL_RESET
Definition: TraCIAPI.h:682
TraCIAPI::check_commandGetResult
int check_commandGetResult(tcpip::Storage &inMsg, int command, int expectedType=-1, bool ignoreCommandId=false) const
Validates the result state of a command.
Definition: TraCIAPI.cpp:306
TraCIAPI::SimulationScope::getTime
double getTime() const
Definition: TraCIAPI.cpp:1632
TraCIAPI::VehicleScope::SIGNAL_BRAKELIGHT
Definition: TraCIAPI.h:671
TraCIAPI::VehicleScope::getLine
std::string getLine(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2542
TraCIAPI::VehicleScope::getDistance
double getDistance(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2470
TraCIAPI::EdgeScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:664
TraCIAPI::getByte
int getByte(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:365
TraCIAPI::POIScope::getColor
libsumo::TraCIColor getColor(const std::string &poiID) const
Definition: TraCIAPI.cpp:1340
TraCIAPI::VehicleScope::VehicleSignal
VehicleSignal
Definition: TraCIAPI.h:667
TraCIAPI::VehicleScope::~VehicleScope
virtual ~VehicleScope()
Definition: TraCIAPI.h:665
libsumo::CMD_GET_MULTIENTRYEXIT_VARIABLE
TRACI_CONST int CMD_GET_MULTIENTRYEXIT_VARIABLE
Definition: TraCIConstants.h:107
TraCIAPI::PersonScope::getRoadID
std::string getRoadID(const std::string &personID) const
Definition: TraCIAPI.cpp:3335
TraCIAPI::VehicleTypeScope::getImperfection
double getImperfection(const std::string &typeID) const
Definition: TraCIAPI.cpp:2114
TraCIAPI::VehicleScope::SIGNAL_BLINKER_EMERGENCY
Definition: TraCIAPI.h:670
libsumo::CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT
Definition: TraCIConstants.h:90
TraCIAPI::SimulationScope::getDistance2D
double getDistance2D(double x1, double y1, double x2, double y2, bool isGeo=false, bool isDriving=false)
Definition: TraCIAPI.cpp:1803
TraCIAPI::getDouble
double getDouble(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:386
TraCIAPI::vehicle
VehicleScope vehicle
Scope for interaction with vehicles.
Definition: TraCIAPI.h:956
TraCIAPI::LaneScope::setLength
void setLength(const std::string &laneID, double length) const
Definition: TraCIAPI.cpp:1266
TraCIAPI::EdgeScope::setEffort
void setEffort(const std::string &edgeID, double effort, double beginSeconds=0., double endSeconds=std::numeric_limits< double >::max()) const
Definition: TraCIAPI.cpp:799
TraCIAPI::TraCIScopeWrapper::getModifiableContextSubscriptionResults
libsumo::SubscriptionResults & getModifiableContextSubscriptionResults(const std::string &objID)
Definition: TraCIAPI.cpp:3680
TraCIAPI::VehicleTypeScope::setMaxSpeedLat
void setMaxSpeedLat(const std::string &typeID, double speed) const
Definition: TraCIAPI.cpp:2273
TraCIAPI::GUIScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:832
TraCIAPI::PersonScope
Scope for interaction with vehicles.
Definition: TraCIAPI.h:873
TraCIAPI::VehicleTypeScope::getApparentDecel
double getApparentDecel(const std::string &typeID) const
Definition: TraCIAPI.cpp:2109
TraCIAPI::LaneScope::getAllowed
std::vector< std::string > getAllowed(const std::string &laneID) const
Definition: TraCIAPI.cpp:1060
TraCIAPI::VehicleScope::getAccumulatedWaitingTime
double getAccumulatedWaitingTime(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2731
libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE
TRACI_CONST int CMD_GET_INDUCTIONLOOP_VARIABLE
Definition: TraCIConstants.h:94
TraCIAPI::InductionLoopScope::getLastStepOccupancy
double getLastStepOccupancy(const std::string &loopID) const
Definition: TraCIAPI.cpp:957
TraCIAPI::VehicleScope::setSpeed
void setSpeed(const std::string &vehicleID, double speed) const
Definition: TraCIAPI.cpp:3013
TraCIAPI::VehicleTypeScope::setAccel
void setAccel(const std::string &typeID, double accel) const
Definition: TraCIAPI.cpp:2309
TraCIAPI::SimulationScope::operator=
SimulationScope & operator=(const SimulationScope &src)
invalidated assignment operator
TraCIAPI::VehicleTypeScope::copy
void copy(const std::string &origTypeID, const std::string &newTypeID) const
Definition: TraCIAPI.cpp:2291
TraCIAPI::VehicleScope::getLaneChangeState
std::pair< int, int > getLaneChangeState(const std::string &vehicleID, int direction) const
Definition: TraCIAPI.cpp:2648
TraCIAPI::TraCIScopeWrapper::clearSubscriptionResults
void clearSubscriptionResults()
Definition: TraCIAPI.cpp:3667
TraCIAPI::TrafficLightScope::setCompleteRedYellowGreenDefinition
void setCompleteRedYellowGreenDefinition(const std::string &tlsID, const libsumo::TraCILogic &logic) const
Definition: TraCIAPI.cpp:2020
TraCIAPI::EdgeScope::getLaneNumber
int getLaneNumber(const std::string &edgeID) const
Definition: TraCIAPI.cpp:767
TraCIAPI::VehicleScope::isRouteValid
bool isRouteValid(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2761
TraCIAPI::VehicleScope::addSubscriptionFilterEmpty
void addSubscriptionFilterEmpty(int filterType) const
Definition: TraCIAPI.cpp:3243
TraCIAPI::EdgeScope::getAdaptedTraveltime
double getAdaptedTraveltime(const std::string &edgeID, double time) const
Definition: TraCIAPI.cpp:674
TraCIAPI::POIScope::~POIScope
virtual ~POIScope()
Definition: TraCIAPI.h:411
TraCIAPI::polygon
PolygonScope polygon
Scope for interaction with polygons.
Definition: TraCIAPI.h:948
TraCIAPI::VehicleScope::getIDCount
int getIDCount() const
Definition: TraCIAPI.cpp:2384
TraCIAPI::LaneScope::getIDCount
int getIDCount() const
Definition: TraCIAPI.cpp:1040
libsumo::CMD_SUBSCRIBE_LANE_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_LANE_CONTEXT
Definition: TraCIConstants.h:131
TraCIAPI::VehicleScope::SIGNAL_BLINKER_LEFT
Definition: TraCIAPI.h:669
TraCIAPI::VehicleTypeScope::getEmissionClass
std::string getEmissionClass(const std::string &typeID) const
Definition: TraCIAPI.cpp:2129
TraCIAPI::SimulationScope::getLoadedNumber
int getLoadedNumber() const
Definition: TraCIAPI.cpp:1637
TraCIAPI::lanearea
LaneAreaScope lanearea
Scope for interaction with lanes.
Definition: TraCIAPI.h:940
TraCIAPI::InductionLoopScope::getLaneID
std::string getLaneID(const std::string &loopID) const
Definition: TraCIAPI.cpp:937
TraCIAPI::LaneScope::setDisallowed
void setDisallowed(const std::string &laneID, const std::vector< std::string > &disallowedClasses) const
Definition: TraCIAPI.cpp:1245
TraCIAPI::send_commandSimulationStep
void send_commandSimulationStep(double time) const
Sends a SimulationStep command.
Definition: TraCIAPI.cpp:124
TraCIAPI::VehicleTypeScope::setImperfection
void setImperfection(const std::string &typeID, double imperfection) const
Definition: TraCIAPI.cpp:2345
TraCIAPI::VehicleScope::getSpeedDeviation
double getSpeedDeviation(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2701
TraCIAPI::VehicleTypeScope::getShapeClass
std::string getShapeClass(const std::string &typeID) const
Definition: TraCIAPI.cpp:2134
TraCIAPI::TraCIAPI
TraCIAPI()
Constructor.
Definition: TraCIAPI.cpp:42
TraCIAPI::TrafficLightScope::setPhaseDuration
void setPhaseDuration(const std::string &tlsID, double phaseDuration) const
Definition: TraCIAPI.cpp:2011
TraCIAPI::PolygonScope
Scope for interaction with polygons.
Definition: TraCIAPI.h:449
libsumo::CMD_SET_EDGE_VARIABLE
TRACI_CONST int CMD_SET_EDGE_VARIABLE
Definition: TraCIConstants.h:244
TraCIAPI::LaneScope::getCO2Emission
double getCO2Emission(const std::string &laneID) const
Definition: TraCIAPI.cpp:1135
TraCIAPI::send_commandClose
void send_commandClose() const
Sends a Close command.
Definition: TraCIAPI.cpp:137
TraCIAPI::POIScope::setPosition
void setPosition(const std::string &poiID, double x, double y) const
Definition: TraCIAPI.cpp:1376
TraCIAPI::VehicleScope::getLaneID
std::string getLaneID(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2429
TraCIAPI::VehicleScope::setRouteID
void setRouteID(const std::string &vehicleID, const std::string &routeID) const
Definition: TraCIAPI.cpp:2902
TraCIAPI::getPosition
libsumo::TraCIPosition getPosition(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:417
TraCIAPI::poi
POIScope poi
Scope for interaction with POIs.
Definition: TraCIAPI.h:946
TraCIAPI::PolygonScope::getShape
libsumo::TraCIPositionVector getShape(const std::string &polygonID) const
Definition: TraCIAPI.cpp:1503
libsumo::CMD_SUBSCRIBE_EDGE_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_EDGE_CONTEXT
Definition: TraCIConstants.h:236
libsumo::CMD_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE
Definition: TraCIConstants.h:111
TraCIAPI::PersonScope::getLength
double getLength(const std::string &personID) const
Definition: TraCIAPI.cpp:3330
TraCIAPI::VehicleTypeScope::setTau
void setTau(const std::string &typeID, double tau) const
Definition: TraCIAPI.cpp:2354
TraCIAPI::VehicleScope::getTau
double getTau(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2686
TraCIAPI::TraCIScopeWrapper::getModifiableSubscriptionResults
libsumo::SubscriptionResults & getModifiableSubscriptionResults()
Definition: TraCIAPI.cpp:3674
TraCIAPI::JunctionScope::~JunctionScope
virtual ~JunctionScope()
Definition: TraCIAPI.h:286
socket.h
TraCIAPI::VehicleScope::getPersonCapacity
int getPersonCapacity(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2746
TraCIAPI::EdgeScope::getLastStepVehicleNumber
int getLastStepVehicleNumber(const std::string &edgeID) const
Definition: TraCIAPI.cpp:751
TraCIAPI::PolygonScope::setShape
void setShape(const std::string &polygonID, const libsumo::TraCIPositionVector &shape) const
Definition: TraCIAPI.cpp:1532
TraCIAPI::GUIScope::getZoom
double getZoom(const std::string &viewID=DEFAULT_VIEW) const
Definition: TraCIAPI.cpp:837
TraCIAPI::VehicleScope
Scope for interaction with vehicles.
Definition: TraCIAPI.h:662
TraCIAPI::VehicleTypeScope::getSpeedFactor
double getSpeedFactor(const std::string &typeID) const
Definition: TraCIAPI.cpp:2084
libsumo::CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE
Definition: TraCIConstants.h:98
TraCIAPI::VehicleScope::setRoute
void setRoute(const std::string &vehicleID, const std::vector< std::string > &edge) const
Definition: TraCIAPI.cpp:2912
TraCIAPI::VehicleScope::getMaxSpeedLat
double getMaxSpeedLat(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2766
TraCIAPI::VehicleScope::getAcceleration
double getAcceleration(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2399
TraCIAPI::SimulationScope::SimulationScope
SimulationScope(TraCIAPI &parent)
Definition: TraCIAPI.h:509
libsumo::TraCIRoadPosition
An edgeId, position and laneIndex.
Definition: TraCIDefs.h:122
TraCIAPI::SimulationScope::getLoadedIDList
std::vector< std::string > getLoadedIDList() const
Definition: TraCIAPI.cpp:1642
TraCIAPI::PersonScope::removeStages
void removeStages(const std::string &personID) const
Definition: TraCIAPI.cpp:3382
TraCIAPI::VehicleTypeScope::setLateralAlignment
void setLateralAlignment(const std::string &typeID, const std::string &latAlignment) const
Definition: TraCIAPI.cpp:2282
TraCIAPI::PersonScope::setColor
void setColor(const std::string &personID, const libsumo::TraCIColor &c) const
Definition: TraCIAPI.cpp:3577
TraCIAPI::TraCIScopeWrapper::myContextSubscribeID
int myContextSubscribeID
Definition: TraCIAPI.h:149
TraCIAPI::VehicleScope::getVehicleClass
std::string getVehicleClass(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2706
TraCIAPI::EdgeScope::getLastStepLength
double getLastStepLength(const std::string &edgeID) const
Definition: TraCIAPI.cpp:741
TraCIAPI::VehicleScope::add
void add(const std::string &vehicleID, const std::string &routeID, const std::string &typeID="DEFAULT_VEHTYPE", std::string depart="-1", const std::string &departLane="first", const std::string &departPos="base", const std::string &departSpeed="0", const std::string &arrivalLane="current", const std::string &arrivalPos="max", const std::string &arrivalSpeed="current", const std::string &fromTaz="", const std::string &toTaz="", const std::string &line="", int personCapacity=0, int personNumber=0) const
Definition: TraCIAPI.cpp:2781
TraCIAPI::gui
GUIScope gui
Scope for interaction with the gui.
Definition: TraCIAPI.h:932
TraCIAPI::VehicleScope::getSpeedMode
int getSpeedMode(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2530
TraCIAPI::TrafficLightScope::~TrafficLightScope
virtual ~TrafficLightScope()
Definition: TraCIAPI.h:559
TraCIAPI::TraCIScopeWrapper::myContextSubscriptionResults
libsumo::ContextSubscriptionResults myContextSubscriptionResults
Definition: TraCIAPI.h:151
TraCIAPI::VehicleScope::SIGNAL_BACKDRIVE
Definition: TraCIAPI.h:675
TraCIAPI::RouteScope::add
void add(const std::string &routeID, const std::vector< std::string > &edges) const
Definition: TraCIAPI.cpp:1614
libsumo::CMD_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT
TRACI_CONST int CMD_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT
Definition: TraCIConstants.h:103
libsumo::CMD_SUBSCRIBE_LANE_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_LANE_VARIABLE
Definition: TraCIConstants.h:141
TraCIAPI::VehicleTypeScope::setEmergencyDecel
void setEmergencyDecel(const std::string &typeID, double decel) const
Definition: TraCIAPI.cpp:2327
TraCIAPI::JunctionScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:1010
TraCIAPI::EdgeScope::setMaxSpeed
void setMaxSpeed(const std::string &edgeID, double speed) const
Definition: TraCIAPI.cpp:818
TraCIAPI::LaneAreaScope::operator=
LaneAreaScope & operator=(const LaneAreaScope &src)
invalidated assignment operator
TraCIAPI::PolygonScope::setType
void setType(const std::string &polygonID, const std::string &setType) const
Definition: TraCIAPI.cpp:1522
libsumo::TraCIPositionVector
std::vector< TraCIPosition > TraCIPositionVector
Definition: TraCIDefs.h:150
TraCIAPI::SimulationScope::convertGeo
libsumo::TraCIPosition convertGeo(double x, double y, bool fromGeo=false) const
Definition: TraCIAPI.cpp:1782
TraCIAPI::readVariableSubscription
void readVariableSubscription(int cmdId, tcpip::Storage &inMsg)
Definition: TraCIAPI.cpp:598
TraCIAPI::EdgeScope::getTraveltime
double getTraveltime(const std::string &edgeID) const
Definition: TraCIAPI.cpp:746
TraCIAPI::VehicleScope::getTypeID
std::string getTypeID(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2439
TraCIAPI::MeMeScope::MeMeScope
MeMeScope(TraCIAPI &parent)
Definition: TraCIAPI.h:383
TraCIAPI::VehicleScope::getMinGapLat
double getMinGapLat(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2771
TraCIAPI::VehicleTypeScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:2069
TraCIAPI::VehicleTypeScope::getLength
double getLength(const std::string &typeID) const
Definition: TraCIAPI.cpp:2074
TraCIAPI::JunctionScope::JunctionScope
JunctionScope(TraCIAPI &parent)
Definition: TraCIAPI.h:285
TraCIAPI::TraCIScopeWrapper::getSubscriptionResults
const libsumo::TraCIResults getSubscriptionResults(const std::string &objID) const
Definition: TraCIAPI.cpp:3641
TraCIAPI::SimulationScope
Scope for interaction with the simulation.
Definition: TraCIAPI.h:507
TraCIAPI::VehicleScope::SIGNAL_EMERGENCY_YELLOW
Definition: TraCIAPI.h:681
TraCIAPI::VehicleTypeScope::getEmergencyDecel
double getEmergencyDecel(const std::string &typeID) const
Definition: TraCIAPI.cpp:2104
TraCIAPI::VehicleScope::operator=
VehicleScope & operator=(const VehicleScope &src)
invalidated assignment operator
TraCIAPI::VehicleScope::VehicleScope
VehicleScope(TraCIAPI &parent)
Definition: TraCIAPI.h:664
TraCIAPI::LaneScope::getLinkNumber
int getLinkNumber(const std::string &laneID) const
Definition: TraCIAPI.cpp:1070
libsumo::CMD_SUBSCRIBE_TL_VARIABLE
TRACI_CONST int CMD_SUBSCRIBE_TL_VARIABLE
Definition: TraCIConstants.h:126
libsumo::CMD_SET_ROUTE_VARIABLE
TRACI_CONST int CMD_SET_ROUTE_VARIABLE
Definition: TraCIConstants.h:184
TraCIAPI::PersonScope::appendWaitingStage
void appendWaitingStage(const std::string &personID, double duration, const std::string &description="waiting", const std::string &stopID="")
Definition: TraCIAPI.cpp:3455
TraCIAPI::LaneScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:1035
TraCIAPI::TraCIScopeWrapper::TraCIScopeWrapper
TraCIScopeWrapper(TraCIAPI &parent, int cmdGetID, int cmdSetID, int subscribeID, int contextSubscribeID)
Constructor.
Definition: TraCIAPI.h:111
TraCIAPI::LaneScope::getElectricityConsumption
double getElectricityConsumption(const std::string &laneID) const
Definition: TraCIAPI.cpp:1170
TraCIAPI::TraCIScopeWrapper::mySubscribeID
int mySubscribeID
Definition: TraCIAPI.h:148
TraCIAPI::EdgeScope::getCOEmission
double getCOEmission(const std::string &edgeID) const
Definition: TraCIAPI.cpp:696
TraCIAPI::VehicleScope::getPMxEmission
double getPMxEmission(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2500
TraCIAPI::PersonScope::getSlope
double getSlope(const std::string &personID) const
Definition: TraCIAPI.cpp:3315
TraCIAPI::VehicleScope::getEmergencyDecel
double getEmergencyDecel(const std::string &vehicleID) const
TraCIAPI::InductionLoopScope::getLastStepMeanLength
double getLastStepMeanLength(const std::string &loopID) const
Definition: TraCIAPI.cpp:962
TraCIDefs.h
TraCIAPI::PolygonScope::getLineWidth
double getLineWidth(const std::string &polygonID) const
Definition: TraCIAPI.cpp:1493
TraCIAPI::VehicleTypeScope::setApparentDecel
void setApparentDecel(const std::string &typeID, double decel) const
Definition: TraCIAPI.cpp:2336
TraCIAPI::SimulationScope::getBusStopWaiting
int getBusStopWaiting(const std::string &stopID) const
Definition: TraCIAPI.cpp:1703
libsumo::CMD_GET_EDGE_VARIABLE
TRACI_CONST int CMD_GET_EDGE_VARIABLE
Definition: TraCIConstants.h:240
TraCIAPI::VehicleScope::getPersonIDList
std::vector< std::string > getPersonIDList(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2751
TraCIAPI::PersonScope::setSpeed
void setSpeed(const std::string &personID, double speed) const
Definition: TraCIAPI.cpp:3520
TraCIAPI::POIScope::getWidth
double getWidth(const std::string &poiID) const
Definition: TraCIAPI.cpp:1345
TraCIAPI::POIScope::getIDList
std::vector< std::string > getIDList() const
Definition: TraCIAPI.cpp:1320
TraCIAPI::PersonScope::add
void add(const std::string &personID, const std::string &edgeID, double pos, double depart=libsumo::DEPARTFLAG_NOW, const std::string typeID="DEFAULT_PEDTYPE")
Definition: TraCIAPI.cpp:3402
TraCIAPI::TraCIScopeWrapper::getAllSubscriptionResults
const libsumo::SubscriptionResults getAllSubscriptionResults() const
Definition: TraCIAPI.cpp:3635
TraCIAPI::myInput
tcpip::Storage myInput
The reusable input storage.
Definition: TraCIAPI.h:1057
TraCIAPI::TrafficLightScope::setProgram
void setProgram(const std::string &tlsID, const std::string &programID) const
Definition: TraCIAPI.cpp:2002
TraCIAPI::LaneScope::getNoiseEmission
double getNoiseEmission(const std::string &laneID) const
Definition: TraCIAPI.cpp:1165
TraCIAPI::VehicleScope::getApparentDecel
double getApparentDecel(const std::string &vehicleID) const
TraCIAPI::mySocket
tcpip::Socket * mySocket
The socket.
Definition: TraCIAPI.h:1053
TraCIAPI::TraCIScopeWrapper::subscribeContext
void subscribeContext(const std::string &objID, int domain, double range, const std::vector< int > &vars, double beginTime, double endTime) const
Definition: TraCIAPI.cpp:3625
TraCIAPI::VehicleScope::getNextTLS
std::vector< libsumo::TraCINextTLSData > getNextTLS(const std::string &vehID) const
Definition: TraCIAPI.cpp:2562
TraCIAPI::check_resultState
void check_resultState(tcpip::Storage &inMsg, int command, bool ignoreCommandId=false, std::string *acknowledgement=0) const
Validates the result state of a command.
Definition: TraCIAPI.cpp:267
TraCIAPI::TraCIScopeWrapper::myCmdGetID
int myCmdGetID
Definition: TraCIAPI.h:146
TraCIAPI::connect
void connect(const std::string &host, int port)
Connects to the specified SUMO server.
Definition: TraCIAPI.cpp:75
TraCIAPI::VehicleScope::SIGNAL_EMERGENCY_RED
Definition: TraCIAPI.h:680
TraCIAPI::PersonScope::appendStage
void appendStage(const std::string &personID, const libsumo::TraCIStage &stage)
Definition: TraCIAPI.cpp:3419
TraCIAPI::VehicleScope::getFuelConsumption
double getFuelConsumption(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2510
tcpip::Storage
Definition: storage.h:36
TraCIAPI::PersonScope::getRemainingStages
int getRemainingStages(const std::string &personID) const
Definition: TraCIAPI.cpp:3361
libsumo::SubscriptionResults
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
Definition: TraCIDefs.h:204
TraCIAPI::VehicleTypeScope
Scope for interaction with vehicle types.
Definition: TraCIAPI.h:596
TraCIAPI::PersonScope::getTypeID
std::string getTypeID(const std::string &personID) const
Definition: TraCIAPI.cpp:3340
TraCIAPI::SimulationScope::getDeltaT
double getDeltaT() const
Definition: TraCIAPI.cpp:1687
TraCIAPI::PersonScope::getPosition3D
libsumo::TraCIPosition getPosition3D(const std::string &personID) const
Definition: TraCIAPI.cpp:3305
TraCIAPI::VehicleTypeScope::getAccel
double getAccel(const std::string &typeID) const
Definition: TraCIAPI.cpp:2094
TraCIAPI::PersonScope::getSpeed
double getSpeed(const std::string &personID) const
Definition: TraCIAPI.cpp:3295
TraCIAPI::EdgeScope::getEffort
double getEffort(const std::string &edgeID, double time) const
Definition: TraCIAPI.cpp:682
TraCIAPI::VehicleScope::addSubscriptionFilterVClass
void addSubscriptionFilterVClass(const std::vector< std::string > &vClasses) const
Definition: TraCIAPI.cpp:3231
TraCIAPI::VehicleScope::openGap
void openGap(const std::string &vehicleID, double newTau, double duration, double changeRate, double maxDecel) const
Definition: TraCIAPI.cpp:2990
TraCIAPI::vehicletype
VehicleTypeScope vehicletype
Scope for interaction with vehicle types.
Definition: TraCIAPI.h:958
TraCIAPI::getString
std::string getString(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Definition: TraCIAPI.cpp:443
TraCIAPI::edge
EdgeScope edge
Scope for interaction with edges.
Definition: TraCIAPI.h:930
TraCIAPI::GUIScope::GUIScope
GUIScope(TraCIAPI &parent)
Definition: TraCIAPI.h:219
libsumo::CMD_GET_JUNCTION_VARIABLE
TRACI_CONST int CMD_GET_JUNCTION_VARIABLE
Definition: TraCIConstants.h:225
TraCIAPI::VehicleScope::getDecel
double getDecel(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2681
TraCIAPI::VehicleScope::getRoutingMode
int getRoutingMode(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2671
TraCIAPI::GUIScope::setBoundary
void setBoundary(const std::string &viewID, double xmin, double ymin, double xmax, double ymax) const
Definition: TraCIAPI.cpp:886
TraCIAPI::POIScope::operator=
POIScope & operator=(const POIScope &src)
invalidated assignment operator
TraCIAPI::POIScope::getAngle
double getAngle(const std::string &poiID) const
Definition: TraCIAPI.cpp:1355
TraCIAPI::LaneScope::setMaxSpeed
void setMaxSpeed(const std::string &laneID, double speed) const
Definition: TraCIAPI.cpp:1257
libsumo::CMD_GET_ROUTE_VARIABLE
TRACI_CONST int CMD_GET_ROUTE_VARIABLE
Definition: TraCIConstants.h:180
TraCIAPI::LaneScope::operator=
LaneScope & operator=(const LaneScope &src)
invalidated assignment operator
TraCIAPI::TrafficLightScope::getIDCount
int getIDCount() const
Definition: TraCIAPI.cpp:1853
TraCIAPI::VehicleScope::getColor
libsumo::TraCIColor getColor(const std::string &vehicleID) const
Definition: TraCIAPI.cpp:2460
TraCIAPI::PersonScope::getEdges
std::vector< std::string > getEdges(const std::string &personID, int nextStageIndex=0) const
Definition: TraCIAPI.cpp:3374