47 #define DEFAULT_VIEW "View #0" 60 #define SUMOTime_MAX std::numeric_limits<SUMOTime>::max() 82 void connect(
const std::string& host,
int port);
95 void load(
const std::vector<std::string>& args);
158 std::vector<std::string> getIDList()
const;
159 int getIDCount()
const;
160 double getAdaptedTraveltime(
const std::string& edgeID,
double time)
const;
161 double getEffort(
const std::string& edgeID,
SUMOTime time)
const;
162 double getCO2Emission(
const std::string& edgeID)
const;
163 double getCOEmission(
const std::string& edgeID)
const;
164 double getHCEmission(
const std::string& edgeID)
const;
165 double getPMxEmission(
const std::string& edgeID)
const;
166 double getNOxEmission(
const std::string& edgeID)
const;
167 double getFuelConsumption(
const std::string& edgeID)
const;
168 double getNoiseEmission(
const std::string& edgeID)
const;
169 double getElectricityConsumption(
const std::string& edgeID)
const;
170 double getLastStepMeanSpeed(
const std::string& edgeID)
const;
171 double getLastStepOccupancy(
const std::string& edgeID)
const;
172 double getLastStepLength(
const std::string& edgeID)
const;
173 double getTraveltime(
const std::string& edgeID)
const;
174 int getLastStepVehicleNumber(
const std::string& edgeID)
const;
175 double getLastStepHaltingNumber(
const std::string& edgeID)
const;
176 std::vector<std::string> getLastStepVehicleIDs(
const std::string& edgeID)
const;
178 void adaptTraveltime(
const std::string& edgeID,
double time,
double begin = 0,
double end =
SUMOTime_MAX / 1000.0)
const;
180 void setMaxSpeed(
const std::string& edgeID,
double speed)
const;
203 std::vector<std::string> getIDList()
const;
204 double getZoom(
const std::string& viewID =
DEFAULT_VIEW)
const;
206 std::string getSchema(
const std::string& viewID =
DEFAULT_VIEW)
const;
208 void setZoom(
const std::string& viewID,
double zoom)
const;
209 void setOffset(
const std::string& viewID,
double x,
double y)
const;
210 void setSchema(
const std::string& viewID,
const std::string& schemeName)
const;
211 void setBoundary(
const std::string& viewID,
double xmin,
double ymin,
double xmax,
double ymax)
const;
212 void screenshot(
const std::string& viewID,
const std::string& filename)
const;
213 void trackVehicle(
const std::string& viewID,
const std::string& vehID)
const;
236 std::vector<std::string> getIDList()
const;
237 double getPosition(
const std::string& loopID)
const;
238 std::string getLaneID(
const std::string& loopID)
const;
239 int getLastStepVehicleNumber(
const std::string& loopID)
const;
240 double getLastStepMeanSpeed(
const std::string& loopID)
const;
241 std::vector<std::string> getLastStepVehicleIDs(
const std::string& loopID)
const;
242 double getLastStepOccupancy(
const std::string& loopID)
const;
243 double getLastStepMeanLength(
const std::string& loopID)
const;
244 double getTimeSinceDetection(
const std::string& loopID)
const;
245 std::vector<TraCIVehicleData> getVehicleData(
const std::string& loopID)
const;
269 std::vector<std::string> getIDList()
const;
293 std::vector<std::string> getIDList()
const;
294 int getIDCount()
const;
295 double getLength(
const std::string& laneID)
const;
296 double getMaxSpeed(
const std::string& laneID)
const;
297 double getWidth(
const std::string& laneID)
const;
298 std::vector<std::string> getAllowed(
const std::string& laneID)
const;
299 std::vector<std::string> getDisallowed(
const std::string& laneID)
const;
300 int getLinkNumber(
const std::string& laneID)
const;
301 std::vector<TraCIConnection> getLinks(
const std::string& laneID)
const;
303 std::string getEdgeID(
const std::string& laneID)
const;
304 double getCO2Emission(
const std::string& laneID)
const;
305 double getCOEmission(
const std::string& laneID)
const;
306 double getHCEmission(
const std::string& laneID)
const;
307 double getPMxEmission(
const std::string& laneID)
const;
308 double getNOxEmission(
const std::string& laneID)
const;
309 double getFuelConsumption(
const std::string& laneID)
const;
310 double getNoiseEmission(
const std::string& laneID)
const;
311 double getElectricityConsumption(
const std::string& laneID)
const;
312 double getLastStepMeanSpeed(
const std::string& laneID)
const;
313 double getLastStepOccupancy(
const std::string& laneID)
const;
314 double getLastStepLength(
const std::string& laneID)
const;
315 double getTraveltime(
const std::string& laneID)
const;
316 int getLastStepVehicleNumber(
const std::string& laneID)
const;
317 int getLastStepHaltingNumber(
const std::string& laneID)
const;
318 std::vector<std::string> getLastStepVehicleIDs(
const std::string& laneID)
const;
320 void setAllowed(
const std::string& laneID,
const std::vector<std::string>& allowedClasses)
const;
321 void setDisallowed(
const std::string& laneID,
const std::vector<std::string>& disallowedClasses)
const;
322 void setMaxSpeed(
const std::string& laneID,
double speed)
const;
323 void setLength(
const std::string& laneID,
double length)
const;
343 std::vector<std::string> getIDList()
const;
363 std::vector<std::string> getIDList()
const;
364 int getLastStepVehicleNumber(
const std::string& detID)
const;
365 double getLastStepMeanSpeed(
const std::string& detID)
const;
366 std::vector<std::string> getLastStepVehicleIDs(
const std::string& detID)
const;
367 int getLastStepHaltingNumber(
const std::string& detID)
const;
390 std::vector<std::string> getIDList()
const;
391 std::string getType(
const std::string& poiID)
const;
395 void setType(
const std::string& poiID,
const std::string& setType)
const;
396 void setPosition(
const std::string& poiID,
double x,
double y)
const;
397 void setColor(
const std::string& poiID,
const TraCIColor& c)
const;
398 void add(
const std::string& poiID,
double x,
double y,
const TraCIColor& c,
const std::string& type,
int layer)
const;
399 void remove(
const std::string& poiID,
int layer = 0)
const;
422 std::vector<std::string> getIDList()
const;
423 std::string getType(
const std::string& polygonID)
const;
426 void setType(
const std::string& polygonID,
const std::string& setType)
const;
428 void setColor(
const std::string& polygonID,
const TraCIColor& c)
const;
429 void add(
const std::string& polygonID,
const TraCIPositionVector& shape,
const TraCIColor& c,
bool fill,
const std::string& type,
int layer)
const;
430 void remove(
const std::string& polygonID,
int layer = 0)
const;
453 std::vector<std::string> getIDList()
const;
454 std::vector<std::string> getEdges(
const std::string& routeID)
const;
456 void add(
const std::string& routeID,
const std::vector<std::string>& edges)
const;
484 int getLoadedNumber()
const;
485 std::vector<std::string> getLoadedIDList()
const;
486 int getDepartedNumber()
const;
487 std::vector<std::string> getDepartedIDList()
const;
488 int getArrivedNumber()
const;
489 std::vector<std::string> getArrivedIDList()
const;
490 int getStartingTeleportNumber()
const;
491 std::vector<std::string> getStartingTeleportIDList()
const;
492 int getEndingTeleportNumber()
const;
493 std::vector<std::string> getEndingTeleportIDList()
const;
496 int getMinExpectedNumber()
const;
498 void subscribe(
int domID,
const std::string& objID,
SUMOTime beginTime,
SUMOTime endTime,
const std::vector<int>& vars)
const;
499 void subscribeContext(
int domID,
const std::string& objID,
SUMOTime beginTime,
SUMOTime endTime,
int domain,
double range,
const std::vector<int>& vars)
const;
501 const SubscribedValues& getSubscriptionResults()
const;
502 const TraCIValues& getSubscriptionResults(
const std::string& objID)
const;
504 const SubscribedContextValues& getContextSubscriptionResults()
const;
505 const SubscribedValues& getContextSubscriptionResults(
const std::string& objID)
const;
528 std::vector<std::string> getIDList()
const;
529 std::string getRedYellowGreenState(
const std::string& tlsID)
const;
530 std::vector<TraCILogic> getCompleteRedYellowGreenDefinition(
const std::string& tlsID)
const;
531 std::vector<std::string> getControlledLanes(
const std::string& tlsID)
const;
532 std::vector<TraCILink> getControlledLinks(
const std::string& tlsID)
const;
533 std::string getProgram(
const std::string& tlsID)
const;
534 int getPhase(
const std::string& tlsID)
const;
535 int getNextSwitch(
const std::string& tlsID)
const;
537 void setRedYellowGreenState(
const std::string& tlsID,
const std::string& state)
const;
538 void setPhase(
const std::string& tlsID,
int index)
const;
539 void setProgram(
const std::string& tlsID,
const std::string& programID)
const;
540 void setPhaseDuration(
const std::string& tlsID,
int phaseDuration)
const;
541 void setCompleteRedYellowGreenDefinition(
const std::string& tlsID,
const TraCILogic& logic)
const;
564 std::vector<std::string> getIDList()
const;
565 double getLength(
const std::string& typeID)
const;
566 double getMaxSpeed(
const std::string& typeID)
const;
567 double getSpeedFactor(
const std::string& typeID)
const;
568 double getSpeedDeviation(
const std::string& typeID)
const;
569 double getAccel(
const std::string& typeID)
const;
570 double getDecel(
const std::string& typeID)
const;
571 double getEmergencyDecel(
const std::string& typeID)
const;
572 double getApparentDecel(
const std::string& typeID)
const;
573 double getImperfection(
const std::string& typeID)
const;
574 double getTau(
const std::string& typeID)
const;
575 std::string getVehicleClass(
const std::string& typeID)
const;
576 std::string getEmissionClass(
const std::string& typeID)
const;
577 std::string getShapeClass(
const std::string& typeID)
const;
578 double getMinGap(
const std::string& typeID)
const;
579 double getWidth(
const std::string& typeID)
const;
580 double getHeight(
const std::string& typeID)
const;
582 double getMinGapLat(
const std::string& typeID)
const;
583 double getMaxSpeedLat(
const std::string& typeID)
const;
584 std::string getLateralAlignment(
const std::string& typeID)
const;
586 void setLength(
const std::string& typeID,
double length)
const;
587 void setMaxSpeed(
const std::string& typeID,
double speed)
const;
588 void setVehicleClass(
const std::string& typeID,
const std::string& clazz)
const;
589 void setSpeedFactor(
const std::string& typeID,
double factor)
const;
590 void setSpeedDeviation(
const std::string& typeID,
double deviation)
const;
591 void setEmissionClass(
const std::string& typeID,
const std::string& clazz)
const;
592 void setShapeClass(
const std::string& typeID,
const std::string& shapeClass)
const;
593 void setWidth(
const std::string& typeID,
double width)
const;
594 void setHeight(
const std::string& typeID,
double height)
const;
595 void setMinGap(
const std::string& typeID,
double minGap)
const;
596 void setAccel(
const std::string& typeID,
double accel)
const;
597 void setDecel(
const std::string& typeID,
double decel)
const;
598 void setEmergencyDecel(
const std::string& typeID,
double decel)
const;
599 void setApparentDecel(
const std::string& typeID,
double decel)
const;
600 void setImperfection(
const std::string& typeID,
double imperfection)
const;
601 void setTau(
const std::string& typeID,
double tau)
const;
602 void setColor(
const std::string& typeID,
const TraCIColor& c)
const;
603 void setMinGapLat(
const std::string& typeID,
double minGapLat)
const;
604 void setMaxSpeedLat(
const std::string& typeID,
double speed)
const;
605 void setLateralAlignment(
const std::string& typeID,
const std::string& latAlignment)
const;
606 void copy(
const std::string& origTypeID,
const std::string& newTypeID)
const;
631 std::vector<std::string> getIDList()
const;
632 int getIDCount()
const;
633 double getSpeed(
const std::string& vehicleID)
const;
636 double getAngle(
const std::string& vehicleID)
const;
637 std::string getRoadID(
const std::string& vehicleID)
const;
638 std::string getLaneID(
const std::string& vehicleID)
const;
639 int getLaneIndex(
const std::string& vehicleID)
const;
640 std::string getTypeID(
const std::string& vehicleID)
const;
641 std::string getRouteID(
const std::string& vehicleID)
const;
642 int getRouteIndex(
const std::string& vehicleID)
const;
643 std::vector<std::string> getEdges(
const std::string& vehicleID)
const;
644 std::vector<std::string> getRoute(
const std::string& vehicleID)
const;
646 double getLanePosition(
const std::string& vehicleID)
const;
647 double getDistance(
const std::string& vehicleID)
const;
648 int getSignalStates(
const std::string& vehicleID)
const;
649 double getCO2Emission(
const std::string& vehicleID)
const;
650 double getCOEmission(
const std::string& vehicleID)
const;
651 double getHCEmission(
const std::string& vehicleID)
const;
652 double getPMxEmission(
const std::string& vehicleID)
const;
653 double getNOxEmission(
const std::string& vehicleID)
const;
654 double getFuelConsumption(
const std::string& vehicleID)
const;
655 double getNoiseEmission(
const std::string& vehicleID)
const;
656 double getElectricityConsumption(
const std::string& vehicleID)
const;
657 int getSpeedMode(
const std::string& vehicleID)
const;
658 int getStopState(
const std::string& vehicleID)
const;
659 double getWaitingTime(
const std::string& vehicleID)
const;
660 double getAccumulatedWaitingTime(
const std::string& vehicleID)
const;
661 double getSlope(
const std::string& vehicleID)
const;
662 double getAllowedSpeed(
const std::string& vehicleID)
const;
663 int getPersonNumber(
const std::string& vehicleID)
const;
664 double getSpeedWithoutTraCI(
const std::string& vehicleID)
const;
665 bool isRouteValid(
const std::string& vehicleID)
const;
666 double getLateralLanePosition(
const std::string& vehicleID)
const;
667 double getSpeedFactor(
const std::string& vehicleID)
const;
668 std::string getLine(
const std::string& vehicleID)
const;
669 std::vector<std::string> getVia(
const std::string& vehicleID)
const;
670 std::vector<TraCINextTLSData> getNextTLS(
const std::string& vehID)
const;
671 std::vector<TraCIBestLanesData> getBestLanes(
const std::string& vehicleID)
const;
672 std::pair<std::string, double> getLeader(
const std::string& vehicleID,
double dist)
const;
677 double getLength(
const std::string& vehicleID)
const;
678 double getMaxSpeed(
const std::string& vehicleID)
const;
679 double getAccel(
const std::string& vehicleID)
const;
680 double getDecel(
const std::string& vehicleID)
const;
681 double getEmergencyDecel(
const std::string& vehicleID)
const;
682 double getApparentDecel(
const std::string& vehicleID)
const;
683 double getTau(
const std::string& vehicleID)
const;
684 double getImperfection(
const std::string& vehicleID)
const;
685 double getSpeedDeviation(
const std::string& vehicleID)
const;
686 double getMinGap(
const std::string& vehicleID)
const;
687 double getWidth(
const std::string& vehicleID)
const;
688 double getHeight(
const std::string& veihcleID)
const;
689 double getMaxSpeedLat(
const std::string& vehicleID)
const;
690 double getMinGapLat(
const std::string& vehicleID)
const;
691 std::string getVehicleClass(
const std::string& vehicleID)
const;
692 std::string getEmissionClass(
const std::string& vehicleID)
const;
693 std::string getShapeClass(
const std::string& vehicleID)
const;
694 std::string getLateralAlignment(
const std::string& vehicleID)
const;
699 void add(
const std::string& vehicleID,
700 const std::string& routeID,
701 const std::string& typeID =
"DEFAULT_VEHTYPE",
702 std::string depart =
"-1",
703 const std::string& departLane =
"first",
704 const std::string& departPos =
"base",
705 const std::string& departSpeed =
"0",
706 const std::string& arrivalLane =
"current",
707 const std::string& arrivalPos =
"max",
708 const std::string& arrivalSpeed =
"current",
709 const std::string& fromTaz =
"",
710 const std::string& toTaz =
"",
711 const std::string& line =
"",
712 int personCapacity = 0,
713 int personNumber = 0)
const;
715 void changeTarget(
const std::string& vehicleID,
const std::string& edgeID)
const;
716 void setRouteID(
const std::string& vehicleID,
const std::string& routeID)
const;
717 void setRoute(
const std::string& vehicleID,
const std::vector<std::string>&
edge)
const;
718 void rerouteTraveltime(
const std::string& vehicleID,
bool currentTravelTimes =
true)
const;
719 void moveTo(
const std::string& vehicleID,
const std::string& laneID,
double position)
const;
720 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;
721 void slowDown(
const std::string& vehicleID,
double speed,
int duration)
const;
722 void setSpeed(
const std::string& vehicleID,
double speed)
const;
723 void remove(
const std::string& vehicleID,
char reason =
REMOVE_VAPORIZED)
const;
724 void setColor(
const std::string& vehicleID,
const TraCIColor& c)
const;
725 void setLine(
const std::string& vehicleID,
const std::string& line)
const;
726 void setVia(
const std::string& vehicleID,
const std::vector<std::string>& via)
const;
731 void setShapeClass(
const std::string& vehicleID,
const std::string& clazz)
const;
732 void setEmissionClass(
const std::string& vehicleID,
const std::string& clazz)
const;
733 void setMaxSpeed(
const std::string& vehicleID,
double speed)
const;
755 std::vector<std::string> getIDList()
const;
756 int getIDCount()
const;
757 double getSpeed(
const std::string& personID)
const;
759 std::string getRoadID(
const std::string& personID)
const;
760 std::string getTypeID(
const std::string& personID)
const;
761 double getWaitingTime(
const std::string& personID)
const;
762 std::string getNextEdge(
const std::string& personID)
const;
763 std::string getVehicle(
const std::string& personID)
const;
764 int getRemainingStages(
const std::string& personID)
const;
765 int getStage(
const std::string& personID,
int nextStageIndex = 0)
const;
766 std::vector<std::string> getEdges(
const std::string& personID,
int nextStageIndex = 0)
const;
768 void removeStages(
const std::string& personID)
const;
769 void add(
const std::string& personID,
const std::string& edgeID,
double pos,
double depart =
DEPARTFLAG_NOW,
const std::string typeID =
"DEFAULT_PEDTYPE");
770 void appendWaitingStage(
const std::string& personID,
double duration,
const std::string& description =
"waiting",
const std::string& stopID =
"");
771 void appendWalkingStage(
const std::string& personID,
const std::vector<std::string>& edges,
double arrivalPos,
double duration = -1,
double speed = -1,
const std::string& stopID =
"");
772 void appendDrivingStage(
const std::string& personID,
const std::string& toEdge,
const std::string& lines,
const std::string& stopID =
"");
773 void removeStage(
const std::string& personID,
int nextStageIndex)
const;
774 void rerouteTraveltime(
const std::string& personID)
const;
775 void setSpeed(
const std::string& personID,
double speed)
const;
776 void setType(
const std::string& personID,
const std::string& typeID)
const;
777 void setLength(
const std::string& personID,
double length)
const;
778 void setWidth(
const std::string& personID,
double width)
const;
779 void setHeight(
const std::string& personID,
double height)
const;
780 void setMinGap(
const std::string& personID,
double minGap)
const;
781 void setColor(
const std::string& personID,
const TraCIColor& c)
const;
878 int domain,
double range,
const std::vector<int>& vars)
const;
882 void send_commandMoveToXY(
const std::string& vehicleID,
const std::string& edgeID,
const int lane,
883 const double x,
const double y,
const double angle,
const int keepRoute)
const;
911 std::ostringstream oss;
912 oss.setf(std::ios::fixed , std::ios::floatfield);
913 oss << std::setprecision(accuracy);
EdgeScope edge
Scope for interaction with edges.
LaneScope(TraCIAPI &parent)
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 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
std::map< int, TraCIValue > TraCIValues
{object->{variable->value}}
GUIScope(TraCIAPI &parent)
virtual ~TrafficLightScope()
void send_commandClose() const
Sends a Close command.
TraCIScopeWrapper & operator=(const TraCIScopeWrapper &src)
invalidated assignment operator
JunctionScope junction
Scope for interaction with junctions.
PersonScope(TraCIAPI &parent)
LaneScope lane
Scope for interaction with lanes.
PersonScope person
Scope for interaction with persons.
void processGET(tcpip::Storage &inMsg, int command, int expectedType, bool ignoreCommandId=false) const
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.
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.
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.
void send_commandSimulationStep(SUMOTime time) const
Sends a SimulationStep command.
SubscribedValues mySubscribedValues
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
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)
void send_commandGetVariable(int domID, int varID, const std::string &objID, tcpip::Storage *add=0) const
Sends a GetVariable request.
double getFloat(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
RouteScope route
Scope for interaction with routes.
virtual ~InductionLoopScope()
Scope for interaction with polygons.
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)
int check_commandGetResult(tcpip::Storage &inMsg, int command, int expectedType=-1, bool ignoreCommandId=false) const
Validates the result state of a command.
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)
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.
POIScope poi
Scope for interaction with POIs.
void send_commandSubscribeObjectVariable(int domID, const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars) const
Sends a SubscribeVariable request.
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)
PolygonScope polygon
Scope for interaction with polygons.
virtual ~TraCIScopeWrapper()
Destructor.
void check_resultState(tcpip::Storage &inMsg, int command, bool ignoreCommandId=false, std::string *acknowledgement=0) const
Validates the result state of a command.
VehicleTypeScope(TraCIAPI &parent)
TraCIAPI & myParent
The parent TraCI client which offers the connection.
TraCIPosition getPosition3D(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
SUMOTime LAST_TRAVEL_TIME_UPDATE
TraCIBoundary getBoundingBox(int cmd, int var, const std::string &id, tcpip::Storage *add=0)
GUIScope gui
Scope for interaction with the gui.
void send_commandSetValue(int domID, int varID, const std::string &objID, tcpip::Storage &content) const
Sends a SetVariable request.
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)
JunctionScope(TraCIAPI &parent)
VehicleTypeScope vehicletype
Scope for interaction with vehicle types.