48 oc.
addDescription(
"output-file",
"Output",
"Write generated routes to FILE");
52 oc.
addDescription(
"vtype-output",
"Output",
"Write used vehicle types into separate FILE");
55 oc.
addDescription(
"keep-vtype-distributions",
"Output",
"Keep vTypeDistribution ids when writing vehicles and their types");
59 oc.
addDescription(
"net-file",
"Input",
"Use FILE as SUMO-network to route on");
65 oc.
addSynonyme(
"additional-files",
"districts",
true);
66 oc.
addDescription(
"additional-files",
"Input",
"Read additional network data (districts, bus stops) from FILE(s)");
72 oc.
addSynonyme(
"route-files",
"alternative-files",
true);
73 oc.
addSynonyme(
"route-files",
"alternatives-files",
true);
76 oc.
addDescription(
"route-files",
"Input",
"Read sumo routes, alternatives, flows, and trips from FILE(s)");
79 oc.
addDescription(
"phemlight-path",
"Input",
"Determines where to load PHEMlight definitions from.");
83 oc.
addDescription(
"begin",
"Time",
"Defines the begin time; Previous trips will be discarded");
86 oc.
addDescription(
"end",
"Time",
"Defines the end time; Later trips will be discarded; Defaults to the maximum time that SUMO can represent");
90 oc.
addSynonyme(
"ignore-errors",
"continue-on-unbuild",
true);
91 oc.
addDescription(
"ignore-errors",
"Report",
"Continue if a route could not be build");
95 oc.
addDescription(
"unsorted-input",
"Processing",
"Assume input is unsorted");
98 oc.
addDescription(
"route-steps",
"Processing",
"Load routes for the next number of seconds ahead");
101 oc.
addDescription(
"no-internal-links",
"Processing",
"Disable (junction) internal links");
104 oc.
addDescription(
"randomize-flows",
"Processing",
"generate random departure times for flow input");
107 oc.
addDescription(
"max-alternatives",
"Processing",
"Prune the number of alternatives to INT");
110 oc.
addDescription(
"remove-loops",
"Processing",
"Remove loops within the route; Remove turnarounds at start and end of the route");
113 oc.
addDescription(
"repair",
"Processing",
"Tries to correct a false route");
116 oc.
addDescription(
"repair.from",
"Processing",
"Tries to correct an invalid starting edge by using the first usable edge instead");
119 oc.
addDescription(
"repair.to",
"Processing",
"Tries to correct an invalid destination edge by using the last usable edge instead");
122 oc.
addSynonyme(
"weights.interpolate",
"interpolate",
true);
123 oc.
addDescription(
"weights.interpolate",
"Processing",
"Interpolate edge weights at interval boundaries");
126 oc.
addDescription(
"weights.minor-penalty",
"Processing",
"Apply the given time penalty when computing routing costs for minor-link internal lanes");
129 oc.
addDescription(
"with-taz",
"Processing",
"Use origin and destination zones (districts) for in- and output");
132 oc.
addDescription(
"bulk-routing",
"Processing",
"Aggregate routing queries with the same origin");
135 oc.
addDescription(
"routing-threads",
"Processing",
"The number of parallel execution threads used for routing");
139 oc.
addDescription(
"departlane",
"Defaults",
"Assigns a default depart lane");
142 oc.
addDescription(
"departpos",
"Defaults",
"Assigns a default depart position");
145 oc.
addDescription(
"departspeed",
"Defaults",
"Assigns a default depart speed");
148 oc.
addDescription(
"arrivallane",
"Defaults",
"Assigns a default arrival lane");
151 oc.
addDescription(
"arrivalpos",
"Defaults",
"Assigns a default arrival position");
154 oc.
addDescription(
"arrivalspeed",
"Defaults",
"Assigns a default arrival speed");
157 oc.
addDescription(
"defaults-override",
"Defaults",
"Defaults will override given values");
162 oc.
addDescription(
"stats-period",
"Report",
"Defines how often statistics shall be printed");
165 oc.
addDescription(
"no-step-log",
"Report",
"Disable console output of route parsing step");
172 if (!oc.
isSet(
"output-file")) {
177 if (oc.
getInt(
"max-alternatives") < 2) {
178 WRITE_ERROR(
"At least two alternatives should be enabled.");
182 if (oc.
getInt(
"routing-threads") > 1) {
183 WRITE_ERROR(
"Parallel routing is only possible when compiled with Fox.");
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
static void fillOptions(OptionsCont &oc)
Inserts options used by routing applications into the OptionsCont-singleton.
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
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.