![]() |
SUMO - Simulation of Urban MObility
|
#include <GNERerouter.h>

Public Member Functions | |
| destProbReroute (std::string newDestinationId, SUMOReal probability) | |
| constructor More... | |
| std::string | getNewDestinationId () const |
| id of new edge destination More... | |
| SUMOReal | getProbability () const |
| get probability More... | |
| void | setProbability (SUMOReal probability) |
| set probability More... | |
| ~destProbReroute () | |
| destructor More... | |
Private Attributes | |
| std::string | myNewDestinationId |
| id of new edge destination More... | |
| SUMOReal | myProbability |
| probability with which a vehicle will use the given edge as destination More... | |
Definition at line 103 of file GNERerouter.h.
| GNERerouter::destProbReroute::destProbReroute | ( | std::string | newDestinationId, |
| SUMOReal | probability | ||
| ) |
constructor
Definition at line 159 of file GNERerouter.cpp.
| GNERerouter::destProbReroute::~destProbReroute | ( | ) |
destructor
Definition at line 165 of file GNERerouter.cpp.
| std::string GNERerouter::destProbReroute::getNewDestinationId | ( | ) | const |
id of new edge destination
Definition at line 170 of file GNERerouter.cpp.
References myNewDestinationId, and SUMOReal.
Referenced by GNERerouter::rerouterInterval::insertDestProbReroutes(), and GNERerouter::rerouterInterval::removeDestProbReroutes().
| SUMOReal GNERerouter::destProbReroute::getProbability | ( | ) | const |
| void GNERerouter::destProbReroute::setProbability | ( | SUMOReal | probability | ) |
set probability
| InvalidArgument | if probability isn't valid |
Definition at line 182 of file GNERerouter.cpp.
References myProbability, and toString().
|
private |
id of new edge destination
Definition at line 123 of file GNERerouter.h.
Referenced by getNewDestinationId().
|
private |
probability with which a vehicle will use the given edge as destination
Definition at line 126 of file GNERerouter.h.
Referenced by getProbability(), and setProbability().