32 typedef Domain<libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, libsumo::CMD_SET_INDUCTIONLOOP_VARIABLE>
Dom;
38 std::vector<std::string>
39 InductionLoop::getIDList() {
45 InductionLoop::getIDCount() {
51 InductionLoop::getPosition(
const std::string& loopID) {
57 InductionLoop::getLaneID(
const std::string& loopID) {
63 InductionLoop::getLastStepVehicleNumber(
const std::string& loopID) {
69 InductionLoop::getLastStepMeanSpeed(
const std::string& loopID) {
74 std::vector<std::string>
75 InductionLoop::getLastStepVehicleIDs(
const std::string& loopID) {
81 InductionLoop::getLastStepOccupancy(
const std::string& loopID) {
87 InductionLoop::getLastStepMeanLength(
const std::string& loopID) {
93 InductionLoop::getTimeSinceDetection(
const std::string& loopID) {
98 std::vector<libsumo::TraCIVehicleData>
99 InductionLoop::getVehicleData(
const std::string& loopID) {
101 std::vector<libsumo::TraCIVehicleData> result;
107 for (
int i = 0; i < n; ++i) {
125 result.push_back(vd);
132 InductionLoop::getIntervalOccupancy(
const std::string& loopID) {
138 InductionLoop::getIntervalMeanSpeed(
const std::string& loopID) {
144 InductionLoop::getIntervalVehicleNumber(
const std::string& loopID) {
149 std::vector<std::string>
150 InductionLoop::getIntervalVehicleIDs(
const std::string& loopID) {
156 InductionLoop::getLastIntervalOccupancy(
const std::string& loopID) {
162 InductionLoop::getLastIntervalMeanSpeed(
const std::string& loopID) {
168 InductionLoop::getLastIntervalVehicleNumber(
const std::string& loopID) {
173 std::vector<std::string>
174 InductionLoop::getLastIntervalVehicleIDs(
const std::string& loopID) {
180 InductionLoop::overrideTimeSinceDetection(
const std::string& loopID,
double time) {
#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
#define LIBTRACI_PARAMETER_IMPLEMENTATION(CLASS, DOMAIN)
C++ TraCI client API implementation.
std::mutex & getMutex() const
static Connection & getActive()
static void setDouble(int var, const std::string &id, double value)
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)
static tcpip::Storage & get(int var, const std::string &id, tcpip::Storage *add=nullptr, int expectedType=libsumo::TYPE_COMPOUND)
virtual std::string readString()
virtual int readUnsignedByte()
virtual double readDouble()
TRACI_CONST int LAST_STEP_VEHICLE_ID_LIST
TRACI_CONST int VAR_INTERVAL_NUMBER
TRACI_CONST int LAST_STEP_VEHICLE_NUMBER
TRACI_CONST int TRACI_ID_LIST
TRACI_CONST int LAST_STEP_VEHICLE_DATA
TRACI_CONST int VAR_LAST_INTERVAL_IDS
TRACI_CONST int VAR_LAST_INTERVAL_NUMBER
TRACI_CONST int LAST_STEP_LENGTH
TRACI_CONST int VAR_POSITION
TRACI_CONST int LAST_STEP_MEAN_SPEED
TRACI_CONST int VAR_LAST_INTERVAL_OCCUPANCY
TRACI_CONST int VAR_INTERVAL_IDS
TRACI_CONST int VAR_LANE_ID
TRACI_CONST int LAST_STEP_OCCUPANCY
TRACI_CONST int VAR_INTERVAL_SPEED
TRACI_CONST int VAR_LAST_INTERVAL_SPEED
TRACI_CONST int VAR_INTERVAL_OCCUPANCY
TRACI_CONST int VAR_VIRTUAL_DETECTION
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].