33 typedef Domain<libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, libsumo::CMD_SET_INDUCTIONLOOP_VARIABLE>
Dom;
39 std::vector<std::string>
40 InductionLoop::getIDList() {
46 InductionLoop::getIDCount() {
52 InductionLoop::getPosition(
const std::string& detID) {
58 InductionLoop::getLaneID(
const std::string& detID) {
64 InductionLoop::getLastStepVehicleNumber(
const std::string& detID) {
70 InductionLoop::getLastStepMeanSpeed(
const std::string& detID) {
75 std::vector<std::string>
76 InductionLoop::getLastStepVehicleIDs(
const std::string& detID) {
82 InductionLoop::getLastStepOccupancy(
const std::string& detID) {
88 InductionLoop::getLastStepMeanLength(
const std::string& detID) {
94 InductionLoop::getTimeSinceDetection(
const std::string& detID) {
99 std::vector<libsumo::TraCIVehicleData>
100 InductionLoop::getVehicleData(
const std::string& detID) {
101 std::vector<libsumo::TraCIVehicleData> result;
108 for (
int i = 0; i < n; ++i) {
126 result.push_back(vd);
#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
#define LIBTRACI_PARAMETER_IMPLEMENTATION(CLASS, DOMAIN)
C++ TraCI client API implementation.
static Connection & getActive()
tcpip::Storage & doCommand(int command, int var, const std::string &id, tcpip::Storage *add=nullptr)
static std::vector< std::string > getStringVector(int var, const std::string &id, tcpip::Storage *add=nullptr)
static std::string getString(int var, const std::string &id, tcpip::Storage *add=nullptr)
static int getInt(int var, const std::string &id, tcpip::Storage *add=nullptr)
static double getDouble(int var, const std::string &id, tcpip::Storage *add=nullptr)
virtual std::string readString()
virtual int readUnsignedByte()
virtual double readDouble()
TRACI_CONST int LAST_STEP_VEHICLE_ID_LIST
TRACI_CONST int LAST_STEP_VEHICLE_NUMBER
TRACI_CONST int TRACI_ID_LIST
TRACI_CONST int LAST_STEP_VEHICLE_DATA
TRACI_CONST int LAST_STEP_LENGTH
TRACI_CONST int TYPE_COMPOUND
TRACI_CONST int VAR_POSITION
TRACI_CONST int LAST_STEP_MEAN_SPEED
TRACI_CONST int VAR_LANE_ID
TRACI_CONST int LAST_STEP_OCCUPANCY
TRACI_CONST int CMD_GET_INDUCTIONLOOP_VARIABLE
TRACI_CONST int LAST_STEP_TIME_SINCE_DETECTION
Domain< libsumo::CMD_GET_BUSSTOP_VARIABLE, libsumo::CMD_SET_BUSSTOP_VARIABLE > Dom
mirrors MSInductLoop::VehicleData
std::string id
The id of the vehicle.
double entryTime
Entry-time of the vehicle in [s].
std::string typeID
Type of the vehicle in.
double length
Length of the vehicle.
double leaveTime
Leave-time of the vehicle in [s].