![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Scope for interaction with POIs. More...
#include <TraCIAPI.h>
Public Member Functions | |
| 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 |
| void | clearSubscriptionResults () |
| const libsumo::ContextSubscriptionResults | getAllContextSubscriptionResults () const |
| const libsumo::SubscriptionResults | getAllSubscriptionResults () const |
| double | getAngle (const std::string &poiID) const |
| libsumo::TraCIColor | getColor (const std::string &poiID) const |
| const libsumo::SubscriptionResults | getContextSubscriptionResults (const std::string &objID) const |
| double | getHeight (const std::string &poiID) const |
| int | getIDCount () const |
| std::vector< std::string > | getIDList () const |
| std::string | getImageFile (const std::string &poiID) const |
| libsumo::SubscriptionResults & | getModifiableContextSubscriptionResults (const std::string &objID) |
| libsumo::SubscriptionResults & | getModifiableSubscriptionResults () |
| std::string | getParameter (const std::string &objectID, const std::string &key) const |
| retrieve generic parameter | |
| std::pair< std::string, std::string > | getParameterWithKey (const std::string &objectID, const std::string &key) const |
| retrieve generic parameter and return (key, value) tuple | |
| libsumo::TraCIPosition | getPosition (const std::string &poiID) const |
| const libsumo::TraCIResults | getSubscriptionResults (const std::string &objID) const |
| std::string | getType (const std::string &poiID) const |
| double | getWidth (const std::string &poiID) const |
| POIScope (TraCIAPI &parent) | |
| void | remove (const std::string &poiID, int layer=0) const |
| void | setAngle (const std::string &poiID, double angle) const |
| void | setColor (const std::string &poiID, const libsumo::TraCIColor &c) const |
| void | setHeight (const std::string &poiID, double height) const |
| void | setImageFile (const std::string &poiID, const std::string &imageFile) const |
| void | setParameter (const std::string &objectID, const std::string &key, const std::string &value) const |
| set generic paramter | |
| void | setPosition (const std::string &poiID, double x, double y) const |
| void | setType (const std::string &poiID, const std::string &setType) const |
| void | setWidth (const std::string &poiID, double width) const |
| void | subscribe (const std::string &objID, const std::vector< int > &vars, double beginTime, double endTime) const |
| void | subscribeContext (const std::string &objID, int domain, double range, const std::vector< int > &vars, double beginTime, double endTime) const |
| virtual | ~POIScope () |
Protected Member Functions | |
| int | getByte (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIColor | getCol (int var, const std::string &id, tcpip::Storage *add=0) const |
| double | getDouble (int var, const std::string &id, tcpip::Storage *add=0) const |
| std::vector< double > | getDoubleVector (int var, const std::string &id, tcpip::Storage *add=0) const |
| int | getInt (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIPositionVector | getPolygon (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIPosition | getPos (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIPosition | getPos3D (int var, const std::string &id, tcpip::Storage *add=0) const |
| std::string | getString (int var, const std::string &id, tcpip::Storage *add=0) const |
| std::vector< std::string > | getStringVector (int var, const std::string &id, tcpip::Storage *add=0) const |
| libsumo::TraCIStage | getTraCIStage (int var, const std::string &id, tcpip::Storage *add=0) const |
| int | getUnsignedByte (int var, const std::string &id, tcpip::Storage *add=0) const |
| void | setDouble (int var, const std::string &id, double value) const |
| void | setInt (int var, const std::string &id, int value) const |
| void | setString (int var, const std::string &id, const std::string &value) const |
| void | setStringVector (int var, const std::string &id, const std::vector< std::string > &value) const |
Protected Attributes | |
| TraCIAPI & | myParent |
| The parent TraCI client which offers the connection. | |
Private Attributes | |
| int | myCmdGetID |
| int | myCmdSetID |
| int | myContextSubscribeID |
| libsumo::ContextSubscriptionResults | myContextSubscriptionResults |
| int | mySubscribeID |
| libsumo::SubscriptionResults | mySubscriptionResults |
Scope for interaction with POIs.
Definition at line 335 of file TraCIAPI.h.
|
inline |
Definition at line 337 of file TraCIAPI.h.
References TraCIAPI::TraCIAPI(), and TraCIAPI::TraCIScopeWrapper::TraCIScopeWrapper().
|
inlinevirtual |
Definition at line 338 of file TraCIAPI.h.
| void TraCIAPI::POIScope::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 at line 1180 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::ADD, libsumo::TraCIColor::b, libsumo::CMD_SET_POI_VARIABLE, libsumo::TraCIColor::g, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::POSITION_2D, libsumo::TraCIColor::r, libsumo::TYPE_COLOR, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
Definition at line 3899 of file TraCIAPI.cpp.
References myContextSubscriptionResults, and mySubscriptionResults.
|
inherited |
Definition at line 3883 of file TraCIAPI.cpp.
References myContextSubscriptionResults.
|
inherited |
Definition at line 3867 of file TraCIAPI.cpp.
References mySubscriptionResults.
| double TraCIAPI::POIScope::getAngle | ( | const std::string & | poiID | ) | const |
Definition at line 1115 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_ANGLE.
|
protectedinherited |
Definition at line 3569 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, myCmdGetID, myParent, and libsumo::TYPE_BYTE.
|
protectedinherited |
Definition at line 3685 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::TraCIColor::g, myCmdGetID, myParent, libsumo::TraCIColor::r, and libsumo::TYPE_COLOR.
Referenced by TraCIAPI::PersonScope::getColor(), TraCIAPI::POIScope::getColor(), TraCIAPI::PolygonScope::getColor(), TraCIAPI::VehicleScope::getColor(), and TraCIAPI::VehicleTypeScope::getColor().
| libsumo::TraCIColor TraCIAPI::POIScope::getColor | ( | const std::string & | poiID | ) | const |
Definition at line 1100 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getCol(), and libsumo::VAR_COLOR.
|
inherited |
Definition at line 3889 of file TraCIAPI.cpp.
References myContextSubscriptionResults.
|
protectedinherited |
Definition at line 3590 of file TraCIAPI.cpp.
References libsumo::INVALID_DOUBLE_VALUE, myCmdGetID, myParent, and libsumo::TYPE_DOUBLE.
Referenced by TraCIAPI::VehicleScope::getAccel(), TraCIAPI::VehicleTypeScope::getAccel(), TraCIAPI::VehicleScope::getAcceleration(), TraCIAPI::VehicleScope::getAccumulatedWaitingTime(), TraCIAPI::EdgeScope::getAdaptedTraveltime(), TraCIAPI::VehicleScope::getAllowedSpeed(), TraCIAPI::PersonScope::getAngle(), TraCIAPI::POIScope::getAngle(), TraCIAPI::VehicleScope::getAngle(), TraCIAPI::VehicleTypeScope::getApparentDecel(), TraCIAPI::EdgeScope::getCO2Emission(), TraCIAPI::LaneScope::getCO2Emission(), TraCIAPI::VehicleScope::getCO2Emission(), TraCIAPI::EdgeScope::getCOEmission(), TraCIAPI::LaneScope::getCOEmission(), TraCIAPI::VehicleScope::getCOEmission(), TraCIAPI::VehicleScope::getDecel(), TraCIAPI::VehicleTypeScope::getDecel(), TraCIAPI::SimulationScope::getDeltaT(), TraCIAPI::VehicleScope::getDistance(), TraCIAPI::EdgeScope::getEffort(), TraCIAPI::EdgeScope::getElectricityConsumption(), TraCIAPI::LaneScope::getElectricityConsumption(), TraCIAPI::VehicleScope::getElectricityConsumption(), TraCIAPI::VehicleTypeScope::getEmergencyDecel(), TraCIAPI::VehicleScope::getFollowSpeed(), TraCIAPI::EdgeScope::getFuelConsumption(), TraCIAPI::LaneScope::getFuelConsumption(), TraCIAPI::VehicleScope::getFuelConsumption(), TraCIAPI::EdgeScope::getHCEmission(), TraCIAPI::LaneScope::getHCEmission(), TraCIAPI::VehicleScope::getHCEmission(), TraCIAPI::POIScope::getHeight(), TraCIAPI::VehicleScope::getHeight(), TraCIAPI::VehicleTypeScope::getHeight(), TraCIAPI::VehicleScope::getImperfection(), TraCIAPI::VehicleTypeScope::getImperfection(), TraCIAPI::PersonScope::getLanePosition(), TraCIAPI::VehicleScope::getLanePosition(), TraCIAPI::EdgeScope::getLastStepLength(), TraCIAPI::LaneScope::getLastStepLength(), TraCIAPI::InductionLoopScope::getLastStepMeanLength(), TraCIAPI::EdgeScope::getLastStepMeanSpeed(), TraCIAPI::InductionLoopScope::getLastStepMeanSpeed(), TraCIAPI::LaneScope::getLastStepMeanSpeed(), TraCIAPI::MeMeScope::getLastStepMeanSpeed(), TraCIAPI::EdgeScope::getLastStepOccupancy(), TraCIAPI::InductionLoopScope::getLastStepOccupancy(), TraCIAPI::LaneScope::getLastStepOccupancy(), TraCIAPI::VehicleScope::getLateralLanePosition(), TraCIAPI::VehicleScope::getLateralSpeed(), TraCIAPI::LaneScope::getLength(), TraCIAPI::PersonScope::getLength(), TraCIAPI::VehicleScope::getLength(), TraCIAPI::VehicleTypeScope::getLength(), TraCIAPI::PolygonScope::getLineWidth(), TraCIAPI::LaneScope::getMaxSpeed(), TraCIAPI::VehicleScope::getMaxSpeed(), TraCIAPI::VehicleTypeScope::getMaxSpeed(), TraCIAPI::VehicleScope::getMaxSpeedLat(), TraCIAPI::VehicleTypeScope::getMaxSpeedLat(), TraCIAPI::VehicleScope::getMinGap(), TraCIAPI::VehicleTypeScope::getMinGap(), TraCIAPI::VehicleScope::getMinGapLat(), TraCIAPI::VehicleTypeScope::getMinGapLat(), TraCIAPI::TrafficLightScope::getNextSwitch(), TraCIAPI::EdgeScope::getNoiseEmission(), TraCIAPI::LaneScope::getNoiseEmission(), TraCIAPI::VehicleScope::getNoiseEmission(), TraCIAPI::EdgeScope::getNOxEmission(), TraCIAPI::LaneScope::getNOxEmission(), TraCIAPI::VehicleScope::getNOxEmission(), TraCIAPI::TrafficLightScope::getPhaseDuration(), TraCIAPI::EdgeScope::getPMxEmission(), TraCIAPI::LaneScope::getPMxEmission(), TraCIAPI::VehicleScope::getPMxEmission(), TraCIAPI::InductionLoopScope::getPosition(), TraCIAPI::VehicleScope::getSecureGap(), TraCIAPI::PersonScope::getSlope(), TraCIAPI::VehicleScope::getSlope(), TraCIAPI::PersonScope::getSpeed(), TraCIAPI::VehicleScope::getSpeed(), TraCIAPI::VehicleScope::getSpeedDeviation(), TraCIAPI::VehicleTypeScope::getSpeedDeviation(), TraCIAPI::PersonScope::getSpeedFactor(), TraCIAPI::VehicleScope::getSpeedFactor(), TraCIAPI::VehicleTypeScope::getSpeedFactor(), TraCIAPI::VehicleScope::getSpeedWithoutTraCI(), TraCIAPI::VehicleScope::getStopArrivalDelay(), TraCIAPI::VehicleScope::getStopDelay(), TraCIAPI::VehicleScope::getStopSpeed(), TraCIAPI::VehicleScope::getTau(), TraCIAPI::VehicleTypeScope::getTau(), TraCIAPI::SimulationScope::getTime(), TraCIAPI::InductionLoopScope::getTimeSinceDetection(), TraCIAPI::EdgeScope::getTraveltime(), TraCIAPI::LaneScope::getTraveltime(), TraCIAPI::PersonScope::getWaitingTime(), TraCIAPI::VehicleScope::getWaitingTime(), TraCIAPI::LaneScope::getWidth(), TraCIAPI::POIScope::getWidth(), TraCIAPI::VehicleScope::getWidth(), TraCIAPI::VehicleTypeScope::getWidth(), and TraCIAPI::GUIScope::getZoom().
|
protectedinherited |
Definition at line 3671 of file TraCIAPI.cpp.
References myCmdGetID, myParent, and libsumo::TYPE_DOUBLELIST.
Referenced by TraCIAPI::MeMeScope::getEntryPositions(), and TraCIAPI::MeMeScope::getExitPositions().
| double TraCIAPI::POIScope::getHeight | ( | const std::string & | poiID | ) | const |
Definition at line 1110 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_HEIGHT.
|
inherited |
Definition at line 3754 of file TraCIAPI.cpp.
References getInt(), and libsumo::ID_COUNT.
|
inherited |
Definition at line 3748 of file TraCIAPI.cpp.
References getStringVector(), and libsumo::TRACI_ID_LIST.
| std::string TraCIAPI::POIScope::getImageFile | ( | const std::string & | poiID | ) | const |
Definition at line 1120 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_IMAGEFILE.
|
protectedinherited |
Definition at line 3580 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, myCmdGetID, myParent, and libsumo::TYPE_INTEGER.
Referenced by TraCIAPI::SimulationScope::getArrivedNumber(), TraCIAPI::SimulationScope::getArrivedPersonNumber(), TraCIAPI::SimulationScope::getBusStopWaiting(), TraCIAPI::SimulationScope::getCurrentTime(), TraCIAPI::SimulationScope::getDepartedNumber(), TraCIAPI::SimulationScope::getDepartedPersonNumber(), TraCIAPI::SimulationScope::getEndingTeleportNumber(), TraCIAPI::PolygonScope::getFilled(), getIDCount(), TraCIAPI::InductionLoopScope::getIntervalVehicleNumber(), TraCIAPI::VehicleScope::getLaneChangeMode(), TraCIAPI::VehicleScope::getLaneIndex(), TraCIAPI::EdgeScope::getLaneNumber(), TraCIAPI::EdgeScope::getLastStepHaltingNumber(), TraCIAPI::LaneScope::getLastStepHaltingNumber(), TraCIAPI::MeMeScope::getLastStepHaltingNumber(), TraCIAPI::EdgeScope::getLastStepVehicleNumber(), TraCIAPI::InductionLoopScope::getLastStepVehicleNumber(), TraCIAPI::LaneScope::getLastStepVehicleNumber(), TraCIAPI::MeMeScope::getLastStepVehicleNumber(), TraCIAPI::LaneScope::getLinkNumber(), TraCIAPI::SimulationScope::getLoadedNumber(), TraCIAPI::SimulationScope::getMinExpectedNumber(), TraCIAPI::VehicleScope::getPersonCapacity(), TraCIAPI::VehicleTypeScope::getPersonCapacity(), TraCIAPI::VehicleScope::getPersonNumber(), TraCIAPI::TrafficLightScope::getPhase(), TraCIAPI::PersonScope::getRemainingStages(), TraCIAPI::VehicleScope::getRouteIndex(), TraCIAPI::VehicleScope::getRoutingMode(), TraCIAPI::TrafficLightScope::getServedPersonCount(), TraCIAPI::VehicleScope::getSignals(), TraCIAPI::VehicleScope::getSpeedMode(), TraCIAPI::SimulationScope::getStartingTeleportNumber(), TraCIAPI::VehicleScope::getStopState(), and TraCIAPI::VehicleScope::isRouteValid().
|
inherited |
Definition at line 3912 of file TraCIAPI.cpp.
References myContextSubscriptionResults.
|
inherited |
Definition at line 3906 of file TraCIAPI.cpp.
References mySubscriptionResults.
|
inherited |
retrieve generic parameter
Definition at line 3760 of file TraCIAPI.cpp.
References getString(), libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
|
inherited |
retrieve generic parameter and return (key, value) tuple
Definition at line 3769 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdGetID, myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER_WITH_KEY, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3600 of file TraCIAPI.cpp.
References myCmdGetID, myParent, libsumo::TYPE_POLYGON, libsumo::TraCIPositionVector::value, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
Referenced by TraCIAPI::GUIScope::getBoundary(), TraCIAPI::SimulationScope::getNetBoundary(), TraCIAPI::JunctionScope::getShape(), TraCIAPI::LaneScope::getShape(), and TraCIAPI::PolygonScope::getShape().
|
protectedinherited |
Definition at line 3621 of file TraCIAPI.cpp.
References myCmdGetID, myParent, libsumo::POSITION_2D, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
Referenced by TraCIAPI::GUIScope::getOffset(), TraCIAPI::JunctionScope::getPosition(), TraCIAPI::PersonScope::getPosition(), TraCIAPI::POIScope::getPosition(), and TraCIAPI::VehicleScope::getPosition().
|
protectedinherited |
Definition at line 3634 of file TraCIAPI.cpp.
References myCmdGetID, myParent, libsumo::POSITION_3D, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
Referenced by TraCIAPI::PersonScope::getPosition3D(), and TraCIAPI::VehicleScope::getPosition3D().
| libsumo::TraCIPosition TraCIAPI::POIScope::getPosition | ( | const std::string & | poiID | ) | const |
Definition at line 1095 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getPos(), and libsumo::VAR_POSITION.
|
protectedinherited |
Definition at line 3647 of file TraCIAPI.cpp.
References myCmdGetID, myParent, and libsumo::TYPE_STRING.
Referenced by TraCIAPI::LaneScope::getEdgeID(), TraCIAPI::VehicleScope::getEmissionClass(), TraCIAPI::VehicleTypeScope::getEmissionClass(), TraCIAPI::POIScope::getImageFile(), TraCIAPI::InductionLoopScope::getLaneID(), TraCIAPI::PersonScope::getLaneID(), TraCIAPI::VehicleScope::getLaneID(), TraCIAPI::VehicleScope::getLateralAlignment(), TraCIAPI::VehicleTypeScope::getLateralAlignment(), TraCIAPI::VehicleScope::getLine(), TraCIAPI::PersonScope::getNextEdge(), TraCIAPI::SimulationScope::getOption(), getParameter(), TraCIAPI::TrafficLightScope::getPhaseName(), TraCIAPI::TrafficLightScope::getProgram(), TraCIAPI::TrafficLightScope::getRedYellowGreenState(), TraCIAPI::PersonScope::getRoadID(), TraCIAPI::VehicleScope::getRoadID(), TraCIAPI::VehicleScope::getRouteID(), TraCIAPI::GUIScope::getSchema(), TraCIAPI::VehicleScope::getShapeClass(), TraCIAPI::VehicleTypeScope::getShapeClass(), TraCIAPI::EdgeScope::getStreetName(), TraCIAPI::POIScope::getType(), TraCIAPI::PolygonScope::getType(), TraCIAPI::PersonScope::getTypeID(), TraCIAPI::VehicleScope::getTypeID(), TraCIAPI::PersonScope::getVehicle(), TraCIAPI::VehicleScope::getVehicleClass(), and TraCIAPI::VehicleTypeScope::getVehicleClass().
|
protectedinherited |
Definition at line 3657 of file TraCIAPI.cpp.
References myCmdGetID, myParent, and libsumo::TYPE_STRINGLIST.
Referenced by TraCIAPI::LaneScope::getAllowed(), TraCIAPI::SimulationScope::getArrivedIDList(), TraCIAPI::SimulationScope::getArrivedPersonIDList(), TraCIAPI::SimulationScope::getBusStopWaitingIDList(), TraCIAPI::TrafficLightScope::getControlledLanes(), TraCIAPI::SimulationScope::getDepartedIDList(), TraCIAPI::SimulationScope::getDepartedPersonIDList(), TraCIAPI::LaneScope::getDisallowed(), TraCIAPI::PersonScope::getEdges(), TraCIAPI::RouteScope::getEdges(), TraCIAPI::SimulationScope::getEndingTeleportIDList(), TraCIAPI::MeMeScope::getEntryLanes(), TraCIAPI::MeMeScope::getExitLanes(), getIDList(), TraCIAPI::EdgeScope::getLastStepVehicleIDs(), TraCIAPI::InductionLoopScope::getLastStepVehicleIDs(), TraCIAPI::LaneScope::getLastStepVehicleIDs(), TraCIAPI::MeMeScope::getLastStepVehicleIDs(), TraCIAPI::SimulationScope::getLoadedIDList(), TraCIAPI::VehicleScope::getPersonIDList(), TraCIAPI::VehicleScope::getRoute(), TraCIAPI::SimulationScope::getStartingTeleportIDList(), and TraCIAPI::VehicleScope::getVia().
|
inherited |
Definition at line 3873 of file TraCIAPI.cpp.
References mySubscriptionResults.
|
protectedinherited |
Definition at line 3699 of file TraCIAPI.cpp.
References libsumo::TraCIStage::arrivalPos, libsumo::TraCIStage::cost, libsumo::TraCIStage::depart, libsumo::TraCIStage::departPos, libsumo::TraCIStage::description, libsumo::TraCIStage::destStop, libsumo::TraCIStage::edges, libsumo::TraCIStage::intended, libsumo::TraCIStage::length, libsumo::TraCIStage::line, myCmdGetID, myParent, libsumo::TraCIStage::travelTime, libsumo::TraCIStage::type, libsumo::TYPE_COMPOUND, and libsumo::TraCIStage::vType.
Referenced by TraCIAPI::SimulationScope::findRoute(), and TraCIAPI::PersonScope::getStage().
| std::string TraCIAPI::POIScope::getType | ( | const std::string & | poiID | ) | const |
Definition at line 1090 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getString(), and libsumo::VAR_TYPE.
|
protectedinherited |
Definition at line 3559 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, myCmdGetID, myParent, and libsumo::TYPE_UBYTE.
| double TraCIAPI::POIScope::getWidth | ( | const std::string & | poiID | ) | const |
Definition at line 1105 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::getDouble(), and libsumo::VAR_WIDTH.
| void TraCIAPI::POIScope::remove | ( | const std::string & | poiID, |
| int | layer = 0 ) const |
Definition at line 1209 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::REMOVE, libsumo::TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::POIScope::setAngle | ( | const std::string & | poiID, |
| double | angle ) const |
Definition at line 1168 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::setDouble(), and libsumo::VAR_ANGLE.
| void TraCIAPI::POIScope::setColor | ( | const std::string & | poiID, |
| const libsumo::TraCIColor & | c ) const |
Definition at line 1143 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::CMD_SET_POI_VARIABLE, libsumo::TraCIColor::g, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::TraCIColor::r, libsumo::TYPE_COLOR, libsumo::VAR_COLOR, and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3812 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIAPI::POIScope::setAngle(), TraCIAPI::POIScope::setHeight(), TraCIAPI::LaneScope::setLength(), TraCIAPI::EdgeScope::setMaxSpeed(), TraCIAPI::LaneScope::setMaxSpeed(), TraCIAPI::POIScope::setWidth(), and TraCIAPI::GUIScope::setZoom().
| void TraCIAPI::POIScope::setHeight | ( | const std::string & | poiID, |
| double | height ) const |
Definition at line 1162 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::setDouble(), and libsumo::VAR_HEIGHT.
| void TraCIAPI::POIScope::setImageFile | ( | const std::string & | poiID, |
| const std::string & | imageFile ) const |
Definition at line 1174 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::setString(), and libsumo::VAR_IMAGEFILE.
|
protectedinherited |
Definition at line 3802 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
set generic paramter
Definition at line 3788 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::POIScope::setPosition | ( | const std::string & | poiID, |
| double | x, | ||
| double | y ) const |
Definition at line 1132 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, TraCIAPI::TraCIScopeWrapper::myParent, libsumo::POSITION_2D, libsumo::VAR_POSITION, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3822 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIAPI::POIScope::setImageFile(), TraCIAPI::GUIScope::setSchema(), TraCIAPI::POIScope::setType(), and TraCIAPI::GUIScope::trackVehicle().
|
protectedinherited |
Definition at line 3832 of file TraCIAPI.cpp.
References invalid_return< std::string >::value, myCmdSetID, myParent, libsumo::TYPE_STRINGLIST, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIAPI::LaneScope::setAllowed(), and TraCIAPI::LaneScope::setDisallowed().
| void TraCIAPI::POIScope::setType | ( | const std::string & | poiID, |
| const std::string & | setType ) const |
Definition at line 1126 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::setString(), setType(), and libsumo::VAR_TYPE.
Referenced by setType().
| void TraCIAPI::POIScope::setWidth | ( | const std::string & | poiID, |
| double | width ) const |
Definition at line 1156 of file TraCIAPI.cpp.
References TraCIAPI::TraCIScopeWrapper::setDouble(), and libsumo::VAR_WIDTH.
|
inherited |
Definition at line 3845 of file TraCIAPI.cpp.
References myParent, and mySubscribeID.
|
inherited |
Definition at line 3857 of file TraCIAPI.cpp.
References myContextSubscribeID, and myParent.
|
privateinherited |
Definition at line 154 of file TraCIAPI.h.
Referenced by getByte(), getCol(), getDouble(), getDoubleVector(), getInt(), getParameterWithKey(), getPolygon(), getPos(), getPos3D(), getString(), getStringVector(), getTraCIStage(), getUnsignedByte(), and TraCIScopeWrapper().
|
privateinherited |
Definition at line 155 of file TraCIAPI.h.
Referenced by setDouble(), setInt(), setParameter(), setString(), setStringVector(), and TraCIScopeWrapper().
|
privateinherited |
Definition at line 157 of file TraCIAPI.h.
Referenced by subscribeContext(), and TraCIScopeWrapper().
|
privateinherited |
Definition at line 159 of file TraCIAPI.h.
Referenced by clearSubscriptionResults(), getAllContextSubscriptionResults(), getContextSubscriptionResults(), and getModifiableContextSubscriptionResults().
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 151 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::adaptTraveltime(), TraCIAPI::PersonScope::add(), TraCIAPI::POIScope::add(), TraCIAPI::PolygonScope::add(), TraCIAPI::RouteScope::add(), TraCIAPI::VehicleScope::add(), TraCIAPI::VehicleScope::addSubscriptionFilterByteList(), TraCIAPI::VehicleScope::addSubscriptionFilterEmpty(), TraCIAPI::VehicleScope::addSubscriptionFilterFloat(), TraCIAPI::VehicleScope::addSubscriptionFilterStringList(), TraCIAPI::PersonScope::appendDrivingStage(), TraCIAPI::PersonScope::appendStage(), TraCIAPI::PersonScope::appendWaitingStage(), TraCIAPI::PersonScope::appendWalkingStage(), TraCIAPI::VehicleScope::changeLane(), TraCIAPI::VehicleScope::changeLaneRelative(), TraCIAPI::VehicleScope::changeSublane(), TraCIAPI::VehicleScope::changeTarget(), TraCIAPI::SimulationScope::convert2D(), TraCIAPI::SimulationScope::convert3D(), TraCIAPI::SimulationScope::convertGeo(), TraCIAPI::SimulationScope::convertRoad(), TraCIAPI::VehicleTypeScope::copy(), TraCIAPI::TrafficLightScope::getAllProgramLogics(), TraCIAPI::VehicleScope::getBestLanes(), getByte(), getCol(), TraCIAPI::TrafficLightScope::getControlledLinks(), TraCIAPI::SimulationScope::getDistance2D(), TraCIAPI::SimulationScope::getDistanceRoad(), getDouble(), getDoubleVector(), TraCIAPI::LaneScope::getFoes(), TraCIAPI::VehicleScope::getFollower(), getInt(), TraCIAPI::VehicleScope::getLaneChangeState(), TraCIAPI::VehicleScope::getLeader(), TraCIAPI::LaneScope::getLinks(), TraCIAPI::VehicleScope::getNextTLS(), getParameterWithKey(), getPolygon(), getPos(), getPos3D(), getString(), getStringVector(), getTraCIStage(), getUnsignedByte(), TraCIAPI::InductionLoopScope::getVehicleData(), TraCIAPI::SimulationScope::loadState(), TraCIAPI::PersonScope::moveTo(), TraCIAPI::VehicleScope::moveTo(), TraCIAPI::PersonScope::moveToXY(), TraCIAPI::VehicleScope::moveToXY(), TraCIAPI::VehicleScope::openGap(), TraCIAPI::POIScope::remove(), TraCIAPI::PolygonScope::remove(), TraCIAPI::VehicleScope::remove(), TraCIAPI::PersonScope::removeStage(), TraCIAPI::PersonScope::rerouteTraveltime(), TraCIAPI::VehicleScope::rerouteTraveltime(), TraCIAPI::SimulationScope::saveState(), TraCIAPI::GUIScope::screenshot(), TraCIAPI::VehicleTypeScope::setAccel(), TraCIAPI::VehicleScope::setAcceleration(), TraCIAPI::VehicleTypeScope::setApparentDecel(), TraCIAPI::GUIScope::setBoundary(), TraCIAPI::PersonScope::setColor(), TraCIAPI::POIScope::setColor(), TraCIAPI::PolygonScope::setColor(), TraCIAPI::VehicleScope::setColor(), TraCIAPI::VehicleTypeScope::setColor(), TraCIAPI::VehicleTypeScope::setDecel(), setDouble(), TraCIAPI::EdgeScope::setEffort(), TraCIAPI::VehicleTypeScope::setEmergencyDecel(), TraCIAPI::VehicleScope::setEmissionClass(), TraCIAPI::VehicleTypeScope::setEmissionClass(), TraCIAPI::PersonScope::setHeight(), TraCIAPI::VehicleTypeScope::setHeight(), TraCIAPI::VehicleTypeScope::setImperfection(), setInt(), TraCIAPI::VehicleScope::setLaneChangeMode(), TraCIAPI::VehicleTypeScope::setLateralAlignment(), TraCIAPI::PersonScope::setLength(), TraCIAPI::VehicleTypeScope::setLength(), TraCIAPI::VehicleScope::setLine(), TraCIAPI::PolygonScope::setLineWidth(), TraCIAPI::VehicleScope::setMaxSpeed(), TraCIAPI::VehicleTypeScope::setMaxSpeed(), TraCIAPI::VehicleTypeScope::setMaxSpeedLat(), TraCIAPI::PersonScope::setMinGap(), TraCIAPI::VehicleScope::setMinGap(), TraCIAPI::VehicleTypeScope::setMinGap(), TraCIAPI::VehicleTypeScope::setMinGapLat(), TraCIAPI::GUIScope::setOffset(), setParameter(), TraCIAPI::TrafficLightScope::setPhase(), TraCIAPI::TrafficLightScope::setPhaseDuration(), TraCIAPI::TrafficLightScope::setPhaseName(), TraCIAPI::POIScope::setPosition(), TraCIAPI::VehicleScope::setPreviousSpeed(), TraCIAPI::TrafficLightScope::setProgram(), TraCIAPI::TrafficLightScope::setProgramLogic(), TraCIAPI::TrafficLightScope::setRedYellowGreenState(), TraCIAPI::VehicleScope::setRoute(), TraCIAPI::VehicleScope::setRouteID(), TraCIAPI::VehicleScope::setRoutingMode(), TraCIAPI::PolygonScope::setShape(), TraCIAPI::VehicleScope::setShapeClass(), TraCIAPI::VehicleTypeScope::setShapeClass(), TraCIAPI::VehicleScope::setSignals(), TraCIAPI::PersonScope::setSpeed(), TraCIAPI::VehicleScope::setSpeed(), TraCIAPI::VehicleTypeScope::setSpeedDeviation(), TraCIAPI::PersonScope::setSpeedFactor(), TraCIAPI::VehicleScope::setSpeedFactor(), TraCIAPI::VehicleTypeScope::setSpeedFactor(), TraCIAPI::VehicleScope::setSpeedMode(), TraCIAPI::VehicleScope::setStop(), setString(), setStringVector(), TraCIAPI::VehicleTypeScope::setTau(), TraCIAPI::PersonScope::setType(), TraCIAPI::PolygonScope::setType(), TraCIAPI::VehicleScope::setType(), TraCIAPI::VehicleTypeScope::setVehicleClass(), TraCIAPI::VehicleScope::setVia(), TraCIAPI::PersonScope::setWidth(), TraCIAPI::VehicleTypeScope::setWidth(), TraCIAPI::VehicleScope::slowDown(), subscribe(), subscribeContext(), TraCIScopeWrapper(), and TraCIAPI::SimulationScope::writeMessage().
|
privateinherited |
Definition at line 156 of file TraCIAPI.h.
Referenced by subscribe(), and TraCIScopeWrapper().
|
privateinherited |
Definition at line 158 of file TraCIAPI.h.
Referenced by clearSubscriptionResults(), getAllSubscriptionResults(), getModifiableSubscriptionResults(), and getSubscriptionResults().