Eclipse SUMO - Simulation of Urban MObility
MSInductLoop::VehicleData Struct Reference

Struct to store the data of the counted vehicle internally. More...

#include <MSInductLoop.h>

Public Member Functions

 VehicleData (const SUMOTrafficObject &v, double entryTimestep, double leaveTimestep, const bool leftEarly)
 Constructor. More...
 

Data Fields

double entryTimeM
 Entry-time of the vehicle in [s]. More...
 
std::string idM
 The id of the vehicle. More...
 
double leaveTimeM
 Leave-time of the vehicle in [s]. More...
 
bool leftEarlyM
 whether the vehicle left the detector with a lane change / teleport etc. More...
 
double lengthM
 Length of the vehicle. More...
 
double speedM
 Speed of the vehicle in [m/s]. More...
 
std::string typeIDM
 Type of the vehicle. More...
 

Detailed Description

Struct to store the data of the counted vehicle internally.

These data is fed into a container.

See also
myVehicleDataCont

Definition at line 249 of file MSInductLoop.h.

Constructor & Destructor Documentation

◆ VehicleData()

MSInductLoop::VehicleData::VehicleData ( const SUMOTrafficObject v,
double  entryTimestep,
double  leaveTimestep,
const bool  leftEarly 
)

Constructor.

Used if the vehicle has left the induction loop completely

Parameters
[in]vehLengthThe length of the vehicle
[in]entryTimestepThe time at which the vehicle entered the detector
[in]leaveTimestepThe time at which the vehicle left the detector

Definition at line 302 of file MSInductLoop.cpp.

Field Documentation

◆ entryTimeM

double MSInductLoop::VehicleData::entryTimeM

Entry-time of the vehicle in [s].

Definition at line 266 of file MSInductLoop.h.

◆ idM

std::string MSInductLoop::VehicleData::idM

The id of the vehicle.

Definition at line 262 of file MSInductLoop.h.

◆ leaveTimeM

double MSInductLoop::VehicleData::leaveTimeM

Leave-time of the vehicle in [s].

Definition at line 268 of file MSInductLoop.h.

◆ leftEarlyM

bool MSInductLoop::VehicleData::leftEarlyM

whether the vehicle left the detector with a lane change / teleport etc.

Definition at line 274 of file MSInductLoop.h.

◆ lengthM

double MSInductLoop::VehicleData::lengthM

Length of the vehicle.

Definition at line 264 of file MSInductLoop.h.

Referenced by MSInductLoop::lengthSum().

◆ speedM

double MSInductLoop::VehicleData::speedM

Speed of the vehicle in [m/s].

Definition at line 270 of file MSInductLoop.h.

Referenced by MSInductLoop::collectVehiclesOnDet(), and MSInductLoop::speedSum().

◆ typeIDM

std::string MSInductLoop::VehicleData::typeIDM

Type of the vehicle.

Definition at line 272 of file MSInductLoop.h.


The documentation for this struct was generated from the following files: