32typedef Domain<libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, libsumo::CMD_SET_INDUCTIONLOOP_VARIABLE>
Dom;
38std::vector<std::string>
39InductionLoop::getIDList() {
45InductionLoop::getIDCount() {
51InductionLoop::getPosition(
const std::string& loopID) {
57InductionLoop::getLaneID(
const std::string& loopID) {
63InductionLoop::getLastStepVehicleNumber(
const std::string& loopID) {
69InductionLoop::getLastStepMeanSpeed(
const std::string& loopID) {
74std::vector<std::string>
75InductionLoop::getLastStepVehicleIDs(
const std::string& loopID) {
81InductionLoop::getLastStepOccupancy(
const std::string& loopID) {
87InductionLoop::getLastStepMeanLength(
const std::string& loopID) {
93InductionLoop::getTimeSinceDetection(
const std::string& loopID) {
98std::vector<libsumo::TraCIVehicleData>
99InductionLoop::getVehicleData(
const std::string& loopID) {
101 std::vector<libsumo::TraCIVehicleData> result;
107 for (
int i = 0; i < n; ++i) {
125 result.push_back(vd);
132InductionLoop::getIntervalOccupancy(
const std::string& loopID) {
138InductionLoop::getIntervalMeanSpeed(
const std::string& loopID) {
144InductionLoop::getIntervalVehicleNumber(
const std::string& loopID) {
149std::vector<std::string>
150InductionLoop::getIntervalVehicleIDs(
const std::string& loopID) {
156InductionLoop::getLastIntervalOccupancy(
const std::string& loopID) {
162InductionLoop::getLastIntervalMeanSpeed(
const std::string& loopID) {
168InductionLoop::getLastIntervalVehicleNumber(
const std::string& loopID) {
173std::vector<std::string>
174InductionLoop::getLastIntervalVehicleIDs(
const std::string& loopID) {
180InductionLoop::overrideTimeSinceDetection(
const std::string& loopID,
double time) {
#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
#define LIBTRACI_PARAMETER_IMPLEMENTATION(CLASS, DOMAIN)
C++ TraCI client API implementation.
static Connection & getActive()
std::mutex & getMutex() const
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].