SUMO - Simulation of Urban MObility
GNERerouter::destProbReroute Class Reference

#include <GNERerouter.h>

Collaboration diagram for GNERerouter::destProbReroute:
Collaboration graph

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...
 

Detailed Description

Definition at line 103 of file GNERerouter.h.

Constructor & Destructor Documentation

§ destProbReroute()

GNERerouter::destProbReroute::destProbReroute ( std::string  newDestinationId,
SUMOReal  probability 
)

constructor

Definition at line 159 of file GNERerouter.cpp.

§ ~destProbReroute()

GNERerouter::destProbReroute::~destProbReroute ( )

destructor

Definition at line 165 of file GNERerouter.cpp.

Member Function Documentation

§ getNewDestinationId()

std::string GNERerouter::destProbReroute::getNewDestinationId ( ) const

§ getProbability()

SUMOReal GNERerouter::destProbReroute::getProbability ( ) const

get probability

Definition at line 176 of file GNERerouter.cpp.

References myProbability.

§ setProbability()

void GNERerouter::destProbReroute::setProbability ( SUMOReal  probability)

set probability

Exceptions
InvalidArgumentif probability isn't valid

Definition at line 182 of file GNERerouter.cpp.

References myProbability, and toString().

Field Documentation

§ myNewDestinationId

std::string GNERerouter::destProbReroute::myNewDestinationId
private

id of new edge destination

Definition at line 123 of file GNERerouter.h.

Referenced by getNewDestinationId().

§ myProbability

SUMOReal GNERerouter::destProbReroute::myProbability
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().


The documentation for this class was generated from the following files: