 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
47 oc.
addDescription(
"output-file",
"Output",
"Write generated routes to FILE");
51 oc.
addDescription(
"vtype-output",
"Output",
"Write used vehicle types into separate FILE");
54 oc.
addDescription(
"keep-vtype-distributions",
"Output",
"Keep vTypeDistribution ids when writing vehicles and their types");
58 oc.
addDescription(
"net-file",
"Input",
"Use FILE as SUMO-network to route on");
64 oc.
addSynonyme(
"additional-files",
"districts",
true);
65 oc.
addDescription(
"additional-files",
"Input",
"Read additional network data (districts, bus stops) from FILE(s)");
71 oc.
addSynonyme(
"route-files",
"alternative-files",
true);
72 oc.
addSynonyme(
"route-files",
"alternatives-files",
true);
75 oc.
addDescription(
"route-files",
"Input",
"Read sumo routes, alternatives, flows, and trips from FILE(s)");
78 oc.
addDescription(
"phemlight-path",
"Input",
"Determines where to load PHEMlight definitions from.");
82 oc.
addDescription(
"begin",
"Time",
"Defines the begin time; Previous trips will be discarded");
85 oc.
addDescription(
"end",
"Time",
"Defines the end time; Later trips will be discarded; Defaults to the maximum time that SUMO can represent");
89 oc.
addSynonyme(
"ignore-errors",
"continue-on-unbuild",
true);
90 oc.
addDescription(
"ignore-errors",
"Report",
"Continue if a route could not be build");
94 oc.
addDescription(
"unsorted-input",
"Processing",
"Assume input is unsorted");
97 oc.
addDescription(
"route-steps",
"Processing",
"Load routes for the next number of seconds ahead");
100 oc.
addDescription(
"no-internal-links",
"Processing",
"Disable (junction) internal links");
103 oc.
addDescription(
"randomize-flows",
"Processing",
"generate random departure times for flow input");
106 oc.
addDescription(
"max-alternatives",
"Processing",
"Prune the number of alternatives to INT");
109 oc.
addDescription(
"remove-loops",
"Processing",
"Remove loops within the route; Remove turnarounds at start and end of the route");
112 oc.
addDescription(
"repair",
"Processing",
"Tries to correct a false route");
115 oc.
addDescription(
"repair.from",
"Processing",
"Tries to correct an invalid starting edge by using the first usable edge instead");
118 oc.
addDescription(
"repair.to",
"Processing",
"Tries to correct an invalid destination edge by using the last usable edge instead");
121 oc.
addSynonyme(
"weights.interpolate",
"interpolate",
true);
122 oc.
addDescription(
"weights.interpolate",
"Processing",
"Interpolate edge weights at interval boundaries");
125 oc.
addDescription(
"weights.minor-penalty",
"Processing",
"Apply the given time penalty when computing routing costs for minor-link internal lanes");
128 oc.
addDescription(
"with-taz",
"Processing",
"Use origin and destination zones (districts) for in- and output");
131 oc.
addDescription(
"bulk-routing",
"Processing",
"Aggregate routing queries with the same origin");
134 oc.
addDescription(
"routing-threads",
"Processing",
"The number of parallel execution threads used for routing");
137 oc.
addDescription(
"restriction-params",
"Processing",
"Comma separated list of param keys to compare for additional restrictions");
141 oc.
addDescription(
"departlane",
"Defaults",
"Assigns a default depart lane");
144 oc.
addDescription(
"departpos",
"Defaults",
"Assigns a default depart position");
147 oc.
addDescription(
"departspeed",
"Defaults",
"Assigns a default depart speed");
150 oc.
addDescription(
"arrivallane",
"Defaults",
"Assigns a default arrival lane");
153 oc.
addDescription(
"arrivalpos",
"Defaults",
"Assigns a default arrival position");
156 oc.
addDescription(
"arrivalspeed",
"Defaults",
"Assigns a default arrival speed");
159 oc.
addDescription(
"defaults-override",
"Defaults",
"Defaults will override given values");
164 oc.
addDescription(
"stats-period",
"Report",
"Defines how often statistics shall be printed");
167 oc.
addDescription(
"no-step-log",
"Report",
"Disable console output of route parsing step");
174 if (!oc.
isSet(
"output-file")) {
179 if (oc.
getInt(
"max-alternatives") < 2) {
180 WRITE_ERROR(
"At least two alternatives should be enabled.");
184 if (oc.
getInt(
"routing-threads") > 1) {
185 WRITE_ERROR(
"Parallel routing is only possible when compiled with Fox.");
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 addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
std::vector< std::string > StringVector
Definition of a vector of strings.
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 *v)
Adds an option under the given name.
A storage for options typed value containers)
static bool checkOptions(OptionsCont &oc)
Checks whether options are valid.
#define SUMOTIME_MAXSTRING
static void fillOptions(OptionsCont &oc)
Inserts options used by routing applications into the OptionsCont-singleton.