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