46 #define DEFAULT_VIEW "View #0" 77 void connect(
const std::string& host,
int port);
90 void load(
const std::vector<std::string>& args);
153 std::vector<std::string> getIDList()
const;
154 int getIDCount()
const;
155 double getAdaptedTraveltime(
const std::string& edgeID,
double time)
const;
156 double getEffort(
const std::string& edgeID,
SUMOTime time)
const;
157 double getCO2Emission(
const std::string& edgeID)
const;
158 double getCOEmission(
const std::string& edgeID)
const;
159 double getHCEmission(
const std::string& edgeID)
const;
160 double getPMxEmission(
const std::string& edgeID)
const;
161 double getNOxEmission(
const std::string& edgeID)
const;
162 double getFuelConsumption(
const std::string& edgeID)
const;
163 double getNoiseEmission(
const std::string& edgeID)
const;
164 double getElectricityConsumption(
const std::string& edgeID)
const;
165 double getLastStepMeanSpeed(
const std::string& edgeID)
const;
166 double getLastStepOccupancy(
const std::string& edgeID)
const;
167 double getLastStepLength(
const std::string& edgeID)
const;
168 double getTraveltime(
const std::string& edgeID)
const;
169 int getLastStepVehicleNumber(
const std::string& edgeID)
const;
170 double getLastStepHaltingNumber(
const std::string& edgeID)
const;
171 std::vector<std::string> getLastStepVehicleIDs(
const std::string& edgeID)
const;
173 void adaptTraveltime(
const std::string& edgeID,
double time,
int beginSeconds = 0,
int endSeconds = std::numeric_limits<int>::max())
const;
174 void setEffort(
const std::string& edgeID,
double effort,
int beginSeconds = 0,
int endSeconds = std::numeric_limits<int>::max())
const;
175 void setMaxSpeed(
const std::string& edgeID,
double speed)
const;
198 std::vector<std::string> getIDList()
const;
199 double getZoom(
const std::string& viewID =
DEFAULT_VIEW)
const;
201 std::string getSchema(
const std::string& viewID =
DEFAULT_VIEW)
const;
203 void setZoom(
const std::string& viewID,
double zoom)
const;
204 void setOffset(
const std::string& viewID,
double x,
double y)
const;
205 void setSchema(
const std::string& viewID,
const std::string& schemeName)
const;
206 void setBoundary(
const std::string& viewID,
double xmin,
double ymin,
double xmax,
double ymax)
const;
207 void screenshot(
const std::string& viewID,
const std::string& filename)
const;
208 void trackVehicle(
const std::string& viewID,
const std::string& vehID)
const;
231 std::vector<std::string> getIDList()
const;
232 double getPosition(
const std::string& loopID)
const;
233 std::string getLaneID(
const std::string& loopID)
const;
234 int getLastStepVehicleNumber(
const std::string& loopID)
const;
235 double getLastStepMeanSpeed(
const std::string& loopID)
const;
236 std::vector<std::string> getLastStepVehicleIDs(
const std::string& loopID)
const;
237 double getLastStepOccupancy(
const std::string& loopID)
const;
238 double getLastStepMeanLength(
const std::string& loopID)
const;
239 double getTimeSinceDetection(
const std::string& loopID)
const;
240 std::vector<libsumo::TraCIVehicleData> getVehicleData(
const std::string& loopID)
const;
264 std::vector<std::string> getIDList()
const;
288 std::vector<std::string> getIDList()
const;
289 int getIDCount()
const;
290 double getLength(
const std::string& laneID)
const;
291 double getMaxSpeed(
const std::string& laneID)
const;
292 double getWidth(
const std::string& laneID)
const;
293 std::vector<std::string> getAllowed(
const std::string& laneID)
const;
294 std::vector<std::string> getDisallowed(
const std::string& laneID)
const;
295 int getLinkNumber(
const std::string& laneID)
const;
296 std::vector<libsumo::TraCIConnection> getLinks(
const std::string& laneID)
const;
298 std::string getEdgeID(
const std::string& laneID)
const;
299 double getCO2Emission(
const std::string& laneID)
const;
300 double getCOEmission(
const std::string& laneID)
const;
301 double getHCEmission(
const std::string& laneID)
const;
302 double getPMxEmission(
const std::string& laneID)
const;
303 double getNOxEmission(
const std::string& laneID)
const;
304 double getFuelConsumption(
const std::string& laneID)
const;
305 double getNoiseEmission(
const std::string& laneID)
const;
306 double getElectricityConsumption(
const std::string& laneID)
const;
307 double getLastStepMeanSpeed(
const std::string& laneID)
const;
308 double getLastStepOccupancy(
const std::string& laneID)
const;
309 double getLastStepLength(
const std::string& laneID)
const;
310 double getTraveltime(
const std::string& laneID)
const;
311 int getLastStepVehicleNumber(
const std::string& laneID)
const;
312 int getLastStepHaltingNumber(
const std::string& laneID)
const;
313 std::vector<std::string> getLastStepVehicleIDs(
const std::string& laneID)
const;
314 std::vector<std::string> getFoes(
const std::string& laneID,
const std::string& toLaneID)
const;
315 std::vector<std::string> getInternalFoes(
const std::string& laneID)
const;
317 void setAllowed(
const std::string& laneID,
const std::vector<std::string>& allowedClasses)
const;
318 void setDisallowed(
const std::string& laneID,
const std::vector<std::string>& disallowedClasses)
const;
319 void setMaxSpeed(
const std::string& laneID,
double speed)
const;
320 void setLength(
const std::string& laneID,
double length)
const;
340 std::vector<std::string> getIDList()
const;
360 std::vector<std::string> getIDList()
const;
361 int getLastStepVehicleNumber(
const std::string& detID)
const;
362 double getLastStepMeanSpeed(
const std::string& detID)
const;
363 std::vector<std::string> getLastStepVehicleIDs(
const std::string& detID)
const;
364 int getLastStepHaltingNumber(
const std::string& detID)
const;
387 std::vector<std::string> getIDList()
const;
388 std::string getType(
const std::string& poiID)
const;
392 void setType(
const std::string& poiID,
const std::string& setType)
const;
393 void setPosition(
const std::string& poiID,
double x,
double y)
const;
395 void add(
const std::string& poiID,
double x,
double y,
const libsumo::TraCIColor& c,
const std::string& type,
int layer)
const;
396 void remove(
const std::string& poiID,
int layer = 0)
const;
419 std::vector<std::string> getIDList()
const;
420 std::string getType(
const std::string& polygonID)
const;
423 void setType(
const std::string& polygonID,
const std::string& setType)
const;
427 void remove(
const std::string& polygonID,
int layer = 0)
const;
450 std::vector<std::string> getIDList()
const;
451 std::vector<std::string> getEdges(
const std::string& routeID)
const;
453 void add(
const std::string& routeID,
const std::vector<std::string>& edges)
const;
481 int getLoadedNumber()
const;
482 std::vector<std::string> getLoadedIDList()
const;
483 int getDepartedNumber()
const;
484 std::vector<std::string> getDepartedIDList()
const;
485 int getArrivedNumber()
const;
486 std::vector<std::string> getArrivedIDList()
const;
487 int getStartingTeleportNumber()
const;
488 std::vector<std::string> getStartingTeleportIDList()
const;
489 int getEndingTeleportNumber()
const;
490 std::vector<std::string> getEndingTeleportIDList()
const;
493 int getMinExpectedNumber()
const;
495 void subscribe(
int domID,
const std::string& objID,
SUMOTime beginTime,
SUMOTime endTime,
const std::vector<int>& vars)
const;
496 void subscribeContext(
int domID,
const std::string& objID,
SUMOTime beginTime,
SUMOTime endTime,
int domain,
double range,
const std::vector<int>& vars)
const;
498 const SubscribedValues& getSubscriptionResults()
const;
499 const TraCIValues& getSubscriptionResults(
const std::string& objID)
const;
501 const SubscribedContextValues& getContextSubscriptionResults()
const;
502 const SubscribedValues& getContextSubscriptionResults(
const std::string& objID)
const;
525 std::vector<std::string> getIDList()
const;
526 std::string getRedYellowGreenState(
const std::string& tlsID)
const;
527 std::vector<libsumo::TraCILogic> getCompleteRedYellowGreenDefinition(
const std::string& tlsID)
const;
528 std::vector<std::string> getControlledLanes(
const std::string& tlsID)
const;
529 std::vector<std::vector<libsumo::TraCILink> > getControlledLinks(
const std::string& tlsID)
const;
530 std::string getProgram(
const std::string& tlsID)
const;
531 int getPhase(
const std::string& tlsID)
const;
532 int getNextSwitch(
const std::string& tlsID)
const;
534 void setRedYellowGreenState(
const std::string& tlsID,
const std::string& state)
const;
535 void setPhase(
const std::string& tlsID,
int index)
const;
536 void setProgram(
const std::string& tlsID,
const std::string& programID)
const;
537 void setPhaseDuration(
const std::string& tlsID,
int phaseDuration)
const;
538 void setCompleteRedYellowGreenDefinition(
const std::string& tlsID,
const libsumo::TraCILogic& logic)
const;
561 std::vector<std::string> getIDList()
const;
562 double getLength(
const std::string& typeID)
const;
563 double getMaxSpeed(
const std::string& typeID)
const;
564 double getSpeedFactor(
const std::string& typeID)
const;
565 double getSpeedDeviation(
const std::string& typeID)
const;
566 double getAccel(
const std::string& typeID)
const;
567 double getDecel(
const std::string& typeID)
const;
568 double getEmergencyDecel(
const std::string& typeID)
const;
569 double getApparentDecel(
const std::string& typeID)
const;
570 double getImperfection(
const std::string& typeID)
const;
571 double getTau(
const std::string& typeID)
const;
572 std::string getVehicleClass(
const std::string& typeID)
const;
573 std::string getEmissionClass(
const std::string& typeID)
const;
574 std::string getShapeClass(
const std::string& typeID)
const;
575 double getMinGap(
const std::string& typeID)
const;
576 double getWidth(
const std::string& typeID)
const;
577 double getHeight(
const std::string& typeID)
const;
579 double getMinGapLat(
const std::string& typeID)
const;
580 double getMaxSpeedLat(
const std::string& typeID)
const;
581 std::string getLateralAlignment(
const std::string& typeID)
const;
583 void setLength(
const std::string& typeID,
double length)
const;
584 void setMaxSpeed(
const std::string& typeID,
double speed)
const;
585 void setVehicleClass(
const std::string& typeID,
const std::string& clazz)
const;
586 void setSpeedFactor(
const std::string& typeID,
double factor)
const;
587 void setSpeedDeviation(
const std::string& typeID,
double deviation)
const;
588 void setEmissionClass(
const std::string& typeID,
const std::string& clazz)
const;
589 void setShapeClass(
const std::string& typeID,
const std::string& shapeClass)
const;
590 void setWidth(
const std::string& typeID,
double width)
const;
591 void setHeight(
const std::string& typeID,
double height)
const;
592 void setMinGap(
const std::string& typeID,
double minGap)
const;
593 void setAccel(
const std::string& typeID,
double accel)
const;
594 void setDecel(
const std::string& typeID,
double decel)
const;
595 void setEmergencyDecel(
const std::string& typeID,
double decel)
const;
596 void setApparentDecel(
const std::string& typeID,
double decel)
const;
597 void setImperfection(
const std::string& typeID,
double imperfection)
const;
598 void setTau(
const std::string& typeID,
double tau)
const;
600 void setMinGapLat(
const std::string& typeID,
double minGapLat)
const;
601 void setMaxSpeedLat(
const std::string& typeID,
double speed)
const;
602 void setLateralAlignment(
const std::string& typeID,
const std::string& latAlignment)
const;
603 void copy(
const std::string& origTypeID,
const std::string& newTypeID)
const;
628 std::vector<std::string> getIDList()
const;
629 int getIDCount()
const;
630 double getSpeed(
const std::string& vehicleID)
const;
633 double getAngle(
const std::string& vehicleID)
const;
634 std::string getRoadID(
const std::string& vehicleID)
const;
635 std::string getLaneID(
const std::string& vehicleID)
const;
636 int getLaneIndex(
const std::string& vehicleID)
const;
637 std::string getTypeID(
const std::string& vehicleID)
const;
638 std::string getRouteID(
const std::string& vehicleID)
const;
639 int getRouteIndex(
const std::string& vehicleID)
const;
640 std::vector<std::string> getEdges(
const std::string& vehicleID)
const;
641 std::vector<std::string> getRoute(
const std::string& vehicleID)
const;
643 double getLanePosition(
const std::string& vehicleID)
const;
644 double getDistance(
const std::string& vehicleID)
const;
645 int getSignalStates(
const std::string& vehicleID)
const;
646 double getCO2Emission(
const std::string& vehicleID)
const;
647 double getCOEmission(
const std::string& vehicleID)
const;
648 double getHCEmission(
const std::string& vehicleID)
const;
649 double getPMxEmission(
const std::string& vehicleID)
const;
650 double getNOxEmission(
const std::string& vehicleID)
const;
651 double getFuelConsumption(
const std::string& vehicleID)
const;
652 double getNoiseEmission(
const std::string& vehicleID)
const;
653 double getElectricityConsumption(
const std::string& vehicleID)
const;
654 int getSpeedMode(
const std::string& vehicleID)
const;
655 int getStopState(
const std::string& vehicleID)
const;
656 double getWaitingTime(
const std::string& vehicleID)
const;
657 double getAccumulatedWaitingTime(
const std::string& vehicleID)
const;
658 double getSlope(
const std::string& vehicleID)
const;
659 double getAllowedSpeed(
const std::string& vehicleID)
const;
660 int getPersonNumber(
const std::string& vehicleID)
const;
661 double getSpeedWithoutTraCI(
const std::string& vehicleID)
const;
662 bool isRouteValid(
const std::string& vehicleID)
const;
663 double getLateralLanePosition(
const std::string& vehicleID)
const;
664 double getSpeedFactor(
const std::string& vehicleID)
const;
665 std::string getLine(
const std::string& vehicleID)
const;
666 std::vector<std::string> getVia(
const std::string& vehicleID)
const;
667 std::vector<libsumo::TraCINextTLSData> getNextTLS(
const std::string& vehID)
const;
668 std::vector<libsumo::TraCIBestLanesData> getBestLanes(
const std::string& vehicleID)
const;
669 std::pair<std::string, double> getLeader(
const std::string& vehicleID,
double dist)
const;
674 double getLength(
const std::string& vehicleID)
const;
675 double getMaxSpeed(
const std::string& vehicleID)
const;
676 double getAccel(
const std::string& vehicleID)
const;
677 double getDecel(
const std::string& vehicleID)
const;
678 double getEmergencyDecel(
const std::string& vehicleID)
const;
679 double getApparentDecel(
const std::string& vehicleID)
const;
680 double getTau(
const std::string& vehicleID)
const;
681 double getImperfection(
const std::string& vehicleID)
const;
682 double getSpeedDeviation(
const std::string& vehicleID)
const;
683 double getMinGap(
const std::string& vehicleID)
const;
684 double getWidth(
const std::string& vehicleID)
const;
685 double getHeight(
const std::string& veihcleID)
const;
686 double getMaxSpeedLat(
const std::string& vehicleID)
const;
687 double getMinGapLat(
const std::string& vehicleID)
const;
688 std::string getVehicleClass(
const std::string& vehicleID)
const;
689 std::string getEmissionClass(
const std::string& vehicleID)
const;
690 std::string getShapeClass(
const std::string& vehicleID)
const;
691 std::string getLateralAlignment(
const std::string& vehicleID)
const;
696 void add(
const std::string& vehicleID,
697 const std::string& routeID,
698 const std::string& typeID =
"DEFAULT_VEHTYPE",
699 std::string depart =
"-1",
700 const std::string& departLane =
"first",
701 const std::string& departPos =
"base",
702 const std::string& departSpeed =
"0",
703 const std::string& arrivalLane =
"current",
704 const std::string& arrivalPos =
"max",
705 const std::string& arrivalSpeed =
"current",
706 const std::string& fromTaz =
"",
707 const std::string& toTaz =
"",
708 const std::string& line =
"",
709 int personCapacity = 0,
710 int personNumber = 0)
const;
712 void changeTarget(
const std::string& vehicleID,
const std::string& edgeID)
const;
713 void setRouteID(
const std::string& vehicleID,
const std::string& routeID)
const;
714 void setRoute(
const std::string& vehicleID,
const std::vector<std::string>&
edge)
const;
715 void rerouteTraveltime(
const std::string& vehicleID,
bool currentTravelTimes =
true)
const;
716 void moveTo(
const std::string& vehicleID,
const std::string& laneID,
double position)
const;
717 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;
718 void slowDown(
const std::string& vehicleID,
double speed,
SUMOTime duration)
const;
719 void setSpeed(
const std::string& vehicleID,
double speed)
const;
720 void setType(
const std::string& vehicleID,
const std::string& typeID)
const;
721 void remove(
const std::string& vehicleID,
char reason =
REMOVE_VAPORIZED)
const;
723 void setLine(
const std::string& vehicleID,
const std::string& line)
const;
724 void setVia(
const std::string& vehicleID,
const std::vector<std::string>& via)
const;
729 void setShapeClass(
const std::string& vehicleID,
const std::string& clazz)
const;
730 void setEmissionClass(
const std::string& vehicleID,
const std::string& clazz)
const;
731 void setMaxSpeed(
const std::string& vehicleID,
double speed)
const;
753 std::vector<std::string> getIDList()
const;
754 int getIDCount()
const;
755 double getSpeed(
const std::string& personID)
const;
757 std::string getRoadID(
const std::string& personID)
const;
758 std::string getTypeID(
const std::string& personID)
const;
759 double getWaitingTime(
const std::string& personID)
const;
760 std::string getNextEdge(
const std::string& personID)
const;
761 std::string getVehicle(
const std::string& personID)
const;
762 int getRemainingStages(
const std::string& personID)
const;
763 int getStage(
const std::string& personID,
int nextStageIndex = 0)
const;
764 std::vector<std::string> getEdges(
const std::string& personID,
int nextStageIndex = 0)
const;
771 void removeStages(
const std::string& personID)
const;
772 void add(
const std::string& personID,
const std::string& edgeID,
double pos,
double depart =
DEPARTFLAG_NOW,
const std::string typeID =
"DEFAULT_PEDTYPE");
773 void appendWaitingStage(
const std::string& personID,
double duration,
const std::string& description =
"waiting",
const std::string& stopID =
"");
774 void appendWalkingStage(
const std::string& personID,
const std::vector<std::string>& edges,
double arrivalPos,
double duration = -1,
double speed = -1,
const std::string& stopID =
"");
775 void appendDrivingStage(
const std::string& personID,
const std::string& toEdge,
const std::string& lines,
const std::string& stopID =
"");
776 void removeStage(
const std::string& personID,
int nextStageIndex)
const;
777 void rerouteTraveltime(
const std::string& personID)
const;
778 void setSpeed(
const std::string& personID,
double speed)
const;
779 void setType(
const std::string& personID,
const std::string& typeID)
const;
780 void setLength(
const std::string& personID,
double length)
const;
781 void setWidth(
const std::string& personID,
double width)
const;
782 void setHeight(
const std::string& personID,
double height)
const;
783 void setMinGap(
const std::string& personID,
double minGap)
const;
885 int domain,
double range,
const std::vector<int>& vars)
const;
889 void send_commandMoveToXY(
const std::string& vehicleID,
const std::string& edgeID,
const int lane,
890 const double x,
const double y,
const double angle,
const int keepRoute)
const;
918 std::ostringstream oss;
919 oss.setf(std::ios::fixed , std::ios::floatfield);
920 oss << std::setprecision(accuracy);
EdgeScope edge
Scope for interaction with edges.
LaneScope(TraCIAPI &parent)
void send_commandSetValue(int domID, int varID, const std::string &objID, tcpip::Storage &content) const
Sends a SetVariable request.
tcpip::Socket * mySocket
The socket.
C++ TraCI client API implementation.
void close()
ends the simulation and closes the connection
Scope for interaction with edges.
void check_resultState(tcpip::Storage &inMsg, int command, bool ignoreCommandId=false, std::string *acknowledgement=0) const
Validates the result state of a command.
void connect(const std::string &host, int port)
Connects to the specified SUMO server.
MeMeScope(TraCIAPI &parent)
void setOrder(int order)
set priority (execution order) for the client
GUIScope(TraCIAPI &parent)
virtual ~TrafficLightScope()
TraCIScopeWrapper & operator=(const TraCIScopeWrapper &src)
invalidated assignment operator
JunctionScope junction
Scope for interaction with junctions.
PersonScope(TraCIAPI &parent)
void send_commandGetVariable(int domID, int varID, const std::string &objID, tcpip::Storage *add=0) const
Sends a GetVariable request.
LaneScope lane
Scope for interaction with lanes.
PersonScope person
Scope for interaction with persons.
void load(const std::vector< std::string > &args)
Let sumo load a simulation using the given command line like options.
Scope for interaction with vehicles.
void send_commandSetOrder(int order) const
Sends a SetOrder command.
Scope for interaction with traffic lights.
SubscribedContextValues mySubscribedContextValues
void closeSocket()
Closes the connection.
void simulationStep(SUMOTime time=0)
Advances by one step (or up to the given time)
Scope for interaction with lane area detectors.
Scope for interaction with the gui.
TrafficLightScope trafficlights
Scope for interaction with traffic lights.
void readVariableSubscription(tcpip::Storage &inMsg)
std::map< std::string, SubscribedValues > SubscribedContextValues
Scope for interaction with routes.
InductionLoopScope inductionloop
Scope for interaction with inductive loops.
libsumo::TraCIPosition getPosition(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Scope for interaction with inductive loops.
POIScope(TraCIAPI &parent)
Scope for interaction with POIs.
Scope for interaction with the simulation.
Scope for interaction with multi entry/-exit detectors.
SubscribedValues mySubscribedValues
InductionLoopScope(TraCIAPI &parent)
MeMeScope multientryexit
Scope for interaction with multi-entry/-exit detectors.
std::map< std::string, TraCIValues > SubscribedValues
Scope for interaction with vehicle types.
PolygonScope(TraCIAPI &parent)
double getFloat(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
void send_commandSubscribeObjectVariable(int domID, const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars) const
Sends a SubscribeVariable request.
RouteScope route
Scope for interaction with routes.
std::map< int, libsumo::TraCIValue > TraCIValues
{object->{variable->value}}
void send_commandSimulationStep(SUMOTime time) const
Sends a SimulationStep command.
virtual ~InductionLoopScope()
Scope for interaction with polygons.
void send_commandMoveToXY(const std::string &vehicleID, const std::string &edgeID, const int lane, const double x, const double y, const double angle, const int keepRoute) const
int getInt(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
int getByte(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
static std::string toString(const T &t, std::streamsize accuracy=PRECISION)
int getUnsignedByte(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
double getDouble(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
Scope for interaction with vehicles.
Scope for interaction with junctions.
TrafficLightScope(TraCIAPI &parent)
void readContextSubscription(tcpip::Storage &inMsg)
libsumo::TraCIPositionVector getPolygon(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
void readVariables(tcpip::Storage &inMsg, const std::string &objectID, int variableCount, SubscribedValues &into)
virtual ~SimulationScope()
std::vector< std::string > getStringVector(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
EdgeScope(TraCIAPI &parent)
POIScope poi
Scope for interaction with POIs.
SimulationScope simulation
Scope for interaction with the simulation.
Scope for interaction with lanes.
TraCIScopeWrapper(TraCIAPI &parent)
Constructor.
RouteScope(TraCIAPI &parent)
VehicleScope vehicle
Scope for interaction with vehicles.
SUMOTime getSUMOTime(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
std::vector< TraCIPosition > TraCIPositionVector
void processGET(tcpip::Storage &inMsg, int command, int expectedType, bool ignoreCommandId=false) const
PolygonScope polygon
Scope for interaction with polygons.
virtual ~TraCIScopeWrapper()
Destructor.
VehicleTypeScope(TraCIAPI &parent)
void send_commandClose() const
Sends a Close command.
TraCIAPI & myParent
The parent TraCI client which offers the connection.
libsumo::TraCIPosition getPosition3D(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
int check_commandGetResult(tcpip::Storage &inMsg, int command, int expectedType=-1, bool ignoreCommandId=false) const
Validates the result state of a command.
SUMOTime LAST_TRAVEL_TIME_UPDATE
libsumo::TraCIBoundary getBoundingBox(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
GUIScope gui
Scope for interaction with the gui.
libsumo::TraCIColor getColor(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
std::string getString(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
VehicleScope(TraCIAPI &parent)
SimulationScope(TraCIAPI &parent)
An abstract interface for accessing type-dependent values.
LaneAreaScope lanearea
Scope for interaction with lanes.
virtual ~VehicleTypeScope()
LaneAreaScope(TraCIAPI &parent)
void send_commandSubscribeObjectContext(int domID, const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector< int > &vars) const
Sends a SubscribeContext request.
JunctionScope(TraCIAPI &parent)
VehicleTypeScope vehicletype
Scope for interaction with vehicle types.