SUMO - Simulation of Urban MObility
GNEDestProbReroute Class Reference

#include <GNEDestProbReroute.h>

Collaboration diagram for GNEDestProbReroute:
Collaboration graph

Public Member Functions

GNEEdge * getNewDestination () const
 get edge destination More...
 
SUMOReal 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, SUMOReal probability)
 constructor More...
 
bool operator== (const GNEDestProbReroute &destProbReroute)
 overload operator == More...
 
void setNewDestination (GNEEdge *edge)
 set edge destination More...
 
bool setProbability (SUMOReal probability)
 set probability, if new probability is valid More...
 
 ~GNEDestProbReroute ()
 destructor More...
 

Protected Attributes

GNEEdge * myNewEdgeDestination
 id of new edge destination More...
 
SUMOReal 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...
 

Detailed Description

forces the rerouter to assign a new route

Definition at line 51 of file GNEDestProbReroute.h.

Constructor & Destructor Documentation

GNEDestProbReroute::GNEDestProbReroute ( GNERerouterInterval &  rerouterIntervalParent,
GNEEdge *  newEdgeDestination,
SUMOReal  probability 
)

constructor

Definition at line 43 of file GNEDestProbReroute.cpp.

References setProbability().

GNEDestProbReroute::~GNEDestProbReroute ( )

destructor

Definition at line 53 of file GNEDestProbReroute.cpp.

Member Function Documentation

GNEEdge * GNEDestProbReroute::getNewDestination ( ) const
SUMOReal GNEDestProbReroute::getProbability ( ) const

get probability

Definition at line 70 of file GNEDestProbReroute.cpp.

References myProbability.

const GNERerouterInterval & GNEDestProbReroute::getRerouterIntervalParent ( ) const

get rerouter interval parent

Definition at line 93 of file GNEDestProbReroute.cpp.

References myRerouterIntervalParent.

SumoXMLTag GNEDestProbReroute::getTag ( ) const
bool GNEDestProbReroute::operator== ( const GNEDestProbReroute &  destProbReroute)

overload operator ==

Definition at line 99 of file GNEDestProbReroute.cpp.

References myNewEdgeDestination, myProbability, and myRerouterIntervalParent.

void GNEDestProbReroute::setNewDestination ( GNEEdge *  edge)

set edge destination

Definition at line 64 of file GNEDestProbReroute.cpp.

References myNewEdgeDestination, and SUMOReal.

bool GNEDestProbReroute::setProbability ( SUMOReal  probability)

set probability, if new probability is valid

Definition at line 76 of file GNEDestProbReroute.cpp.

References myProbability.

Referenced by GNEDestProbReroute().

Field Documentation

GNEEdge* GNEDestProbReroute::myNewEdgeDestination
protected

id of new edge destination

Definition at line 85 of file GNEDestProbReroute.h.

Referenced by getNewDestination(), operator==(), and setNewDestination().

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

GNERerouterInterval* GNEDestProbReroute::myRerouterIntervalParent
protected

reference to rerouter interval parent

Definition at line 82 of file GNEDestProbReroute.h.

Referenced by getRerouterIntervalParent(), and operator==().

SumoXMLTag GNEDestProbReroute::myTag
protected

XML Tag of destiny probability reroute.

Definition at line 91 of file GNEDestProbReroute.h.

Referenced by getTag().


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