47 oc.
addDescription(
"output-file",
"Output",
TL(
"Write generated routes to FILE"));
53 oc.
addDescription(
"vtype-output",
"Output",
TL(
"Write used vehicle types into separate FILE"));
56 oc.
addDescription(
"keep-vtype-distributions",
"Output",
TL(
"Keep vTypeDistribution ids when writing vehicles and their types"));
59 oc.
addDescription(
"emissions.volumetric-fuel",
"Output",
TL(
"Return fuel consumption values in (legacy) unit l instead of mg"));
63 oc.
addDescription(
"net-file",
"Input",
TL(
"Use FILE as SUMO-network to route on"));
66 oc.
addDescription(
"named-routes",
"Output",
TL(
"Write vehicles that reference routes by their id"));
72 oc.
addSynonyme(
"additional-files",
"districts",
true);
73 oc.
addDescription(
"additional-files",
"Input",
TL(
"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",
TL(
"Read sumo routes, alternatives, flows, and trips from FILE(s)"));
90 oc.
addDescription(
"phemlight-path",
"Input",
TL(
"Determines where to load PHEMlight definitions from"));
93 oc.
addDescription(
"phemlight-year",
"Input",
TL(
"Enable fleet age modelling with the given reference year in PHEMlight5"));
96 oc.
addDescription(
"phemlight-temperature",
"Input",
TL(
"Set ambient temperature to correct NOx emissions in PHEMlight5"));
101 oc.
addDescription(
"weight-files",
"Input",
TL(
"Read network weights from FILE(s)"));
104 oc.
addDescription(
"lane-weight-files",
"Input",
TL(
"Read lane-based network weights from FILE(s)"));
107 oc.
addSynonyme(
"weight-attribute",
"measure",
true);
108 oc.
addDescription(
"weight-attribute",
"Input",
TL(
"Name of the xml attribute which gives the edge weight"));
116 oc.
addDescription(
"begin",
"Time",
TL(
"Defines the begin time; Previous trips will be discarded"));
119 oc.
addDescription(
"end",
"Time",
TL(
"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",
TL(
"Continue if a route could not be build"));
128 oc.
addDescription(
"max-alternatives",
"Processing",
TL(
"Prune the number of alternatives to INT"));
131 oc.
addDescription(
"with-taz",
"Processing",
TL(
"Use origin and destination zones (districts) for in- and output"));
134 oc.
addDescription(
"junction-taz",
"Input",
TL(
"Initialize a TAZ for every junction to use attributes toJunction and fromJunction"));
139 oc.
addDescription(
"unsorted-input",
"Processing",
TL(
"Assume input is unsorted"));
142 oc.
addDescription(
"route-steps",
"Processing",
TL(
"Load routes for the next number of seconds ahead"));
145 oc.
addDescription(
"no-internal-links",
"Processing",
TL(
"Disable (junction) internal links"));
148 oc.
addDescription(
"randomize-flows",
"Processing",
TL(
"generate random departure times for flow input"));
151 oc.
addDescription(
"remove-loops",
"Processing",
TL(
"Remove loops within the route; Remove turnarounds at start and end of the route"));
154 oc.
addDescription(
"repair",
"Processing",
TL(
"Tries to correct a false route"));
157 oc.
addDescription(
"repair.from",
"Processing",
TL(
"Tries to correct an invalid starting edge by using the first usable edge instead"));
160 oc.
addDescription(
"repair.to",
"Processing",
TL(
"Tries to correct an invalid destination edge by using the last usable edge instead"));
163 oc.
addDescription(
"mapmatch.distance",
"Processing",
TL(
"Maximum distance when mapping input coordinates (fromXY etc.) to the road network"));
166 oc.
addDescription(
"mapmatch.junctions",
"Processing",
TL(
"Match positions to junctions instead of edges"));
169 oc.
addDescription(
"mapmatch.taz",
"Processing",
TL(
"Match positions to taz instead of edges"));
172 oc.
addDescription(
"bulk-routing",
"Processing",
TL(
"Aggregate routing queries with the same origin"));
176 oc.
addDescription(
"routing-threads",
"Processing",
TL(
"The number of parallel execution threads used for routing"));
180 oc.
addDescription(
"routing-algorithm",
"Processing",
TL(
"Select among routing algorithms ['dijkstra', 'astar', 'CH', 'CHWrapper']"));
184 oc.
addDescription(
"restriction-params",
"Processing",
TL(
"Comma separated list of param keys to compare for additional restrictions"));
188 oc.
addSynonyme(
"weights.interpolate",
"interpolate",
true);
189 oc.
addDescription(
"weights.interpolate",
"Processing",
TL(
"Interpolate edge weights at interval boundaries"));
192 oc.
addSynonyme(
"weights.expand",
"expand-weights",
true);
193 oc.
addDescription(
"weights.expand",
"Processing",
TL(
"Expand the end of the last loaded weight interval to infinity"));
197 oc.
addDescription(
"weights.minor-penalty",
"Processing",
TL(
"Apply the given time penalty when computing routing costs for minor-link internal lanes"));
200 oc.
addDescription(
"weights.tls-penalty",
"Processing",
TL(
"Apply the given time penalty when computing routing costs across a traffic light"));
203 oc.
addDescription(
"weights.turnaround-penalty",
"Processing",
TL(
"Apply the given time penalty when computing routing costs for turnaround internal lanes"));
208 oc.
addDescription(
"departlane",
"Defaults",
TL(
"Assigns a default depart lane"));
211 oc.
addDescription(
"departpos",
"Defaults",
TL(
"Assigns a default depart position"));
214 oc.
addDescription(
"departspeed",
"Defaults",
TL(
"Assigns a default depart speed"));
217 oc.
addDescription(
"arrivallane",
"Defaults",
TL(
"Assigns a default arrival lane"));
220 oc.
addDescription(
"arrivalpos",
"Defaults",
TL(
"Assigns a default arrival position"));
223 oc.
addDescription(
"arrivalspeed",
"Defaults",
TL(
"Assigns a default arrival speed"));
227 oc.
addDescription(
"defaults-override",
"Defaults",
TL(
"Defaults will override given values"));
231 oc.
addDescription(
"stats-period",
"Report",
TL(
"Defines how often statistics shall be printed"));
234 oc.
addDescription(
"no-step-log",
"Report",
TL(
"Disable console output of route parsing step"));
241 if (!oc.
isSet(
"output-file")) {
246 if (oc.
getInt(
"max-alternatives") < 1) {
247 WRITE_ERROR(
TL(
"A positive number of alternatives must be enabled."));
251 if (oc.
getInt(
"routing-threads") > 1) {
252 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
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.
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)
void doRegister(const std::string &name, Option *o)
Adds an option under the given name.
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.