Eclipse 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 | |
int | getMaxRouteNumber () const |
bool | keepAllRoutes () const |
bool | keepRoute () const |
virtual void | setCosts (R *route, const double 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. | |
virtual | ~RouteCostCalculator () |
Destructor. | |
Private Attributes | |
double | myKeepRouteProb |
Information whether the old route shall be kept. | |
bool | myKeepRoutes |
Information whether all routes should be saved. | |
int | myMaxRouteNumber |
The maximum route alternatives number. | |
bool | mySkipNewRoutes |
Information whether new routes shall be computed. | |
Static Private Attributes | |
static RouteCostCalculator * | myInstance = 0 |
Abstract base class providing static factory method.
Definition at line 42 of file RouteCostCalculator.h.
|
inlineprotected |
Constructor.
Definition at line 80 of file RouteCostCalculator.h.
References OptionsCont::exists(), OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getOptions(), RouteCostCalculator< R, E, V >::myKeepRouteProb, RouteCostCalculator< R, E, V >::myKeepRoutes, RouteCostCalculator< R, E, V >::myMaxRouteNumber, and RouteCostCalculator< R, E, V >::mySkipNewRoutes.
|
inlineprotectedvirtual |
Destructor.
Definition at line 89 of file RouteCostCalculator.h.
|
pure virtual |
calculate the probabilities in the logit model
Implemented in LogitCalculator< R, E, V >, and GawronCalculator< R, E, V >.
|
inlinestatic |
Definition at line 46 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myInstance.
Referenced by RONet::cleanup().
|
static |
Definition at line 120 of file RouteCostCalculator.h.
References OptionsCont::getFloat(), OptionsCont::getOptions(), and OptionsCont::getString().
Referenced by RORouteDef::addAlternative(), RORouteDef::preComputeCurrentRoute(), and ROMAAssignments::sue().
|
inline |
Definition at line 56 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myMaxRouteNumber.
|
inline |
Definition at line 60 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myKeepRoutes.
|
inline |
Definition at line 68 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::myKeepRouteProb, and RandHelper::rand().
|
pure virtual |
Implemented in GawronCalculator< R, E, V >, and LogitCalculator< R, E, V >.
|
inline |
Definition at line 64 of file RouteCostCalculator.h.
References RouteCostCalculator< R, E, V >::mySkipNewRoutes.
|
staticprivate |
Definition at line 92 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::cleanup().
|
private |
Information whether the old route shall be kept.
Definition at line 104 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::keepRoute(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
private |
Information whether all routes should be saved.
Definition at line 98 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::keepAllRoutes(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
private |
The maximum route alternatives number.
Definition at line 95 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::getMaxRouteNumber(), and RouteCostCalculator< R, E, V >::RouteCostCalculator().
|
private |
Information whether new routes shall be computed.
Definition at line 101 of file RouteCostCalculator.h.
Referenced by RouteCostCalculator< R, E, V >::RouteCostCalculator(), and RouteCostCalculator< R, E, V >::skipRouteCalculation().