SUMO - Simulation of Urban MObility
|
Abstract base class providing static factory method. More...
#include <RouteCostCalculator.h>
Public Member Functions | |
virtual void | calculateProbabilities (std::vector< R * > alternatives, const V *const veh, const SUMOTime time)=0 |
calculate the probabilities in the logit model More... | |
int | getMaxRouteNumber () const |
bool | keepRoutes () const |
virtual void | setCosts (R *route, const SUMOReal costs, const bool isActive=false) const =0 |
bool | skipRouteCalculation () const |
Static Public Member Functions | |
static void | cleanup () |
static RouteCostCalculator< R, E, V > & | getCalculator () |
Protected Member Functions | |
RouteCostCalculator () | |
Constructor. More... | |
virtual | ~RouteCostCalculator () |
Destructor. More... | |
Private Attributes | |
bool | myKeepRoutes |
Information whether all routes should be saved. More... | |
int | myMaxRouteNumber |
The maximum route alternatives number. More... | |
bool | mySkipRouteCalculation |
Information whether new routes should be calculated. More... | |
Static Private Attributes | |
static RouteCostCalculator * | myInstance = 0 |
Abstract base class providing static factory method.
Definition at line 51 of file RouteCostCalculator.h.
|
inlineprotected |
Constructor.
Definition at line 79 of file RouteCostCalculator.h.
References OptionsCont::getBool(), OptionsCont::getInt(), OptionsCont::getOptions(), RouteCostCalculator< R, E, V >::myKeepRoutes, RouteCostCalculator< R, E, V >::myMaxRouteNumber, and RouteCostCalculator< R, E, V >::mySkipRouteCalculation.
|
inlineprotectedvirtual |
Destructor.
Definition at line 87 of file RouteCostCalculator.h.
|
pure virtual |
calculate the probabilities in the logit model
Implemented in GawronCalculator< R, E, V >, and LogitCalculator< R, E, V >.
|
inlinestatic |
Definition at line 55 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myInstance.
Referenced by RONet::cleanup().
|
static |
Definition at line 115 of file RouteCostCalculator.h.
References OptionsCont::getFloat(), OptionsCont::getOptions(), and OptionsCont::getString().
Referenced by RORouteDef::addAlternative(), and ROMAAssignments::sue().
|
inline |
Definition at line 65 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myMaxRouteNumber.
|
inline |
Definition at line 69 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myKeepRoutes.
Referenced by RORouteDef::addAlternative().
|
pure virtual |
Implemented in LogitCalculator< R, E, V >, and GawronCalculator< R, E, V >.
|
inline |
Definition at line 73 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::mySkipRouteCalculation.
|
staticprivate |
Definition at line 90 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::cleanup().
|
private |
Information whether all routes should be saved.
Definition at line 96 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::keepRoutes(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
private |
The maximum route alternatives number.
Definition at line 93 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::getMaxRouteNumber(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
private |
Information whether new routes should be calculated.
Definition at line 99 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::RouteCostCalculator(), and RouteCostCalculator< R, E, V >::skipRouteCalculation().