SUMO - Simulation of Urban MObility
GNERouteProbReroute Class Reference

#include <GNERouteProbReroute.h>

Collaboration diagram for GNERouteProbReroute:
Collaboration graph

Public Member Functions

std::string getNewRouteId () const
 get new route id More...
 
double getProbability () const
 get probability More...
 
const GNERerouterIntervalgetRerouterIntervalParent () const
 get rerouter interval parent More...
 
SumoXMLTag getTag () const
 get tag More...
 
 GNERouteProbReroute (GNERerouterInterval &rerouterIntervalParent, std::string newRouteId, double probability)
 constructor More...
 
bool operator== (const GNERouteProbReroute &routeProbReroute) const
 overload == operator More...
 
void setNewRouteId (std::string newRouteId)
 set new route id More...
 
bool setProbability (double probability)
 set probability, if the new probability is valid More...
 
 ~GNERouteProbReroute ()
 destructor More...
 

Protected Attributes

std::string myNewRouteId
 id of new route More...
 
double myProbability
 probability with which a vehicle will use the given edge as destination More...
 
GNERerouterIntervalmyRerouterIntervalParent
 reference to rerouter interval parent More...
 
SumoXMLTag myTag
 XML Tag of route probability reroute. More...
 

Detailed Description

Definition at line 52 of file GNERouteProbReroute.h.

Constructor & Destructor Documentation

◆ GNERouteProbReroute()

GNERouteProbReroute::GNERouteProbReroute ( GNERerouterInterval rerouterIntervalParent,
std::string  newRouteId,
double  probability 
)

constructor

Definition at line 40 of file GNERouteProbReroute.cpp.

References setProbability().

◆ ~GNERouteProbReroute()

GNERouteProbReroute::~GNERouteProbReroute ( )

destructor

Definition at line 50 of file GNERouteProbReroute.cpp.

Member Function Documentation

◆ getNewRouteId()

std::string GNERouteProbReroute::getNewRouteId ( ) const

◆ getProbability()

double GNERouteProbReroute::getProbability ( ) const

get probability

Definition at line 67 of file GNERouteProbReroute.cpp.

References myProbability.

◆ getRerouterIntervalParent()

const GNERerouterInterval & GNERouteProbReroute::getRerouterIntervalParent ( ) const

get rerouter interval parent

Definition at line 90 of file GNERouteProbReroute.cpp.

References myRerouterIntervalParent.

◆ getTag()

SumoXMLTag GNERouteProbReroute::getTag ( ) const

◆ operator==()

bool GNERouteProbReroute::operator== ( const GNERouteProbReroute routeProbReroute) const

overload == operator

Definition at line 96 of file GNERouteProbReroute.cpp.

References myNewRouteId, myProbability, and myRerouterIntervalParent.

◆ setNewRouteId()

void GNERouteProbReroute::setNewRouteId ( std::string  newRouteId)

set new route id

Definition at line 61 of file GNERouteProbReroute.cpp.

References myNewRouteId.

◆ setProbability()

bool GNERouteProbReroute::setProbability ( double  probability)

set probability, if the new probability is valid

Definition at line 73 of file GNERouteProbReroute.cpp.

References myProbability.

Referenced by GNERouteProbReroute().

Field Documentation

◆ myNewRouteId

std::string GNERouteProbReroute::myNewRouteId
protected

id of new route

Todo:
change string to GNERoute

Definition at line 87 of file GNERouteProbReroute.h.

Referenced by getNewRouteId(), operator==(), and setNewRouteId().

◆ myProbability

double GNERouteProbReroute::myProbability
protected

probability with which a vehicle will use the given edge as destination

Definition at line 90 of file GNERouteProbReroute.h.

Referenced by getProbability(), operator==(), and setProbability().

◆ myRerouterIntervalParent

GNERerouterInterval* GNERouteProbReroute::myRerouterIntervalParent
protected

reference to rerouter interval parent

Definition at line 83 of file GNERouteProbReroute.h.

Referenced by getRerouterIntervalParent(), and operator==().

◆ myTag

SumoXMLTag GNERouteProbReroute::myTag
protected

XML Tag of route probability reroute.

Definition at line 93 of file GNERouteProbReroute.h.

Referenced by getTag().


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