Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSDevice_Vehroutes::RouteReplaceInfo Class Reference

Information about a replaced route. More...

Collaboration diagram for MSDevice_Vehroutes::RouteReplaceInfo:
[legend]

Public Member Functions

 RouteReplaceInfo (const MSEdge *const edge_, const SUMOTime time_, ConstMSRoutePtr const route_, const std::string &info_, int lastRouteIndex_, int newRouteIndex_)
 Constructor.
 ~RouteReplaceInfo ()
 Destructor.

Data Fields

const MSEdgeedge
 The edge the vehicle was on when the route was replaced.
std::string info
 Information regarding rerouting.
int lastRouteIndex
 The last index in the replaced route.
int newRouteIndex
 The current index in the replacement route.
ConstMSRoutePtr route
 The prior route.
SUMOTime time
 The time the route was replaced.

Detailed Description

Information about a replaced route.

Generated optionally and stored in a vector within the device this structure contains information about a replaced route: the edge the route was replaced at by a new one, the time this was done, and the previous route.

Definition at line 260 of file MSDevice_Vehroutes.h.

Constructor & Destructor Documentation

◆ RouteReplaceInfo()

MSDevice_Vehroutes::RouteReplaceInfo::RouteReplaceInfo ( const MSEdge *const edge_,
const SUMOTime time_,
ConstMSRoutePtr const route_,
const std::string & info_,
int lastRouteIndex_,
int newRouteIndex_ )
inline

Constructor.

Parameters
[in]edge_The edge the route was replaced at
[in]time_The time the route was replaced
[in]route_The prior route

Definition at line 267 of file MSDevice_Vehroutes.h.

References edge, info, lastRouteIndex, newRouteIndex, route, and time.

◆ ~RouteReplaceInfo()

MSDevice_Vehroutes::RouteReplaceInfo::~RouteReplaceInfo ( )
inline

Destructor.

Definition at line 275 of file MSDevice_Vehroutes.h.

Field Documentation

◆ edge

const MSEdge* MSDevice_Vehroutes::RouteReplaceInfo::edge

The edge the vehicle was on when the route was replaced.

Definition at line 278 of file MSDevice_Vehroutes.h.

Referenced by RouteReplaceInfo().

◆ info

std::string MSDevice_Vehroutes::RouteReplaceInfo::info

Information regarding rerouting.

Definition at line 287 of file MSDevice_Vehroutes.h.

Referenced by RouteReplaceInfo().

◆ lastRouteIndex

int MSDevice_Vehroutes::RouteReplaceInfo::lastRouteIndex

The last index in the replaced route.

Definition at line 291 of file MSDevice_Vehroutes.h.

Referenced by RouteReplaceInfo().

◆ newRouteIndex

int MSDevice_Vehroutes::RouteReplaceInfo::newRouteIndex

The current index in the replacement route.

Definition at line 295 of file MSDevice_Vehroutes.h.

Referenced by RouteReplaceInfo().

◆ route

ConstMSRoutePtr MSDevice_Vehroutes::RouteReplaceInfo::route

The prior route.

Definition at line 284 of file MSDevice_Vehroutes.h.

Referenced by RouteReplaceInfo().

◆ time

SUMOTime MSDevice_Vehroutes::RouteReplaceInfo::time

The time the route was replaced.

Definition at line 281 of file MSDevice_Vehroutes.h.

Referenced by RouteReplaceInfo().


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