![]() |
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 |
double | getLastStepMeanLength (const std::string &loopID) const |
double | getLastStepMeanSpeed (const std::string &loopID) const |
double | getLastStepOccupancy (const std::string &loopID) const |
std::vector< std::string > | getLastStepVehicleIDs (const std::string &loopID) const |
int | getLastStepVehicleNumber (const std::string &loopID) const |
double | getPosition (const std::string &loopID) const |
double | getTimeSinceDetection (const std::string &loopID) const |
std::vector< libsumo::TraCIVehicleData > | 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 226 of file TraCIAPI.h.
|
inline |
Definition at line 228 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 229 of file TraCIAPI.h.
References TraCIAPI::getPosition(), and TraCIAPI::TraCIScopeWrapper::operator=().
|
private |
invalidated copy constructor
std::vector< std::string > TraCIAPI::InductionLoopScope::getIDList | ( | ) | const |
Definition at line 879 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and ID_LIST.
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::InductionLoopScope::getLaneID | ( | const std::string & | loopID | ) | const |
Definition at line 889 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and VAR_LANE_ID.
double TraCIAPI::InductionLoopScope::getLastStepMeanLength | ( | const std::string & | loopID | ) | const |
Definition at line 914 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_LENGTH.
double TraCIAPI::InductionLoopScope::getLastStepMeanSpeed | ( | const std::string & | loopID | ) | const |
Definition at line 899 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_MEAN_SPEED.
double TraCIAPI::InductionLoopScope::getLastStepOccupancy | ( | const std::string & | loopID | ) | const |
Definition at line 909 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_OCCUPANCY.
std::vector< std::string > TraCIAPI::InductionLoopScope::getLastStepVehicleIDs | ( | const std::string & | loopID | ) | const |
Definition at line 904 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_VEHICLE_ID_LIST.
int TraCIAPI::InductionLoopScope::getLastStepVehicleNumber | ( | const std::string & | loopID | ) | const |
Definition at line 894 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_VEHICLE_NUMBER.
double TraCIAPI::InductionLoopScope::getPosition | ( | const std::string & | loopID | ) | const |
Definition at line 884 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and VAR_POSITION.
double TraCIAPI::InductionLoopScope::getTimeSinceDetection | ( | const std::string & | loopID | ) | const |
Definition at line 919 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_TIME_SINCE_DETECTION.
std::vector< TraCIVehicleData > TraCIAPI::InductionLoopScope::getVehicleData | ( | const std::string & | loopID | ) | const |
Definition at line 924 of file TraCIAPI.cpp.
References CMD_GET_INDUCTIONLOOP_VARIABLE, libsumo::TraCIVehicleData::entryTime, libsumo::TraCIVehicleData::id, LAST_STEP_VEHICLE_DATA, libsumo::TraCIVehicleData::leaveTime, libsumo::TraCIVehicleData::length, tcpip::Storage::readDouble(), tcpip::Storage::readInt(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), TYPE_COMPOUND, and libsumo::TraCIVehicleData::typeID.
Referenced by TraCITestClient::testAPI().
|
private |
invalidated assignment operator
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 129 of file TraCIAPI.h.