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...
 
SUMOReal getProbability () const
 get probability More...
 
const GNERerouterInterval & getRerouterIntervalParent () const
 get rerouter interval parent More...
 
SumoXMLTag getTag () const
 get tag More...
 
 GNERouteProbReroute (GNERerouterInterval &rerouterIntervalParent, std::string newRouteId, SUMOReal probability)
 constructor More...
 
bool operator== (const GNERouteProbReroute &routeProbReroute)
 overload == operator More...
 
void setNewRouteId (std::string newRouteId)
 set new route id More...
 
bool setProbability (SUMOReal probability)
 set probability, if the new probability is valid More...
 
 ~GNERouteProbReroute ()
 destructor More...
 

Protected Attributes

std::string myNewRouteId
 id of new route More...
 
SUMOReal myProbability
 probability with which a vehicle will use the given edge as destination More...
 
GNERerouterInterval * myRerouterIntervalParent
 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 ( GNERerouterInterval &  rerouterIntervalParent,
std::string  newRouteId,
SUMOReal  probability 
)

constructor

Definition at line 44 of file GNERouteProbReroute.cpp.

References setProbability().

GNERouteProbReroute::~GNERouteProbReroute ( )

destructor

Definition at line 54 of file GNERouteProbReroute.cpp.

Member Function Documentation

std::string GNERouteProbReroute::getNewRouteId ( ) const
SUMOReal GNERouteProbReroute::getProbability ( ) const

get probability

Definition at line 71 of file GNERouteProbReroute.cpp.

References myProbability.

const GNERerouterInterval & GNERouteProbReroute::getRerouterIntervalParent ( ) const

get rerouter interval parent

Definition at line 94 of file GNERouteProbReroute.cpp.

References myRerouterIntervalParent.

SumoXMLTag GNERouteProbReroute::getTag ( ) const
bool GNERouteProbReroute::operator== ( const GNERouteProbReroute &  routeProbReroute)

overload == operator

Definition at line 100 of file GNERouteProbReroute.cpp.

References myNewRouteId, myProbability, and myRerouterIntervalParent.

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

set new route id

Definition at line 65 of file GNERouteProbReroute.cpp.

References myNewRouteId, and SUMOReal.

bool GNERouteProbReroute::setProbability ( SUMOReal  probability)

set probability, if the new probability is valid

Definition at line 77 of file GNERouteProbReroute.cpp.

References myProbability.

Referenced by GNERouteProbReroute().

Field Documentation

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().

SUMOReal 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().

GNERerouterInterval* GNERouteProbReroute::myRerouterIntervalParent
protected

reference to rerouter interval parent

Definition at line 83 of file GNERouteProbReroute.h.

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

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: