![]() |
SUMO - Simulation of Urban MObility
|
A VehicleInfo stores values that are tracked for the individual vehicles on the detector, e.g., accumulated timeloss. These infos are stored in myVehicles. If a vehicle leaves the detector (may it be temporarily), the entry in myVehicles is discarded, i.e. all information on the vehicle is reset. More...
#include <MSE2Collector.h>
Public Member Functions | |
VehicleInfo (std::string id, std::string type, double length, double minGap, const MSLane *entryLane, double entryOffset, std::size_t currentOffsetIndex, double exitOffset, double distToDetectorEnd, bool onDetector) | |
virtual | ~VehicleInfo () |
Data Fields | |
double | accumulatedTimeLoss |
Accumulated time loss that this vehicle suffered since it entered the detector. More... | |
const MSLane * | currentLane |
Lane, on which the vehicle currently resides (always the one for which the last notifyEnter was received) More... | |
std::size_t | currentOffsetIndex |
Index of currentLane in the detector's myLanes vector. More... | |
double | distToDetectorEnd |
Distance left till the detector end after the last integration step (may become negative if the vehicle passes beyond the detector end) More... | |
std::string | entryLaneID |
ID of the lane, on which the vehicle entered the detector. More... | |
double | entryOffset |
double | exitOffset |
bool | hasEntered |
Whether the vehicle has already entered the detector (don't count twice!) More... | |
std::string | id |
vehicle's ID More... | |
double | lastAccel |
Last value of the acceleration. More... | |
double | lastPos |
double | lastSpeed |
Last value of the speed. More... | |
double | length |
vehicle's length More... | |
double | minGap |
vehicle's minGap More... | |
bool | onDetector |
whether the vehicle is on the detector at the end of the current timestep More... | |
double | totalTimeOnDetector |
Accumulated time that this vehicle has spent on the detector since its last entry. More... | |
std::string | type |
vehicle's type More... | |
A VehicleInfo stores values that are tracked for the individual vehicles on the detector, e.g., accumulated timeloss. These infos are stored in myVehicles. If a vehicle leaves the detector (may it be temporarily), the entry in myVehicles is discarded, i.e. all information on the vehicle is reset.
Definition at line 86 of file MSE2Collector.h.
|
inline |
Definition at line 89 of file MSE2Collector.h.
|
inlinevirtual |
Definition at line 110 of file MSE2Collector.h.
References id.
double MSE2Collector::VehicleInfo::accumulatedTimeLoss |
Accumulated time loss that this vehicle suffered since it entered the detector.
Definition at line 137 of file MSE2Collector.h.
Referenced by MSE2Collector::integrateMoveNotification(), and MSDelayBasedTrafficLightLogic::proposeProlongation().
const MSLane* MSE2Collector::VehicleInfo::currentLane |
Lane, on which the vehicle currently resides (always the one for which the last notifyEnter was received)
Definition at line 126 of file MSE2Collector.h.
std::size_t MSE2Collector::VehicleInfo::currentOffsetIndex |
Index of currentLane in the detector's myLanes vector.
Definition at line 128 of file MSE2Collector.h.
double MSE2Collector::VehicleInfo::distToDetectorEnd |
Distance left till the detector end after the last integration step (may become negative if the vehicle passes beyond the detector end)
Definition at line 133 of file MSE2Collector.h.
Referenced by MSE2Collector::notifyMove(), and MSDelayBasedTrafficLightLogic::proposeProlongation().
std::string MSE2Collector::VehicleInfo::entryLaneID |
ID of the lane, on which the vehicle entered the detector.
Definition at line 120 of file MSE2Collector.h.
double MSE2Collector::VehicleInfo::entryOffset |
Distance of the vehicle's entry lane's beginning to the detector start (can be negative for the first lane) In notifyMove(), the positional input arguments are relative to that position (since the vehicle picks up the MoveReminder on the entry lane)
Definition at line 124 of file MSE2Collector.h.
Referenced by MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSE2Collector::integrateMoveNotification(), MSE2Collector::makeMoveNotification(), and MSE2Collector::notifyMove().
double MSE2Collector::VehicleInfo::exitOffset |
Offset from the detector start, where the vehicle has leaves the detector (defaults to detector length and is updated if the vehicle leaves the detector via a junction before reaching its end, i.e. enters a lane not part of the detector)
Definition at line 131 of file MSE2Collector.h.
Referenced by MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSE2Collector::makeMoveNotification(), and MSE2Collector::notifyMove().
bool MSE2Collector::VehicleInfo::hasEntered |
Whether the vehicle has already entered the detector (don't count twice!)
Definition at line 142 of file MSE2Collector.h.
Referenced by MSE2Collector::notifyMove().
std::string MSE2Collector::VehicleInfo::id |
vehicle's ID
Definition at line 110 of file MSE2Collector.h.
Referenced by MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSDelayBasedTrafficLightLogic::proposeProlongation(), MSE2Collector::MoveNotificationInfo::~MoveNotificationInfo(), and ~VehicleInfo().
double MSE2Collector::VehicleInfo::lastAccel |
Last value of the acceleration.
Definition at line 144 of file MSE2Collector.h.
Referenced by MSE2Collector::integrateMoveNotification().
double MSE2Collector::VehicleInfo::lastPos |
Last value of the vehicle position in reference to the start lane
Definition at line 149 of file MSE2Collector.h.
Referenced by MSE2Collector::getUsageType(), and MSE2Collector::integrateMoveNotification().
double MSE2Collector::VehicleInfo::lastSpeed |
Last value of the speed.
Definition at line 146 of file MSE2Collector.h.
Referenced by MSE2Collector::integrateMoveNotification().
double MSE2Collector::VehicleInfo::length |
vehicle's length
Definition at line 116 of file MSE2Collector.h.
Referenced by MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSE2Collector::makeMoveNotification(), and MSE2Collector::subtractPassedVeh().
double MSE2Collector::VehicleInfo::minGap |
vehicle's minGap
Definition at line 118 of file MSE2Collector.h.
bool MSE2Collector::VehicleInfo::onDetector |
whether the vehicle is on the detector at the end of the current timestep
Definition at line 140 of file MSE2Collector.h.
Referenced by MSE2Collector::integrateMoveNotification().
double MSE2Collector::VehicleInfo::totalTimeOnDetector |
Accumulated time that this vehicle has spent on the detector since its last entry.
Definition at line 135 of file MSE2Collector.h.
Referenced by MSE2Collector::integrateMoveNotification().
std::string MSE2Collector::VehicleInfo::type |
vehicle's type
Definition at line 114 of file MSE2Collector.h.