![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEDestProbReroute.h>
Public Member Functions | |
GNEEdge * | getNewDestination () const |
get edge destination More... | |
double | getProbability () const |
get probability More... | |
const GNERerouterInterval & | getRerouterIntervalParent () const |
get rerouter interval parent More... | |
SumoXMLTag | getTag () const |
get tag More... | |
GNEDestProbReroute (GNERerouterInterval &rerouterIntervalParent, GNEEdge *newEdgeDestination, double probability) | |
constructor More... | |
bool | operator== (const GNEDestProbReroute &destProbReroute) const |
overload operator == More... | |
void | setNewDestination (GNEEdge *edge) |
set edge destination More... | |
bool | setProbability (double probability) |
set probability, if new probability is valid More... | |
~GNEDestProbReroute () | |
destructor More... | |
Protected Attributes | |
GNEEdge * | myNewEdgeDestination |
id of new edge destination More... | |
double | 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 destiny probability reroute. More... | |
forces the rerouter to assign a new route
Definition at line 51 of file GNEDestProbReroute.h.
GNEDestProbReroute::GNEDestProbReroute | ( | GNERerouterInterval & | rerouterIntervalParent, |
GNEEdge * | newEdgeDestination, | ||
double | probability | ||
) |
GNEDestProbReroute::~GNEDestProbReroute | ( | ) |
destructor
Definition at line 50 of file GNEDestProbReroute.cpp.
GNEEdge * GNEDestProbReroute::getNewDestination | ( | ) | const |
get edge destination
Definition at line 55 of file GNEDestProbReroute.cpp.
References myNewEdgeDestination.
Referenced by GNERerouterInterval::insertDestProbReroutes(), and GNERerouterInterval::removeDestProbReroutes().
double GNEDestProbReroute::getProbability | ( | ) | const |
const GNERerouterInterval & GNEDestProbReroute::getRerouterIntervalParent | ( | ) | const |
get rerouter interval parent
Definition at line 90 of file GNEDestProbReroute.cpp.
References myRerouterIntervalParent.
SumoXMLTag GNEDestProbReroute::getTag | ( | ) | const |
get tag
Definition at line 84 of file GNEDestProbReroute.cpp.
References myTag.
Referenced by GNERerouterInterval::insertDestProbReroutes(), and GNERerouterInterval::removeDestProbReroutes().
bool GNEDestProbReroute::operator== | ( | const GNEDestProbReroute & | destProbReroute | ) | const |
overload operator ==
Definition at line 96 of file GNEDestProbReroute.cpp.
References myNewEdgeDestination, myProbability, and myRerouterIntervalParent.
void GNEDestProbReroute::setNewDestination | ( | GNEEdge * | edge | ) |
set edge destination
Definition at line 61 of file GNEDestProbReroute.cpp.
References myNewEdgeDestination.
bool GNEDestProbReroute::setProbability | ( | double | probability | ) |
set probability, if new probability is valid
Definition at line 73 of file GNEDestProbReroute.cpp.
References myProbability.
Referenced by GNEDestProbReroute().
|
protected |
id of new edge destination
Definition at line 85 of file GNEDestProbReroute.h.
Referenced by getNewDestination(), operator==(), and setNewDestination().
|
protected |
probability with which a vehicle will use the given edge as destination
Definition at line 88 of file GNEDestProbReroute.h.
Referenced by getProbability(), operator==(), and setProbability().
|
protected |
reference to rerouter interval parent
Definition at line 82 of file GNEDestProbReroute.h.
Referenced by getRerouterIntervalParent(), and operator==().
|
protected |
XML Tag of destiny probability reroute.
Definition at line 91 of file GNEDestProbReroute.h.
Referenced by getTag().