Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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, const double detLength=0)
 Constructor.

Data Fields

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

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 286 of file MSInductLoop.h.

Constructor & Destructor Documentation

◆ VehicleData()

MSInductLoop::VehicleData::VehicleData ( const SUMOTrafficObject & v,
double entryTimestep,
double leaveTimestep,
const bool leftEarly,
const double detLength = 0 )

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
[in]leftEarlyWhether the vehicle left the detector with a lane change / teleport etc.
[in]detLengthThe length of the detector in meters

Definition at line 489 of file MSInductLoop.cpp.

References entryTimeM, Named::getID(), idM, leaveTimeM, leftEarlyM, lengthM, MAX2(), speedM, and typeIDM.

Field Documentation

◆ entryTimeM

double MSInductLoop::VehicleData::entryTimeM

Entry-time of the vehicle in [s].

Definition at line 305 of file MSInductLoop.h.

Referenced by VehicleData().

◆ idM

std::string MSInductLoop::VehicleData::idM

The id of the vehicle.

Definition at line 301 of file MSInductLoop.h.

Referenced by VehicleData().

◆ leaveTimeM

double MSInductLoop::VehicleData::leaveTimeM

Leave-time of the vehicle in [s].

Definition at line 307 of file MSInductLoop.h.

Referenced by VehicleData().

◆ leftEarlyM

bool MSInductLoop::VehicleData::leftEarlyM

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

Definition at line 313 of file MSInductLoop.h.

Referenced by VehicleData().

◆ lengthM

double MSInductLoop::VehicleData::lengthM

Length of the vehicle.

Definition at line 303 of file MSInductLoop.h.

Referenced by MSInductLoop::lengthSum(), and VehicleData().

◆ speedM

double MSInductLoop::VehicleData::speedM

Speed of the vehicle in [m/s].

Definition at line 309 of file MSInductLoop.h.

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

◆ typeIDM

std::string MSInductLoop::VehicleData::typeIDM

Type of the vehicle.

Definition at line 311 of file MSInductLoop.h.

Referenced by VehicleData().


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