41 oc.
addDescription(
"type-files",
"Input",
"Read edge-type defs from FILE");
44 oc.
addDescription(
"alphanumerical-ids",
"Output",
"The Ids of generated nodes use an alphanumerical code for easier readability when possible");
48 oc.
addDescription(
"turn-lanes",
"Processing",
"Generate INT left-turn lanes");
50 oc.
addDescription(
"turn-lanes.length",
"Processing",
"Set the length of generated turning lanes to FLOAT");
53 oc.
addDescription(
"perturb-x",
"Processing",
"Apply random spatial perturbation in x direction according the the given distribution");
55 oc.
addDescription(
"perturb-y",
"Processing",
"Apply random spatial perturbation in y direction according the the given distribution");
57 oc.
addDescription(
"perturb-z",
"Processing",
"Apply random spatial perturbation in z direction according the the given distribution");
63 oc.
addDescription(
"grid",
"Grid Network",
"Forces NETGEN to build a grid-like network");
68 oc.
addDescription(
"grid.number",
"Grid Network",
"The number of junctions in both dirs");
73 oc.
addDescription(
"grid.length",
"Grid Network",
"The length of streets in both dirs");
76 oc.
addSynonyme(
"grid.x-number",
"grid-x-number",
true);
78 oc.
addDescription(
"grid.x-number",
"Grid Network",
"The number of junctions in x-dir; Overrides --grid-number");
81 oc.
addSynonyme(
"grid.y-number",
"grid-y-number",
true);
83 oc.
addDescription(
"grid.y-number",
"Grid Network",
"The number of junctions in y-dir; Overrides --grid-number");
86 oc.
addSynonyme(
"grid.x-length",
"grid-x-length",
true);
88 oc.
addDescription(
"grid.x-length",
"Grid Network",
"The length of horizontal streets; Overrides --grid-length");
91 oc.
addSynonyme(
"grid.y-length",
"grid-y-length",
true);
93 oc.
addDescription(
"grid.y-length",
"Grid Network",
"The length of vertical streets; Overrides --grid-length");
96 oc.
addSynonyme(
"grid.attach-length",
"attach-length",
true);
97 oc.
addDescription(
"grid.attach-length",
"Grid Network",
"The length of streets attached at the boundary; 0 means no streets are attached");
100 oc.
addDescription(
"grid.x-attach-length",
"Grid Network",
"The length of streets attached at the boundary in x direction; 0 means no streets are attached");
102 oc.
addDescription(
"grid.y-attach-length",
"Grid Network",
"The length of streets attached at the boundary in y direction; 0 means no streets are attached");
107 oc.
addDescription(
"spider",
"Spider Network",
"Forces NETGEN to build a spider-net-like network");
110 oc.
addSynonyme(
"spider.arm-number",
"spider-arm-number",
true);
112 oc.
addDescription(
"spider.arm-number",
"Spider Network",
"The number of axes within the net");
115 oc.
addSynonyme(
"spider.circle-number",
"spider-circle-number",
true);
117 oc.
addDescription(
"spider.circle-number",
"Spider Network",
"The number of circles of the net");
120 oc.
addSynonyme(
"spider.space-radius",
"spider-space-rad",
true);
122 oc.
addDescription(
"spider.space-radius",
"Spider Network",
"The distances between the circles");
125 oc.
addSynonyme(
"spider.omit-center",
"spider-omit-center",
true);
127 oc.
addDescription(
"spider.omit-center",
"Spider Network",
"Omit the central node of the network");
133 oc.
addDescription(
"rand",
"Random Network",
"Forces NETGEN to build a random network");
136 oc.
addSynonyme(
"rand.iterations",
"rand-iterations",
true);
138 oc.
addDescription(
"rand.iterations",
"Random Network",
"Describes how many times an edge shall be added to the net");
141 oc.
addSynonyme(
"bidi-probability",
"rand-bidi-probability",
true);
143 oc.
addSynonyme(
"bidi-probability",
"rand.bidi-probability");
144 oc.
addDescription(
"bidi-probability",
"Random Network",
"Defines the probability to build a reverse edge");
147 oc.
addSynonyme(
"rand.max-distance",
"rand-max-distance",
true);
149 oc.
addDescription(
"rand.max-distance",
"Random Network",
"The maximum distance for each edge");
152 oc.
addSynonyme(
"rand.min-distance",
"rand-min-distance",
true);
154 oc.
addDescription(
"rand.min-distance",
"Random Network",
"The minimum distance for each edge");
157 oc.
addSynonyme(
"rand.min-angle",
"rand-min-anglee",
true);
159 oc.
addDescription(
"rand.min-angle",
"Random Network",
"The minimum angle for each pair of (bidirectional) roads in DEGREES");
162 oc.
addSynonyme(
"rand.num-tries",
"rand-num-tries",
true);
164 oc.
addDescription(
"rand.num-tries",
"Random Network",
"The number of tries for creating each node");
167 oc.
addSynonyme(
"rand.connectivity",
"rand-connectivity",
true);
168 oc.
addSynonyme(
"rand.connectivity",
"connectivity");
169 oc.
addDescription(
"rand.connectivity",
"Random Network",
"Probability for roads to continue at each node");
172 oc.
addSynonyme(
"rand.neighbor-dist1",
"rand-neighbor-dist1",
true);
174 oc.
addDescription(
"rand.neighbor-dist1",
"Random Network",
"Probability for a node having exactly 1 neighbor");
177 oc.
addSynonyme(
"rand.neighbor-dist2",
"rand-neighbor-dist2",
true);
179 oc.
addDescription(
"rand.neighbor-dist2",
"Random Network",
"Probability for a node having exactly 2 neighbors");
182 oc.
addSynonyme(
"rand.neighbor-dist3",
"rand-neighbor-dist3",
true);
184 oc.
addDescription(
"rand.neighbor-dist3",
"Random Network",
"Probability for a node having exactly 3 neighbors");
187 oc.
addSynonyme(
"rand.neighbor-dist4",
"rand-neighbor-dist4",
true);
189 oc.
addDescription(
"rand.neighbor-dist4",
"Random Network",
"Probability for a node having exactly 4 neighbors");
192 oc.
addSynonyme(
"rand.neighbor-dist5",
"rand-neighbor-dist5",
true);
194 oc.
addDescription(
"rand.neighbor-dist5",
"Random Network",
"Probability for a node having exactly 5 neighbors");
197 oc.
addSynonyme(
"rand.neighbor-dist6",
"rand-neighbor-dist6",
true);
199 oc.
addDescription(
"rand.neighbor-dist6",
"Random Network",
"Probability for a node having exactly 6 neighbors");
202 oc.
addDescription(
"rand.random-lanenumber",
"Random Network",
"Draw lane numbers randomly from [1,default.lanenumber]");
205 oc.
addDescription(
"rand.random-priority",
"Random Network",
"Draw edge priority randomly from [1,default.priority]");
208 oc.
addDescription(
"rand.grid",
"Random Network",
"Place nodes on a regular grid with spacing rand.min-distance");
228 WRITE_ERROR(
"You have to specify the type of network to generate.");
232 WRITE_ERROR(
"You may specify only one type of network to generate at once.");
236 if (oc.
isSet(
"default-junction-type")) {
237 std::string type = oc.
getString(
"default-junction-type");
249 WRITE_ERROR(
"Only the following junction types are known: " +
@ TRAFFIC_LIGHT_RIGHT_ON_RED
@ TRAFFIC_LIGHT_NOJUNCTION
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static void fillOptions()
Inserts options used by the network generator.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
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.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static OptionsCont & getOptions()
Retrieves the options.