45 #ifdef CHECK_MEMORY_LEAKS
47 #endif // CHECK_MEMORY_LEAKS
59 oc.
addDescription(
"output-file",
"Output",
"Write generated routes to FILE");
63 oc.
addDescription(
"vtype-output",
"Output",
"Write used vehicle types into separate FILE");
67 oc.
addDescription(
"net-file",
"Input",
"Use FILE as SUMO-network to route on");
72 oc.
addSynonyme(
"additional-files",
"districts",
true);
73 oc.
addDescription(
"additional-files",
"Input",
"Read additional network data (districts, bus stops) from FILE");
76 oc.
addSynonyme(
"alternative-files",
"alternatives-files");
77 oc.
addSynonyme(
"alternative-files",
"alternatives",
true);
78 oc.
addDescription(
"alternative-files",
"Input",
"Read alternatives from FILE");
82 oc.
addSynonyme(
"flow-files",
"flow-definition",
true);
83 oc.
addDescription(
"flow-files",
"Input",
"Read flow-definitions from FILE(s)");
88 oc.
addDescription(
"weight-files",
"Input",
"Read network weights from FILE(s)");
91 oc.
addDescription(
"lane-weight-files",
"Input",
"Read lane-based network weights from FILE(s)");
94 oc.
addSynonyme(
"weight-attribute",
"measure",
true);
95 oc.
addDescription(
"weight-attribute",
"Input",
"Name of the xml attribute which gives the edge weight");
97 std::string plp = getenv(
"PHEMLIGHT_PATH")==0 ?
"./PHEMlight/" : std::string(getenv(
"PHEMLIGHT_PATH"));
99 oc.
addDescription(
"phemlight-path",
"Input",
"Determines where to load PHEMlight definitions from.");
104 oc.
addDescription(
"begin",
"Time",
"Defines the begin time; Previous trips will be discarded");
107 oc.
addDescription(
"end",
"Time",
"Defines the end time; Later trips will be discarded; Defaults to the maximum time that SUMO can represent");
111 oc.
addSynonyme(
"ignore-errors",
"continue-on-unbuild",
true);
112 oc.
addDescription(
"ignore-errors",
"Processing",
"Continue if a route could not be build");
116 oc.
addDescription(
"unsorted-input",
"Processing",
"Assume input is unsorted");
119 oc.
addDescription(
"randomize-flows",
"Processing",
"generate random departure times for flow input");
122 oc.
addDescription(
"max-alternatives",
"Processing",
"Prune the number of alternatives to INT");
125 oc.
addDescription(
"remove-loops",
"Processing",
"Remove loops within the route; Remove turnarounds at start and end of the route");
128 oc.
addDescription(
"repair",
"Processing",
"Tries to correct a false route");
131 oc.
addSynonyme(
"weights.interpolate",
"interpolate",
true);
132 oc.
addDescription(
"weights.interpolate",
"Processing",
"Interpolate edge weights at interval boundaries");
135 oc.
addDescription(
"with-taz",
"Processing",
"Use origin and destination zones (districts) for in- and output");
140 #ifndef HAVE_INTERNAL
141 "Select among routing algorithms ['dijkstra', 'astar']"
143 "Select among routing algorithms ['dijkstra', 'astar', 'bulkstar', 'CH', 'CHWrapper']"
147 #ifdef HAVE_INTERNAL // catchall for internal stuff
149 oc.
addDescription(
"weight-period",
"Processing",
"Aggregation period for the given weight files; triggers rebuilding of Contraction Hirarchy");
155 oc.
addDescription(
"departlane",
"Defaults",
"Assigns a default depart lane");
158 oc.
addDescription(
"departpos",
"Defaults",
"Assigns a default depart position");
161 oc.
addDescription(
"departspeed",
"Defaults",
"Assigns a default depart speed");
164 oc.
addDescription(
"arrivallane",
"Defaults",
"Assigns a default arrival lane");
167 oc.
addDescription(
"arrivalpos",
"Defaults",
"Assigns a default arrival position");
170 oc.
addDescription(
"arrivalspeed",
"Defaults",
"Assigns a default arrival speed");
173 oc.
addDescription(
"defaults-override",
"Defaults",
"Defaults will override given values");
178 oc.
addDescription(
"stats-period",
"Report",
"Defines how often statistics shall be printed");
181 oc.
addDescription(
"no-step-log",
"Report",
"Disable console output of route parsing step");
188 if (!oc.
isSet(
"output-file")) {
193 if (oc.
getInt(
"max-alternatives") < 2) {
194 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.