44 #ifdef CHECK_MEMORY_LEAKS
46 #endif // CHECK_MEMORY_LEAKS
58 oc.
addDescription(
"output-file",
"Output",
"Write generated routes to FILE");
62 oc.
addDescription(
"vtype-output",
"Output",
"Write used vehicle types into separate FILE");
66 oc.
addDescription(
"net-file",
"Input",
"Use FILE as SUMO-network to route on");
71 oc.
addSynonyme(
"additional-files",
"districts",
true);
72 oc.
addDescription(
"additional-files",
"Input",
"Read additional network data (districts, bus stops) from FILE");
75 oc.
addSynonyme(
"alternative-files",
"alternatives-files");
76 oc.
addSynonyme(
"alternative-files",
"alternatives",
true);
77 oc.
addDescription(
"alternative-files",
"Input",
"Read alternatives from FILE");
81 oc.
addSynonyme(
"flow-files",
"flow-definition",
true);
82 oc.
addDescription(
"flow-files",
"Input",
"Read flow-definitions from FILE(s)");
87 oc.
addDescription(
"weight-files",
"Input",
"Read network weights from FILE(s)");
90 oc.
addDescription(
"lane-weight-files",
"Input",
"Read lane-based network weights from FILE(s)");
93 oc.
addSynonyme(
"weight-attribute",
"measure",
true);
94 oc.
addDescription(
"weight-attribute",
"Input",
"Name of the xml attribute which gives the edge weight");
99 oc.
addDescription(
"begin",
"Time",
"Defines the begin time; Previous trips will be discarded");
102 oc.
addDescription(
"end",
"Time",
"Defines the end time; Later trips will be discarded; Defaults to the maximum time that SUMO can represent");
106 oc.
addSynonyme(
"ignore-errors",
"continue-on-unbuild",
true);
107 oc.
addDescription(
"ignore-errors",
"Processing",
"Continue if a route could not be build");
111 oc.
addDescription(
"unsorted-input",
"Processing",
"Assume input is unsorted");
114 oc.
addDescription(
"randomize-flows",
"Processing",
"generate random departure times for flow input");
117 oc.
addDescription(
"max-alternatives",
"Processing",
"Prune the number of alternatives to INT");
120 oc.
addDescription(
"remove-loops",
"Processing",
"Remove loops within the route; Remove turnarounds at start and end of the route");
123 oc.
addDescription(
"repair",
"Processing",
"Tries to correct a false route");
126 oc.
addSynonyme(
"weights.interpolate",
"interpolate",
true);
127 oc.
addDescription(
"weights.interpolate",
"Processing",
"Interpolate edge weights at interval boundaries");
130 oc.
addDescription(
"with-taz",
"Processing",
"Use origin and destination zones (districts) for in- and output");
135 #ifndef HAVE_INTERNAL
136 "Select among routing algorithms ['dijkstra', 'astar']"
138 "Select among routing algorithms ['dijkstra', 'astar', 'bulkstar', 'CH', 'CHWrapper']"
142 #ifdef HAVE_INTERNAL // catchall for internal stuff
144 oc.
addDescription(
"weight-period",
"Processing",
"Aggregation period for the given weight files; triggers rebuilding of Contraction Hirarchy");
150 oc.
addDescription(
"departlane",
"Defaults",
"Assigns a default depart lane");
153 oc.
addDescription(
"departpos",
"Defaults",
"Assigns a default depart position");
156 oc.
addDescription(
"departspeed",
"Defaults",
"Assigns a default depart speed");
159 oc.
addDescription(
"arrivallane",
"Defaults",
"Assigns a default arrival lane");
162 oc.
addDescription(
"arrivalpos",
"Defaults",
"Assigns a default arrival position");
165 oc.
addDescription(
"arrivalspeed",
"Defaults",
"Assigns a default arrival speed");
168 oc.
addDescription(
"defaults-override",
"Defaults",
"Defaults will override given values");
173 oc.
addDescription(
"stats-period",
"Report",
"Defines how often statistics shall be printed");
176 oc.
addDescription(
"no-step-log",
"Report",
"Disable console output of route parsing step");
183 if (!oc.
isSet(
"output-file")) {
188 if (oc.
getInt(
"max-alternatives") < 2) {
189 WRITE_ERROR(
"At least two alternatives should be enabled");
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
static void fillOptions(OptionsCont &oc, bool forDuarouter)
Inserts options used by routing applications into the OptionsCont-singleton.
static bool checkOptions(OptionsCont &oc)
Checks whether options are valid.
#define SUMOTIME_MAXSTRING
A storage for options typed value containers)
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.