SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

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.

Member Function Documentation

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

get probability

Definition at line 176 of file GNERerouter.cpp.

References GNERerouter::myProbability.

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

set probability

Exceptions
InvalidArgumentif probability isn't valid

Definition at line 182 of file GNERerouter.cpp.

References GNERerouter::myProbability, and toString().

Field Documentation

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

id of new edge destination

Definition at line 123 of file GNERerouter.h.

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.


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