Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSBaseVehicle::BaseInfluencer Class Reference

#include <MSBaseVehicle.h>

Inheritance diagram for MSBaseVehicle::BaseInfluencer:
[legend]

Public Member Functions

 BaseInfluencer ()
 Constructor.
 
double getExtraImpatience () const
 return the current routing mode
 
SUMOAbstractRouter< MSEdge, SUMOVehicle > & getRouterTT (const int rngIndex, SUMOVehicleClass svc) const
 
int getRoutingMode () const
 return the current routing mode
 
void setExtraImpatience (double value)
 Sets routing behavior.
 
void setRoutingMode (int value)
 Sets routing behavior.
 
virtual ~BaseInfluencer ()
 Destructor.
 

Static Public Member Functions

static void cleanup ()
 Static cleanup.
 
static void init ()
 Static initalization.
 

Protected Attributes

double myExtraImpatience = 0
 dynamic impatience offset
 
int myRoutingMode
 routing mode (see TraCIConstants.h)
 

Detailed Description

Definition at line 827 of file MSBaseVehicle.h.

Constructor & Destructor Documentation

◆ BaseInfluencer()

MSBaseVehicle::BaseInfluencer::BaseInfluencer ( )

Constructor.

Definition at line 78 of file MSBaseVehicle.cpp.

◆ ~BaseInfluencer()

virtual MSBaseVehicle::BaseInfluencer::~BaseInfluencer ( )
inlinevirtual

Destructor.

Definition at line 833 of file MSBaseVehicle.h.

Member Function Documentation

◆ cleanup()

static void MSBaseVehicle::BaseInfluencer::cleanup ( )
static

Static cleanup.

◆ getExtraImpatience()

double MSBaseVehicle::BaseInfluencer::getExtraImpatience ( ) const
inline

return the current routing mode

Definition at line 855 of file MSBaseVehicle.h.

References myExtraImpatience.

◆ getRouterTT()

SUMOAbstractRouter< MSEdge, SUMOVehicle > & MSBaseVehicle::BaseInfluencer::getRouterTT ( const int  rngIndex,
SUMOVehicleClass  svc 
) const

◆ getRoutingMode()

int MSBaseVehicle::BaseInfluencer::getRoutingMode ( ) const
inline

return the current routing mode

Definition at line 842 of file MSBaseVehicle.h.

References myRoutingMode.

Referenced by LIBSUMO_NAMESPACE::Vehicle::getRoutingMode(), MSNet::getTravelTime(), and LIBSUMO_NAMESPACE::Vehicle::rerouteTraveltime().

Here is the caller graph for this function:

◆ init()

static void MSBaseVehicle::BaseInfluencer::init ( )
static

Static initalization.

◆ setExtraImpatience()

void MSBaseVehicle::BaseInfluencer::setExtraImpatience ( double  value)
inline

Sets routing behavior.

Parameters
[in]valuean enum value controlling the different modes

Definition at line 862 of file MSBaseVehicle.h.

References myExtraImpatience.

Referenced by MSVehicle::updateWaitingTime().

Here is the caller graph for this function:

◆ setRoutingMode()

void MSBaseVehicle::BaseInfluencer::setRoutingMode ( int  value)
inline

Sets routing behavior.

Parameters
[in]valuean enum value controlling the different modes

Definition at line 849 of file MSBaseVehicle.h.

References myRoutingMode.

Referenced by LIBSUMO_NAMESPACE::Vehicle::rerouteTraveltime(), and LIBSUMO_NAMESPACE::Vehicle::setRoutingMode().

Here is the caller graph for this function:

Field Documentation

◆ myExtraImpatience

double MSBaseVehicle::BaseInfluencer::myExtraImpatience = 0
protected

dynamic impatience offset

Definition at line 874 of file MSBaseVehicle.h.

Referenced by getExtraImpatience(), and setExtraImpatience().

◆ myRoutingMode

int MSBaseVehicle::BaseInfluencer::myRoutingMode
protected

routing mode (see TraCIConstants.h)

Definition at line 871 of file MSBaseVehicle.h.

Referenced by getRoutingMode(), and setRoutingMode().


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