22 #ifndef RouteCostCalculator_h 23 #define RouteCostCalculator_h 50 template<
class R,
class E,
class V>
60 virtual void setCosts(R* route,
const double costs,
const bool isActive =
false)
const = 0;
107 template<
class R,
class E,
class V>
114 template<
class R,
class E,
class V>
118 if (oc.
getString(
"route-choice-method") ==
"logit") {
120 }
else if (oc.
getString(
"route-choice-method") ==
"gawron") {
bool skipRouteCalculation() const
int myMaxRouteNumber
The maximum route alternatives number.
Cost calculation with c-logit or logit method.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
RouteCostCalculator()
Constructor.
virtual void setCosts(R *route, const double costs, const bool isActive=false) const =0
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static OptionsCont & getOptions()
Retrieves the options.
static RouteCostCalculator * myInstance
Cost calculation with Gawron's method.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
Abstract base class providing static factory method.
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
bool myKeepRoutes
Information whether all routes should be saved.
bool mySkipRouteCalculation
Information whether new routes should be calculated.
virtual ~RouteCostCalculator()
Destructor.
A storage for options typed value containers)
static RouteCostCalculator< R, E, V > & getCalculator()
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