Eclipse SUMO - Simulation of Urban MObility
MSTrafficItem Class Reference

An object representing a traffic item. Used for influencing the task demand of the TCI car-following model. More...

#include <MSDriverState.h>

Collaboration diagram for MSTrafficItem:

Detailed Description

An object representing a traffic item. Used for influencing the task demand of the TCI car-following model.

See also
MSCFModel_TCI ‍/ struct MSTrafficItem { MSTrafficItem(MSTrafficItemType type, const std::string& id, std::shared_ptr<MSTrafficItemCharacteristics> data); static std::hash<std::string> hash; MSTrafficItemType type; size_t id_hash; std::shared_ptr<MSTrafficItemCharacteristics> data; double remainingIntegrationTime; double integrationDemand; double latentDemand; };

struct JunctionCharacteristics : MSTrafficItemCharacteristics { JunctionCharacteristics(const MSJunction* junction, const MSLink* egoLink, double dist) : junction(junction), approachingLink(egoLink), dist(dist) {}; const MSJunction* junction; const MSLink* approachingLink; double dist; };

struct PedestrianCharacteristics : MSTrafficItemCharacteristics { PedestrianCharacteristics(const MSPerson* pedestrian, double dist) : pedestrian(pedestrian), dist(dist) {}; const MSPerson* pedestrian; double dist; };

struct SpeedLimitCharacteristics : MSTrafficItemCharacteristics { SpeedLimitCharacteristics(const MSLane* lane, double dist, double limit) : dist(dist), limit(limit), lane(lane) {}; const MSLane* lane; double dist; double limit; };

struct VehicleCharacteristics : MSTrafficItemCharacteristics { VehicleCharacteristics(const MSVehicle* foe, double longitudinalDist, double lateralDist, double relativeSpeed) : longitudinalDist(longitudinalDist), lateralDist(lateralDist), foe(foe), relativeSpeed(relativeSpeed) {}; const MSVehicle* foe; double longitudinalDist; double lateralDist; double relativeSpeed; };

public:

MSDriverState(MSVehicle* veh); virtual ~MSDriverState() {};

///


The documentation for this class was generated from the following file: