![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Scope for interaction with inductive loops. More...
#include <TraCIAPI.h>
Public Member Functions | |
void | clearSubscriptionResults () |
const libsumo::ContextSubscriptionResults | getAllContextSubscriptionResults () const |
const libsumo::SubscriptionResults | getAllSubscriptionResults () const |
const libsumo::SubscriptionResults | getContextSubscriptionResults (const std::string &objID) const |
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 |
libsumo::SubscriptionResults & | getModifiableContextSubscriptionResults (const std::string &objID) |
libsumo::SubscriptionResults & | getModifiableSubscriptionResults () |
std::string | getParameter (const std::string &objectID, const std::string &key) const |
retrieve generic paramter More... | |
double | getPosition (const std::string &loopID) const |
const libsumo::TraCIResults | getSubscriptionResults (const std::string &objID) const |
double | getTimeSinceDetection (const std::string &loopID) const |
std::vector< libsumo::TraCIVehicleData > | getVehicleData (const std::string &loopID) const |
InductionLoopScope (TraCIAPI &parent) | |
void | setParameter (const std::string &objectID, const std::string &key, const std::string &value) const |
set generic paramter More... | |
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 | ~InductionLoopScope () |
Protected Attributes | |
int | myCmdGetID |
int | myCmdSetID |
int | myContextSubscribeID |
libsumo::ContextSubscriptionResults | myContextSubscriptionResults |
TraCIAPI & | myParent |
The parent TraCI client which offers the connection. More... | |
int | mySubscribeID |
libsumo::SubscriptionResults | mySubscriptionResults |
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 250 of file TraCIAPI.h.
|
inline |
Definition at line 252 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 253 of file TraCIAPI.h.
|
private |
invalidated copy constructor
|
inherited |
Definition at line 3667 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3651 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3635 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3657 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
std::vector< std::string > TraCIAPI::InductionLoopScope::getIDList | ( | ) | const |
Definition at line 927 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::TRACI_ID_LIST.
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::InductionLoopScope::getLaneID | ( | const std::string & | loopID | ) | const |
Definition at line 937 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::VAR_LANE_ID.
double TraCIAPI::InductionLoopScope::getLastStepMeanLength | ( | const std::string & | loopID | ) | const |
Definition at line 962 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::LAST_STEP_LENGTH.
double TraCIAPI::InductionLoopScope::getLastStepMeanSpeed | ( | const std::string & | loopID | ) | const |
Definition at line 947 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::LAST_STEP_MEAN_SPEED.
double TraCIAPI::InductionLoopScope::getLastStepOccupancy | ( | const std::string & | loopID | ) | const |
Definition at line 957 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::LAST_STEP_OCCUPANCY.
std::vector< std::string > TraCIAPI::InductionLoopScope::getLastStepVehicleIDs | ( | const std::string & | loopID | ) | const |
Definition at line 952 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::LAST_STEP_VEHICLE_ID_LIST.
int TraCIAPI::InductionLoopScope::getLastStepVehicleNumber | ( | const std::string & | loopID | ) | const |
Definition at line 942 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::LAST_STEP_VEHICLE_NUMBER.
|
inherited |
Definition at line 3680 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3674 of file TraCIAPI.cpp.
|
inherited |
retrieve generic paramter
Definition at line 3590 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI().
double TraCIAPI::InductionLoopScope::getPosition | ( | const std::string & | loopID | ) | const |
Definition at line 932 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::VAR_POSITION.
|
inherited |
Definition at line 3641 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::InductionLoopScope::getTimeSinceDetection | ( | const std::string & | loopID | ) | const |
Definition at line 967 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::LAST_STEP_TIME_SINCE_DETECTION.
std::vector< libsumo::TraCIVehicleData > TraCIAPI::InductionLoopScope::getVehicleData | ( | const std::string & | loopID | ) | const |
Definition at line 973 of file TraCIAPI.cpp.
References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, libsumo::TraCIVehicleData::entryTime, libsumo::TraCIVehicleData::id, libsumo::LAST_STEP_VEHICLE_DATA, libsumo::TraCIVehicleData::leaveTime, libsumo::TraCIVehicleData::length, libsumo::TYPE_COMPOUND, and libsumo::TraCIVehicleData::typeID.
Referenced by TraCITestClient::testAPI().
|
private |
invalidated assignment operator
|
inherited |
set generic paramter
Definition at line 3599 of file TraCIAPI.cpp.
References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3613 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3625 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 146 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 147 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 149 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 151 of file TraCIAPI.h.
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 145 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::getIDList().
|
protectedinherited |
Definition at line 148 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 150 of file TraCIAPI.h.