SUMO - Simulation of Urban MObility
|
Abstract base class providing static factory method. More...
#include <ROCostCalculator.h>
Public Member Functions | |
virtual void | calculateProbabilities (const ROVehicle *const veh, std::vector< RORoute * > alternatives)=0 |
calculate the probabilities in the logit model More... | |
unsigned int | getMaxRouteNumber () const |
bool | keepRoutes () const |
virtual void | setCosts (RORoute *route, const SUMOReal costs, const bool isActive=false) const =0 |
bool | skipRouteCalculation () const |
Static Public Member Functions | |
static void | cleanup () |
static ROCostCalculator & | getCalculator () |
Protected Member Functions | |
ROCostCalculator () | |
Constructor. More... | |
virtual | ~ROCostCalculator () |
Destructor. More... | |
Private Attributes | |
bool | myKeepRoutes |
Information whether all routes should be saved. More... | |
unsigned int | myMaxRouteNumber |
The maximum route alternatives number. More... | |
bool | mySkipRouteCalculation |
Information whether new routes should be calculated. More... | |
Static Private Attributes | |
static ROCostCalculator * | myInstance = 0 |
Abstract base class providing static factory method.
Definition at line 52 of file ROCostCalculator.h.
|
protected |
Constructor.
Definition at line 56 of file ROCostCalculator.cpp.
References OptionsCont::getBool(), OptionsCont::getInt(), OptionsCont::getOptions(), myKeepRoutes, myMaxRouteNumber, and mySkipRouteCalculation.
|
protectedvirtual |
Destructor.
Definition at line 64 of file ROCostCalculator.cpp.
|
pure virtual |
calculate the probabilities in the logit model
Implemented in ROLogitCalculator, and ROGawronCalculator.
Referenced by RORouteDef::addAlternative().
|
static |
Definition at line 82 of file ROCostCalculator.cpp.
References myInstance.
Referenced by computeRoutes().
|
static |
Definition at line 68 of file ROCostCalculator.cpp.
References OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getOptions(), and myInstance.
Referenced by RORouteDef::addAlternative(), and RORouteDef::preComputeCurrentRoute().
|
inline |
Definition at line 63 of file ROCostCalculator.h.
References myMaxRouteNumber.
Referenced by RORouteDef::addAlternative().
|
inline |
Definition at line 67 of file ROCostCalculator.h.
References myKeepRoutes.
|
pure virtual |
Implemented in ROLogitCalculator, and ROGawronCalculator.
Referenced by RORouteDef::addAlternative().
|
inline |
Definition at line 71 of file ROCostCalculator.h.
References mySkipRouteCalculation.
|
staticprivate |
Definition at line 83 of file ROCostCalculator.h.
Referenced by cleanup(), and getCalculator().
|
private |
Information whether all routes should be saved.
Definition at line 89 of file ROCostCalculator.h.
Referenced by keepRoutes(), and ROCostCalculator().
|
private |
The maximum route alternatives number.
Definition at line 86 of file ROCostCalculator.h.
Referenced by getMaxRouteNumber(), and ROCostCalculator().
|
private |
Information whether new routes should be calculated.
Definition at line 92 of file ROCostCalculator.h.
Referenced by ROCostCalculator(), and skipRouteCalculation().