|
SUMO - Simulation of Urban MObility
|
Scope for interaction with lanes. More...
#include <TraCIAPI.h>
Public Member Functions | |
| std::vector< std::string > | getAllowed (const std::string &laneID) const |
| SUMOReal | getCO2Emission (const std::string &laneID) const |
| SUMOReal | getCOEmission (const std::string &laneID) const |
| std::vector< std::string > | getDisallowed (const std::string &laneID) const |
| std::string | getEdgeID (const std::string &laneID) const |
| SUMOReal | getFuelConsumption (const std::string &laneID) const |
| SUMOReal | getHCEmission (const std::string &laneID) const |
| std::vector< std::string > | getIDList () const |
| unsigned int | getLastStepHaltingNumber (const std::string &laneID) const |
| SUMOReal | getLastStepLength (const std::string &laneID) const |
| SUMOReal | getLastStepMeanSpeed (const std::string &laneID) const |
| SUMOReal | getLastStepOccupancy (const std::string &laneID) const |
| std::vector< std::string > | getLastStepVehicleIDs (const std::string &laneID) const |
| unsigned int | getLastStepVehicleNumber (const std::string &laneID) const |
| SUMOReal | getLength (const std::string &laneID) const |
| unsigned int | getLinkNumber (const std::string &laneID) const |
| SUMOReal | getMaxSpeed (const std::string &laneID) const |
| SUMOReal | getNoiseEmission (const std::string &laneID) const |
| SUMOReal | getNOxEmission (const std::string &laneID) const |
| SUMOReal | getPMxEmission (const std::string &laneID) const |
| TraCIPositionVector | getShape (const std::string &laneID) const |
| SUMOReal | getTraveltime (const std::string &laneID) const |
| SUMOReal | getWidth (const std::string &laneID) const |
| LaneScope (TraCIAPI &parent) | |
| void | setAllowed (const std::string &laneID, const std::vector< std::string > &allowedClasses) const |
| void | setDisallowed (const std::string &laneID, const std::vector< std::string > &disallowedClasses) const |
| void | setLength (const std::string &laneID, SUMOReal length) const |
| void | setMaxSpeed (const std::string &laneID, SUMOReal speed) const |
| virtual | ~LaneScope () |
Protected Attributes | |
| TraCIAPI & | myParent |
| The parent TraCI client which offers the connection. More... | |
Private Member Functions | |
| LaneScope (const LaneScope &src) | |
| invalidated copy constructor More... | |
| LaneScope & | operator= (const LaneScope &src) |
| invalidated assignment operator More... | |
Scope for interaction with lanes.
Definition at line 340 of file TraCIAPI.h.
|
inline |
Definition at line 342 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 343 of file TraCIAPI.h.
|
private |
invalidated copy constructor
| std::vector< std::string > TraCIAPI::LaneScope::getAllowed | ( | const std::string & | laneID | ) | const |
Definition at line 728 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LANE_ALLOWED.
| SUMOReal TraCIAPI::LaneScope::getCO2Emission | ( | const std::string & | laneID | ) | const |
Definition at line 753 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_CO2EMISSION.
| SUMOReal TraCIAPI::LaneScope::getCOEmission | ( | const std::string & | laneID | ) | const |
Definition at line 758 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_COEMISSION.
| std::vector< std::string > TraCIAPI::LaneScope::getDisallowed | ( | const std::string & | laneID | ) | const |
Definition at line 733 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LANE_DISALLOWED.
| std::string TraCIAPI::LaneScope::getEdgeID | ( | const std::string & | laneID | ) | const |
Definition at line 748 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LANE_EDGE_ID.
| SUMOReal TraCIAPI::LaneScope::getFuelConsumption | ( | const std::string & | laneID | ) | const |
Definition at line 778 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_FUELCONSUMPTION.
| SUMOReal TraCIAPI::LaneScope::getHCEmission | ( | const std::string & | laneID | ) | const |
Definition at line 763 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_HCEMISSION.
| std::vector< std::string > TraCIAPI::LaneScope::getIDList | ( | ) | const |
Definition at line 708 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and ID_LIST.
| unsigned int TraCIAPI::LaneScope::getLastStepHaltingNumber | ( | const std::string & | laneID | ) | const |
Definition at line 813 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LAST_STEP_VEHICLE_HALTING_NUMBER.
| SUMOReal TraCIAPI::LaneScope::getLastStepLength | ( | const std::string & | laneID | ) | const |
Definition at line 798 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LAST_STEP_LENGTH.
| SUMOReal TraCIAPI::LaneScope::getLastStepMeanSpeed | ( | const std::string & | laneID | ) | const |
Definition at line 788 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LAST_STEP_MEAN_SPEED.
| SUMOReal TraCIAPI::LaneScope::getLastStepOccupancy | ( | const std::string & | laneID | ) | const |
Definition at line 793 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LAST_STEP_OCCUPANCY.
| std::vector< std::string > TraCIAPI::LaneScope::getLastStepVehicleIDs | ( | const std::string & | laneID | ) | const |
Definition at line 818 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LAST_STEP_VEHICLE_ID_LIST.
| unsigned int TraCIAPI::LaneScope::getLastStepVehicleNumber | ( | const std::string & | laneID | ) | const |
Definition at line 808 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and LAST_STEP_VEHICLE_NUMBER.
| SUMOReal TraCIAPI::LaneScope::getLength | ( | const std::string & | laneID | ) | const |
Definition at line 713 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_LENGTH.
| unsigned int TraCIAPI::LaneScope::getLinkNumber | ( | const std::string & | laneID | ) | const |
Definition at line 738 of file TraCIAPI.cpp.
References tcpip::SocketException().
| SUMOReal TraCIAPI::LaneScope::getMaxSpeed | ( | const std::string & | laneID | ) | const |
Definition at line 718 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_MAXSPEED.
| SUMOReal TraCIAPI::LaneScope::getNoiseEmission | ( | const std::string & | laneID | ) | const |
Definition at line 783 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_NOISEEMISSION.
| SUMOReal TraCIAPI::LaneScope::getNOxEmission | ( | const std::string & | laneID | ) | const |
Definition at line 773 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_NOXEMISSION.
| SUMOReal TraCIAPI::LaneScope::getPMxEmission | ( | const std::string & | laneID | ) | const |
Definition at line 768 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_PMXEMISSION.
| TraCIAPI::TraCIPositionVector TraCIAPI::LaneScope::getShape | ( | const std::string & | laneID | ) | const |
Definition at line 743 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_SHAPE.
| SUMOReal TraCIAPI::LaneScope::getTraveltime | ( | const std::string & | laneID | ) | const |
Definition at line 803 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_CURRENT_TRAVELTIME.
| SUMOReal TraCIAPI::LaneScope::getWidth | ( | const std::string & | laneID | ) | const |
Definition at line 723 of file TraCIAPI.cpp.
References CMD_GET_LANE_VARIABLE, and VAR_WIDTH.
invalidated assignment operator
| void TraCIAPI::LaneScope::setAllowed | ( | const std::string & | laneID, |
| const std::vector< std::string > & | allowedClasses | ||
| ) | const |
Definition at line 824 of file TraCIAPI.cpp.
References CMD_SET_LANE_VARIABLE, LANE_ALLOWED, TYPE_STRINGLIST, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::LaneScope::setDisallowed | ( | const std::string & | laneID, |
| const std::vector< std::string > & | disallowedClasses | ||
| ) | const |
Definition at line 835 of file TraCIAPI.cpp.
References CMD_SET_LANE_VARIABLE, LANE_DISALLOWED, TYPE_STRINGLIST, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::LaneScope::setLength | ( | const std::string & | laneID, |
| SUMOReal | length | ||
| ) | const |
Definition at line 854 of file TraCIAPI.cpp.
References CMD_SET_LANE_VARIABLE, TYPE_DOUBLE, VAR_LENGTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
| void TraCIAPI::LaneScope::setMaxSpeed | ( | const std::string & | laneID, |
| SUMOReal | speed | ||
| ) | const |
Definition at line 846 of file TraCIAPI.cpp.
References CMD_SET_LANE_VARIABLE, TYPE_DOUBLE, VAR_MAXSPEED, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 188 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::getIDList().