SUMO - Simulation of Urban MObility
GNEDestProbReroute Class Reference

#include <GNEDestProbReroute.h>

Collaboration diagram for GNEDestProbReroute:
Collaboration graph

Public Member Functions

GNEEdgegetNewDestination () const
 get edge destination More...
 
double getProbability () const
 get probability More...
 
const GNERerouterIntervalgetRerouterIntervalParent () const
 get rerouter interval parent More...
 
SumoXMLTag getTag () const
 get tag More...
 
 GNEDestProbReroute (GNERerouterInterval &rerouterIntervalParent, GNEEdge *newEdgeDestination, double probability)
 constructor More...
 
bool operator== (const GNEDestProbReroute &destProbReroute) const
 overload operator == More...
 
void setNewDestination (GNEEdge *edge)
 set edge destination More...
 
bool setProbability (double probability)
 set probability, if new probability is valid More...
 
 ~GNEDestProbReroute ()
 destructor More...
 

Protected Attributes

GNEEdgemyNewEdgeDestination
 id of new edge destination More...
 
double myProbability
 probability with which a vehicle will use the given edge as destination More...
 
GNERerouterIntervalmyRerouterIntervalParent
 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::GNEDestProbReroute ( GNERerouterInterval rerouterIntervalParent,
GNEEdge newEdgeDestination,
double  probability 
)

constructor

Definition at line 40 of file GNEDestProbReroute.cpp.

References setProbability().

◆ ~GNEDestProbReroute()

GNEDestProbReroute::~GNEDestProbReroute ( )

destructor

Definition at line 50 of file GNEDestProbReroute.cpp.

Member Function Documentation

◆ getNewDestination()

GNEEdge * GNEDestProbReroute::getNewDestination ( ) const

◆ getProbability()

double GNEDestProbReroute::getProbability ( ) const

get probability

Definition at line 67 of file GNEDestProbReroute.cpp.

References myProbability.

◆ getRerouterIntervalParent()

const GNERerouterInterval & GNEDestProbReroute::getRerouterIntervalParent ( ) const

get rerouter interval parent

Definition at line 90 of file GNEDestProbReroute.cpp.

References myRerouterIntervalParent.

◆ getTag()

SumoXMLTag GNEDestProbReroute::getTag ( ) const

◆ operator==()

bool GNEDestProbReroute::operator== ( const GNEDestProbReroute destProbReroute) const

overload operator ==

Definition at line 96 of file GNEDestProbReroute.cpp.

References myNewEdgeDestination, myProbability, and myRerouterIntervalParent.

◆ setNewDestination()

void GNEDestProbReroute::setNewDestination ( GNEEdge edge)

set edge destination

Definition at line 61 of file GNEDestProbReroute.cpp.

References myNewEdgeDestination.

◆ setProbability()

bool GNEDestProbReroute::setProbability ( double  probability)

set probability, if new probability is valid

Definition at line 73 of file GNEDestProbReroute.cpp.

References myProbability.

Referenced by GNEDestProbReroute().

Field Documentation

◆ myNewEdgeDestination

GNEEdge* GNEDestProbReroute::myNewEdgeDestination
protected

id of new edge destination

Definition at line 85 of file GNEDestProbReroute.h.

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

◆ myProbability

double 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().

◆ myRerouterIntervalParent

GNERerouterInterval* GNEDestProbReroute::myRerouterIntervalParent
protected

reference to rerouter interval parent

Definition at line 82 of file GNEDestProbReroute.h.

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

◆ myTag

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: