SUMO - Simulation of Urban MObility
GNERerouter::routeProbReroute Class Reference

#include <GNERerouter.h>

Collaboration diagram for GNERerouter::routeProbReroute:
Collaboration graph

Public Member Functions

std::string getNewRouteId () const
 get new route id More...
 
SUMOReal getProbability () const
 get probability More...
 
 routeProbReroute (std::string newRouteId, SUMOReal probability)
 constructor More...
 
void setProbability (SUMOReal probability)
 set probability More...
 
 ~routeProbReroute ()
 destructor More...
 

Private Attributes

std::string myNewRouteId
 id of new route More...
 
SUMOReal myProbability
 probability with which a vehicle will use the given edge as destination More...
 

Detailed Description

Definition at line 133 of file GNERerouter.h.

Constructor & Destructor Documentation

GNERerouter::routeProbReroute::routeProbReroute ( std::string  newRouteId,
SUMOReal  probability 
)

constructor

Definition at line 194 of file GNERerouter.cpp.

GNERerouter::routeProbReroute::~routeProbReroute ( )

destructor

Definition at line 200 of file GNERerouter.cpp.

Member Function Documentation

std::string GNERerouter::routeProbReroute::getNewRouteId ( ) const
SUMOReal GNERerouter::routeProbReroute::getProbability ( ) const

get probability

Definition at line 211 of file GNERerouter.cpp.

References myProbability.

void GNERerouter::routeProbReroute::setProbability ( SUMOReal  probability)

set probability

Exceptions
InvalidArgumentif probability isn't valid

Definition at line 217 of file GNERerouter.cpp.

References myProbability, and toString().

Field Documentation

std::string GNERerouter::routeProbReroute::myNewRouteId
private

id of new route

Definition at line 153 of file GNERerouter.h.

Referenced by getNewRouteId().

SUMOReal GNERerouter::routeProbReroute::myProbability
private

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

Definition at line 156 of file GNERerouter.h.

Referenced by getProbability(), and setProbability().


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