SUMO - Simulation of Urban MObility
|
#include <GNERerouter.h>
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... | |
Definition at line 133 of file GNERerouter.h.
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.
std::string GNERerouter::routeProbReroute::getNewRouteId | ( | ) | const |
get new route id
Definition at line 205 of file GNERerouter.cpp.
Referenced by GNERerouter::rerouterInterval::insertRouteProbReroute(), and GNERerouter::rerouterInterval::removeRouteProbReroute().
SUMOReal GNERerouter::routeProbReroute::getProbability | ( | ) | const |
get probability
Definition at line 211 of file GNERerouter.cpp.
References GNERerouter::myProbability.
void GNERerouter::routeProbReroute::setProbability | ( | SUMOReal | probability | ) |
set probability
InvalidArgument | if probability isn't valid |
Definition at line 217 of file GNERerouter.cpp.
References GNERerouter::myProbability, and toString().
|
private |
id of new route
Definition at line 153 of file GNERerouter.h.
|
private |
probability with which a vehicle will use the given edge as destination
Definition at line 156 of file GNERerouter.h.