![]() |
SUMO - Simulation of Urban MObility
|
Scope for interaction with inductive loops. More...
#include <TraCIAPI.h>
Public Member Functions | |
std::vector< std::string > | getIDList () const |
std::string | getLaneID (const std::string &loopID) const |
SUMOReal | getLastStepMeanLength (const std::string &loopID) const |
SUMOReal | getLastStepMeanSpeed (const std::string &loopID) const |
SUMOReal | getLastStepOccupancy (const std::string &loopID) const |
std::vector< std::string > | getLastStepVehicleIDs (const std::string &loopID) const |
unsigned int | getLastStepVehicleNumber (const std::string &loopID) const |
SUMOReal | getPosition (const std::string &loopID) const |
SUMOReal | getTimeSinceDetection (const std::string &loopID) const |
unsigned int | getVehicleData (const std::string &loopID) const |
InductionLoopScope (TraCIAPI &parent) | |
virtual | ~InductionLoopScope () |
Protected Attributes | |
TraCIAPI & | myParent |
The parent TraCI client which offers the connection. More... | |
Private Member Functions | |
InductionLoopScope (const InductionLoopScope &src) | |
invalidated copy constructor More... | |
InductionLoopScope & | operator= (const InductionLoopScope &src) |
invalidated assignment operator More... | |
Scope for interaction with inductive loops.
Definition at line 288 of file TraCIAPI.h.
|
inline |
Definition at line 290 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 291 of file TraCIAPI.h.
References TraCIAPI::getPosition(), and SUMOReal.
|
private |
invalidated copy constructor
std::vector< std::string > TraCIAPI::InductionLoopScope::getIDList | ( | ) | const |
Definition at line 650 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, ID_LIST, and SUMOReal.
std::string TraCIAPI::InductionLoopScope::getLaneID | ( | const std::string & | loopID | ) | const |
Definition at line 660 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and VAR_LANE_ID.
SUMOReal TraCIAPI::InductionLoopScope::getLastStepMeanLength | ( | const std::string & | loopID | ) | const |
Definition at line 685 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, LAST_STEP_LENGTH, and SUMOReal.
SUMOReal TraCIAPI::InductionLoopScope::getLastStepMeanSpeed | ( | const std::string & | loopID | ) | const |
Definition at line 670 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_MEAN_SPEED.
SUMOReal TraCIAPI::InductionLoopScope::getLastStepOccupancy | ( | const std::string & | loopID | ) | const |
Definition at line 680 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, LAST_STEP_OCCUPANCY, and SUMOReal.
std::vector< std::string > TraCIAPI::InductionLoopScope::getLastStepVehicleIDs | ( | const std::string & | loopID | ) | const |
Definition at line 675 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, LAST_STEP_VEHICLE_ID_LIST, and SUMOReal.
unsigned int TraCIAPI::InductionLoopScope::getLastStepVehicleNumber | ( | const std::string & | loopID | ) | const |
Definition at line 665 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, LAST_STEP_VEHICLE_NUMBER, and SUMOReal.
SUMOReal TraCIAPI::InductionLoopScope::getPosition | ( | const std::string & | loopID | ) | const |
Definition at line 655 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and VAR_POSITION.
SUMOReal TraCIAPI::InductionLoopScope::getTimeSinceDetection | ( | const std::string & | loopID | ) | const |
Definition at line 690 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_TIME_SINCE_DETECTION.
unsigned int TraCIAPI::InductionLoopScope::getVehicleData | ( | const std::string & | loopID | ) | const |
Definition at line 695 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_VEHICLE_DATA.
|
private |
invalidated assignment operator
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 192 of file TraCIAPI.h.