36 #ifdef CHECK_MEMORY_LEAKS 45 myRerouterIntervalParent(&rerouterIntervalParent),
46 myNewRouteId(newRouteId),
47 myProbability(probability),
78 if (probability >= 0 && probability <= 1) {
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::string getNewRouteId() const
get new route id
GNERouteProbReroute(GNERerouterInterval &rerouterIntervalParent, std::string newRouteId, SUMOReal probability)
constructor
bool setProbability(SUMOReal probability)
set probability, if the new probability is valid
std::string myNewRouteId
id of new route
SumoXMLTag myTag
XML Tag of route probability reroute.
SUMOReal getProbability() const
get probability
SumoXMLTag getTag() const
get tag
~GNERouteProbReroute()
destructor
void setNewRouteId(std::string newRouteId)
set new route id
GNERerouterInterval * myRerouterIntervalParent
reference to rerouter interval parent
const GNERerouterInterval & getRerouterIntervalParent() const
get rerouter interval parent
probability of route of a reroute
SUMOReal myProbability
probability with which a vehicle will use the given edge as destination
bool operator==(const GNERouteProbReroute &routeProbReroute)
overload == operator