47 #ifdef CHECK_MEMORY_LEAKS 49 #endif // CHECK_MEMORY_LEAKS 58 oc.
addCallExample(
"-c <CONFIGURATION>",
"run routing with options from file");
85 oc.
addDescription(
"trip-files",
"Input",
"Read trip-definitions from FILE(s)");
90 oc.
addDescription(
"route-files",
"Input",
"Read sumo-routes from FILE(s)");
95 oc.
addSynonyme(
"weights.expand",
"expand-weights",
true);
96 oc.
addDescription(
"weights.expand",
"Processing",
"Expand weights behind the simulation's end");
106 oc.
addDescription(
"gawron.beta",
"Processing",
"Use FLOAT as Gawron's beta");
110 oc.
addDescription(
"gawron.a",
"Processing",
"Use FLOAT as Gawron's a");
113 oc.
addDescription(
"exit-times",
"Output",
"Write exit times (weights) for each edge");
116 oc.
addDescription(
"keep-all-routes",
"Processing",
"Save routes with near zero probability");
119 oc.
addDescription(
"skip-new-routes",
"Processing",
"Only reuse routes from input, do not calculate new ones");
122 oc.
addDescription(
"logit",
"Processing",
"Use c-logit model (deprecated in favor of --route-choice-method logit)");
125 oc.
addDescription(
"route-choice-method",
"Processing",
"Choose a route choice method: gawron, logit, or lohse");
129 oc.
addDescription(
"logit.beta",
"Processing",
"Use FLOAT as logit's beta");
133 oc.
addDescription(
"logit.gamma",
"Processing",
"Use FLOAT as logit's gamma");
137 oc.
addDescription(
"logit.theta",
"Processing",
"Use FLOAT as logit's theta (negative values mean auto-estimation)");
174 if (oc.
getString(
"routing-algorithm") !=
"dijkstra" && oc.
getString(
"weight-attribute") !=
"traveltime") {
175 WRITE_ERROR(
"Routing algorithm '" + oc.
getString(
"routing-algorithm") +
"' does not support weight-attribute '" + oc.
getString(
"weight-attribute") +
"'.");
179 if (oc.
getBool(
"bulk-routing") && (oc.
getString(
"routing-algorithm") ==
"CH" || oc.
getString(
"routing-algorithm") ==
"CHWrapper")) {
180 WRITE_ERROR(
"Routing algorithm '" + oc.
getString(
"routing-algorithm") +
"' does not support bulk routing.");
184 if (oc.
getString(
"route-choice-method") !=
"gawron" && oc.
getString(
"route-choice-method") !=
"logit") {
190 WRITE_WARNING(
"The --logit option is deprecated, please use --route-choice-method logit.");
191 oc.
set(
"route-choice-method",
"logit");
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
static void insertRandOptions()
Initialises the given options container with random number options.
static bool parseDepartSpeed(const std::string &val, const std::string &element, const std::string &id, SUMOReal &speed, DepartSpeedDefinition &dsd, std::string &error)
Validates a given departSpeed value.
static void addReportOptions(OptionsCont &oc)
Adds reporting options to the given container.
static bool parseArrivalPos(const std::string &val, const std::string &element, const std::string &id, SUMOReal &pos, ArrivalPosDefinition &apd, std::string &error)
Validates a given arrivalPos value.
static void addImportOptions()
Inserts import options used by duarouter into the OptionsCont-singleton.
ArrivalLaneDefinition arrivalLaneProcedure
Information how the vehicle shall choose the lane to arrive on.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid for usage within duarouter...
void addCallExample(const std::string &example, const std::string &desc)
Add a call example.
DepartLaneDefinition departLaneProcedure
Information how the vehicle shall choose the lane to depart from.
SUMOReal departSpeed
(optional) The initial speed of the vehicle
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
SUMOReal arrivalSpeed
(optional) The final speed of the vehicle (not used yet)
SUMOReal arrivalPos
(optional) The position the vehicle shall arrive on
ArrivalSpeedDefinition arrivalSpeedProcedure
Information how the vehicle's end speed shall be chosen.
static void addConfigurationOptions(OptionsCont &oc)
Adds configuration options to the given container.
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
static void fillOptions()
Inserts options used by duarouter into the OptionsCont-singleton.
DepartSpeedDefinition departSpeedProcedure
Information how the vehicle's initial speed shall be chosen.
static void fillOptions(OptionsCont &oc, bool forDuarouter)
Inserts options used by routing applications into the OptionsCont-singleton.
DepartPosDefinition departPosProcedure
Information how the vehicle shall choose the departure position.
static bool checkOptions(OptionsCont &oc)
Checks whether options are valid.
int arrivalLane
(optional) The lane the vehicle shall arrive on (not used yet)
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
static bool parseArrivalLane(const std::string &val, const std::string &element, const std::string &id, int &lane, ArrivalLaneDefinition &ald, std::string &error)
Validates a given arrivalLane value.
static bool parseDepartPos(const std::string &val, const std::string &element, const std::string &id, SUMOReal &pos, DepartPosDefinition &dpd, std::string &error)
Validates a given departPos value.
int departLane
(optional) The lane the vehicle shall depart from (index in edge)
static bool parseArrivalSpeed(const std::string &val, const std::string &element, const std::string &id, SUMOReal &speed, ArrivalSpeedDefinition &asd, std::string &error)
Validates a given arrivalSpeed value.
Structure representing possible vehicle parameter.
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
A storage for options typed value containers)
SUMOReal departPos
(optional) The position the vehicle shall depart from
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
static void addDUAOptions()
Inserts dua options used by duarouter into the OptionsCont-singleton.
ArrivalPosDefinition arrivalPosProcedure
Information how the vehicle shall choose the arrival position.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
static bool parseDepartLane(const std::string &val, const std::string &element, const std::string &id, int &lane, DepartLaneDefinition &dld, std::string &error)
Validates a given departLane value.