47 oc.
addDescription(
"output-file",
"Output",
"Write generated routes to FILE");
53 oc.
addDescription(
"vtype-output",
"Output",
"Write used vehicle types into separate FILE");
56 oc.
addDescription(
"keep-vtype-distributions",
"Output",
"Keep vTypeDistribution ids when writing vehicles and their types");
59 oc.
addDescription(
"emissions.volumetric-fuel",
"Output",
"Return fuel consumption values in (legacy) unit l instead of mg");
63 oc.
addDescription(
"net-file",
"Input",
"Use FILE as SUMO-network to route on");
66 oc.
addDescription(
"named-routes",
"Output",
"Write vehicles that reference routes by their id");
72 oc.
addSynonyme(
"additional-files",
"districts",
true);
73 oc.
addDescription(
"additional-files",
"Input",
"Read additional network data (districts, bus stops) from FILE(s)");
79 oc.
addSynonyme(
"route-files",
"alternative-files",
true);
80 oc.
addSynonyme(
"route-files",
"alternatives-files",
true);
87 oc.
addDescription(
"route-files",
"Input",
"Read sumo routes, alternatives, flows, and trips from FILE(s)");
90 oc.
addDescription(
"phemlight-path",
"Input",
"Determines where to load PHEMlight definitions from");
93 oc.
addDescription(
"phemlight-year",
"Input",
"Enable fleet age modelling with the given reference year in PHEMlight5");
96 oc.
addDescription(
"phemlight-temperature",
"Input",
"Set ambient temperature to correct NOx emissions in PHEMlight5");
101 oc.
addDescription(
"weight-files",
"Input",
"Read network weights from FILE(s)");
104 oc.
addDescription(
"lane-weight-files",
"Input",
"Read lane-based network weights from FILE(s)");
107 oc.
addSynonyme(
"weight-attribute",
"measure",
true);
108 oc.
addDescription(
"weight-attribute",
"Input",
"Name of the xml attribute which gives the edge weight");
116 oc.
addDescription(
"begin",
"Time",
"Defines the begin time; Previous trips will be discarded");
119 oc.
addDescription(
"end",
"Time",
"Defines the end time; Later trips will be discarded; Defaults to the maximum time that SUMO can represent");
123 oc.
addSynonyme(
"ignore-errors",
"continue-on-unbuild",
true);
124 oc.
addSynonyme(
"ignore-errors",
"dismiss-loading-errors",
true);
125 oc.
addDescription(
"ignore-errors",
"Report",
"Continue if a route could not be build");
128 oc.
addDescription(
"max-alternatives",
"Processing",
"Prune the number of alternatives to INT");
131 oc.
addDescription(
"with-taz",
"Processing",
"Use origin and destination zones (districts) for in- and output");
134 oc.
addDescription(
"junction-taz",
"Input",
"Initialize a TAZ for every junction to use attributes toJunction and fromJunction");
139 oc.
addDescription(
"unsorted-input",
"Processing",
"Assume input is unsorted");
142 oc.
addDescription(
"route-steps",
"Processing",
"Load routes for the next number of seconds ahead");
145 oc.
addDescription(
"no-internal-links",
"Processing",
"Disable (junction) internal links");
148 oc.
addDescription(
"randomize-flows",
"Processing",
"generate random departure times for flow input");
151 oc.
addDescription(
"remove-loops",
"Processing",
"Remove loops within the route; Remove turnarounds at start and end of the route");
154 oc.
addDescription(
"repair",
"Processing",
"Tries to correct a false route");
157 oc.
addDescription(
"repair.from",
"Processing",
"Tries to correct an invalid starting edge by using the first usable edge instead");
160 oc.
addDescription(
"repair.to",
"Processing",
"Tries to correct an invalid destination edge by using the last usable edge instead");
163 oc.
addDescription(
"mapmatch.distance",
"Processing",
"Maximum distance when mapping input coordinates (fromXY etc.) to the road network");
166 oc.
addDescription(
"mapmatch.junctions",
"Processing",
"Match positions to junctions instead of edges");
169 oc.
addDescription(
"bulk-routing",
"Processing",
"Aggregate routing queries with the same origin");
173 oc.
addDescription(
"routing-threads",
"Processing",
"The number of parallel execution threads used for routing");
177 oc.
addDescription(
"routing-algorithm",
"Processing",
"Select among routing algorithms ['dijkstra', 'astar', 'CH', 'CHWrapper']");
181 oc.
addDescription(
"restriction-params",
"Processing",
"Comma separated list of param keys to compare for additional restrictions");
185 oc.
addSynonyme(
"weights.interpolate",
"interpolate",
true);
186 oc.
addDescription(
"weights.interpolate",
"Processing",
"Interpolate edge weights at interval boundaries");
189 oc.
addSynonyme(
"weights.expand",
"expand-weights",
true);
190 oc.
addDescription(
"weights.expand",
"Processing",
"Expand the end of the last loaded weight interval to infinity");
194 oc.
addDescription(
"weights.minor-penalty",
"Processing",
"Apply the given time penalty when computing routing costs for minor-link internal lanes");
199 oc.
addDescription(
"departlane",
"Defaults",
"Assigns a default depart lane");
202 oc.
addDescription(
"departpos",
"Defaults",
"Assigns a default depart position");
205 oc.
addDescription(
"departspeed",
"Defaults",
"Assigns a default depart speed");
208 oc.
addDescription(
"arrivallane",
"Defaults",
"Assigns a default arrival lane");
211 oc.
addDescription(
"arrivalpos",
"Defaults",
"Assigns a default arrival position");
214 oc.
addDescription(
"arrivalspeed",
"Defaults",
"Assigns a default arrival speed");
217 oc.
addDescription(
"defaults-override",
"Defaults",
"Defaults will override given values");
222 oc.
addDescription(
"stats-period",
"Report",
"Defines how often statistics shall be printed");
225 oc.
addDescription(
"no-step-log",
"Report",
"Disable console output of route parsing step");
232 if (!oc.
isSet(
"output-file")) {
237 if (oc.
getInt(
"max-alternatives") < 1) {
238 WRITE_ERROR(
TL(
"A positive number of alternatives must be enabled."));
242 if (oc.
getInt(
"routing-threads") > 1) {
243 WRITE_ERROR(
TL(
"Parallel routing is only possible when compiled with Fox."));
std::vector< std::string > StringVector
Definition of a vector of strings.
const double INVALID_DOUBLE
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.
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
static bool checkOptions(OptionsCont &oc)
Checks whether options are valid.
static void fillOptions(OptionsCont &oc, const bool isDUA=false, const bool isMA=false)
Inserts options used by routing applications into the OptionsCont-singleton.
static void addReportOptions(OptionsCont &oc)
Adds reporting options to the given container.