SUMO - Simulation of Urban MObility
NBFrame.cpp
Go to the documentation of this file.
1 /****************************************************************************/
9 // Sets and checks options for netbuild
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
34 #include <fstream>
35 #include "NBFrame.h"
36 #include "NBNodeCont.h"
37 #include "NBEdgeCont.h"
39 #include "NBDistrictCont.h"
40 #include "NBDistribution.h"
41 #include "NBRequest.h"
42 #include "NBTypeCont.h"
47 #include <utils/common/ToString.h>
51 
52 #ifdef CHECK_MEMORY_LEAKS
53 #include <foreign/nvwa/debug_new.h>
54 #endif // CHECK_MEMORY_LEAKS
55 
56 
57 // ===========================================================================
58 // method definitions
59 // ===========================================================================
60 void
61 NBFrame::fillOptions(bool forNetgen) {
63  // register building defaults
64  oc.doRegister("default.lanenumber", 'L', new Option_Integer(1));
65  oc.addSynonyme("default.lanenumber", "lanenumber", true);
66  oc.addDescription("default.lanenumber", "Building Defaults", "The default number of lanes in an edge");
67 
68  oc.doRegister("default.speed", 'S', new Option_Float((SUMOReal) 13.9));
69  oc.addSynonyme("default.speed", "speed", true);
70  oc.addDescription("default.speed", "Building Defaults", "The default speed on an edge (in m/s)");
71 
72  oc.doRegister("default.priority", 'P', new Option_Integer(-1));
73  oc.addSynonyme("default.priority", "priority", true);
74  oc.addDescription("default.priority", "Building Defaults", "The default priority of an edge");
75 
76  oc.doRegister("default.sidewalk-width", new Option_Float((SUMOReal) 2.0));
77  oc.addDescription("default.sidewalk-width", "Building Defaults", "The default width of added sidewalks");
78 
79  oc.doRegister("default.junctions.keep-clear", new Option_Bool(true));
80  oc.addDescription("default.junctions.keep-clear", "Building Defaults", "Whether junctions should be kept clear by default");
81 
82  oc.doRegister("default.junctions.radius", new Option_Float(1.5));
83  oc.addDescription("default.junctions.radius", "Building Defaults", "The default turning radius of intersections");
84 
85  // register the data processing options
86  oc.doRegister("no-internal-links", new Option_Bool(false)); // !!! not described
87  oc.addDescription("no-internal-links", "Processing", "Omits internal links");
88 
89  if (!forNetgen) {
90  oc.doRegister("dismiss-vclasses", new Option_Bool(false));
91  oc.addDescription("dismiss-vclasses", "Processing", "Removes vehicle class restrictions from imported edges");
92  }
93 
94  oc.doRegister("no-turnarounds", new Option_Bool(false));
95  oc.addDescription("no-turnarounds", "Processing", "Disables building turnarounds");
96 
97  oc.doRegister("no-turnarounds.tls", new Option_Bool(false));
98  oc.addSynonyme("no-turnarounds.tls", "no-tls-turnarounds", true);
99  oc.addDescription("no-turnarounds.tls", "Processing", "Disables building turnarounds at tls-controlled junctions");
100 
101  oc.doRegister("no-left-connections", new Option_Bool(false));
102  oc.addDescription("no-left-connections", "Processing", "Disables building connections to left");
103 
104  if (!forNetgen) {
105  oc.doRegister("geometry.split", new Option_Bool(false)); // !!!not described
106  oc.addSynonyme("geometry.split", "split-geometry", true);
107  oc.addDescription("geometry.split", "Processing", "Splits edges across geometry nodes");
108 
109  oc.doRegister("geometry.remove", 'R', new Option_Bool(false));
110  oc.addSynonyme("geometry.remove", "remove-geometry", true);
111  oc.addDescription("geometry.remove", "Processing", "Replace nodes which only define edge geometry by geometry points (joins edges)");
112 
113  oc.doRegister("geometry.remove.keep-edges.explicit", new Option_String());
114  oc.addDescription("geometry.remove.keep-edges.explicit", "Processing", "Ensure that the given list of edges is not modified");
115 
116  oc.doRegister("geometry.remove.keep-edges.input-file", new Option_FileName());
117  oc.addDescription("geometry.remove.keep-edges.input-file", "Processing",
118  "Ensure that the edges in FILE are not modified (Each id on a single line. Selection files from SUMO-GUI are also supported)");
119 
120  oc.doRegister("geometry.max-segment-length", new Option_Float(0));
121  oc.addDescription("geometry.max-segment-length", "Processing", "splits geometry to restrict segment length");
122 
123  oc.doRegister("geometry.min-dist", new Option_Float());
124  oc.addDescription("geometry.min-dist", "Processing", "reduces too similar geometry points");
125 
126  oc.doRegister("geometry.max-angle", new Option_Float(99));
127  oc.addDescription("geometry.max-angle", "Processing", "Warn about edge geometries with an angle above DEGREES in successive segments");
128 
129  oc.doRegister("geometry.min-radius", new Option_Float(9));
130  oc.addDescription("geometry.min-radius", "Processing", "Warn about edge geometries with a turning radius less than METERS at the start or end");
131 
132  oc.doRegister("geometry.min-radius.fix", new Option_Bool(false));
133  oc.addDescription("geometry.min-radius.fix", "Processing", "Straighten edge geometries to avoid turning radii less than geometry.min-radius");
134 
135  oc.doRegister("geometry.junction-mismatch-threshold", new Option_Float(20));
136  oc.addDescription("geometry.junction-mismatch-threshold", "Processing", "Warn if the junction shape is to far away from the original node position");
137  }
138 
139  oc.doRegister("offset.disable-normalization", new Option_Bool(false));
140  oc.addSynonyme("offset.disable-normalization", "disable-normalize-node-positions", true);
141  oc.addDescription("offset.disable-normalization", "Processing", "Turn off normalizing node positions");
142 
143  oc.doRegister("offset.x", new Option_Float(0));
144  oc.addSynonyme("offset.x", "x-offset-to-apply", true);
145  oc.addDescription("offset.x", "Processing", "Adds FLOAT to net x-positions");
146 
147  oc.doRegister("offset.y", new Option_Float(0));
148  oc.addSynonyme("offset.y", "y-offset-to-apply", true);
149  oc.addDescription("offset.y", "Processing", "Adds FLOAT to net y-positions");
150 
151  oc.doRegister("flip-y-axis", new Option_Bool(false));
152  oc.addSynonyme("flip-y-axis", "flip-y");
153  oc.addDescription("flip-y-axis", "Processing", "Flips the y-coordinate along zero");
154 
155  oc.doRegister("roundabouts.guess", new Option_Bool(false));
156  oc.addSynonyme("roundabouts.guess", "guess-roundabouts", true);
157  oc.addDescription("roundabouts.guess", "Processing", "Enable roundabout-guessing");
158 
159  oc.doRegister("lefthand", new Option_Bool(false));
160  oc.addDescription("lefthand", "Processing", "Assumes left-hand traffic on the network");
161 
162  oc.doRegister("edges.join", new Option_Bool(false));
163  oc.addDescription("edges.join", "Processing",
164  "Merges edges whch connect the same nodes and are close to each other (recommended for VISSIM import)");
165 
166  oc.doRegister("junctions.join", new Option_Bool(false));
167  oc.addDescription("junctions.join", "Processing",
168  "Joins junctions that are close to each other (recommended for OSM import)");
169 
170  oc.doRegister("junctions.join-dist", new Option_Float(10));
171  oc.addDescription("junctions.join-dist", "Processing",
172  "Determines the maximal distance for joining junctions (defaults to 10)");
173 
174  if (!forNetgen) {
175  oc.doRegister("junctions.join-exclude", new Option_String());
176  oc.addDescription("junctions.join-exclude", "Processing", "Interprets STR as list of junctions to exclude from joining");
177 
178  oc.doRegister("speed.offset", new Option_Float(0));
179  oc.addDescription("speed.offset", "Processing", "Modifies all edge speeds by adding FLOAT");
180 
181  oc.doRegister("speed.factor", new Option_Float(1));
182  oc.addDescription("speed.factor", "Processing", "Modifies all edge speeds by multiplying by FLOAT");
183  }
184 
185  oc.doRegister("junctions.corner-detail", new Option_Integer(0));
186  oc.addDescription("junctions.corner-detail", "Processing", "Generate INT intermediate points to smooth out intersection corners");
187 
188  oc.doRegister("junctions.internal-link-detail", new Option_Integer(5));
189  oc.addDescription("junctions.internal-link-detail", "Processing", "Generate INT intermediate points to smooth out lanes within the intersection");
190 
191  oc.doRegister("check-lane-foes.roundabout", new Option_Bool(true));
192  oc.addDescription("check-lane-foes.roundabout", "Processing",
193  "Allow driving onto a multi-lane road if there are foes on other lanes (at roundabouts)");
194 
195  oc.doRegister("check-lane-foes.all", new Option_Bool(false));
196  oc.addDescription("check-lane-foes.all", "Processing",
197  "Allow driving onto a multi-lane road if there are foes on other lanes (everywhere)");
198 
199  oc.doRegister("sidewalks.guess", new Option_Bool(false));
200  oc.addDescription("sidewalks.guess", "Processing",
201  "Guess pedestrian sidewalks based on edge speed");
202 
203  oc.doRegister("sidewalks.guess.max-speed", new Option_Float((SUMOReal) 13.89));
204  oc.addDescription("sidewalks.guess.max-speed", "Processing",
205  "Add sidewalks for edges with a speed equal or below the given limit");
206 
207  oc.doRegister("sidewalks.guess.min-speed", new Option_Float((SUMOReal) 5.8));
208  oc.addDescription("sidewalks.guess.min-speed", "Processing",
209  "Add sidewalks for edges with a speed above the given limit");
210 
211  oc.doRegister("sidewalks.guess.from-permissions", new Option_Bool(false));
212  oc.addDescription("sidewalks.guess.from-permissions", "Processing",
213  "Add sidewalks for edges that allow pedestrians on any of their lanes regardless of speed");
214 
215  oc.doRegister("sidewalks.guess.exclude", new Option_String());
216  oc.addDescription("sidewalks.guess.exclude", "Processing",
217  "Do not guess sidewalks for the given list of edges");
218 
219  oc.doRegister("crossings.guess", new Option_Bool(false));
220  oc.addDescription("crossings.guess", "Processing",
221  "Guess pedestrian crossings based on the presence of sidewalks");
222 
223  oc.doRegister("crossings.guess.speed-threshold", new Option_Float(13.89));
224  oc.addDescription("crossings.guess.speed-threshold", "Processing",
225  "At uncontrolled nodes, do not build crossings across edges with a speed above the threshold");
226 
227  // tls setting options
228  // explicit tls
229  oc.doRegister("tls.set", new Option_String());
230  oc.addSynonyme("tls.set", "explicite-tls", true);
231  oc.addDescription("tls.set", "TLS Building", "Interprets STR as list of junctions to be controlled by TLS");
232 
233  oc.doRegister("tls.unset", new Option_String());
234  oc.addSynonyme("tls.unset", "explicite-no-tls", true);
235  oc.addDescription("tls.unset", "TLS Building", "Interprets STR as list of junctions to be not controlled by TLS");
236 
237  // tls-guessing
238  oc.doRegister("tls.guess", new Option_Bool(false));
239  oc.addSynonyme("tls.guess", "guess-tls", true);
240  oc.addDescription("tls.guess", "TLS Building", "Turns on TLS guessing");
241 
242  if (!forNetgen) {
243  oc.doRegister("tls.taz-nodes", new Option_Bool(false));
244  oc.addSynonyme("tls.taz-nodes", "tls-guess.district-nodes", true);
245  oc.addDescription("tls.taz-nodes", "TLS Building", "Sets district nodes as tls-controlled"); // !!! describe
246  }
247 
248  oc.doRegister("tls-guess.joining", new Option_Bool(false));
249  oc.addDescription("tls-guess.joining", "TLS Building", "Includes node clusters into guess"); // !!! describe
250 
251  oc.doRegister("tls.join", new Option_Bool(false));
252  oc.addSynonyme("tls.join", "try-join-tls", true);
253  oc.addDescription("tls.join", "TLS Building", "Tries to cluster tls-controlled nodes"); // !!! describe
254 
255  oc.doRegister("tls.join-dist", new Option_Float(20));
256  oc.addDescription("tls.join-dist", "TLS Building",
257  "Determines the maximal distance for joining traffic lights (defaults to 20)");
258 
259  oc.doRegister("tls.uncontrolled-within", new Option_Bool(false));
260  oc.addDescription("tls.uncontrolled-within", "TLS Building",
261  "Do not control edges that lie fully within a joined traffic light. This may cause collisions but allows old traffic light plans to be used");
262 
263  if (!forNetgen) {
264  oc.doRegister("tls.guess-signals", new Option_Bool(false));
265  oc.addDescription("tls.guess-signals", "TLS Building", "Interprets tls nodes surrounding an intersection as signal positions for a larger TLS. This is typical pattern for OSM-derived networks");
266 
267  oc.doRegister("tls.guess-signals.dist", new Option_Float(25));
268  oc.addDescription("tls.guess-signals.dist", "TLS Building", "Distance for interpreting nodes as signal locations");
269  }
270 
271 
272  // computational
273  oc.doRegister("tls.cycle.time", new Option_Integer(90));
274  oc.addDescription("tls.cycle.time", "TLS Building", "Use INT as cycle duration");
275 
276  oc.doRegister("tls.green.time", new Option_Integer(31));
277  oc.addSynonyme("tls.green.time", "traffic-light-green", true);
278  oc.addDescription("tls.green.time", "TLS Building", "Use INT as green phase duration");
279 
280  oc.doRegister("tls.yellow.min-decel", 'D', new Option_Float(3.0));
281  oc.addSynonyme("tls.yellow.min-decel", "min-decel", true);
282  oc.addDescription("tls.yellow.min-decel", "TLS Building", "Defines smallest vehicle deceleration");
283 
284  oc.doRegister("tls.yellow.patch-small", new Option_Bool(false));
285  oc.addSynonyme("tls.yellow.patch-small", "patch-small-tyellow", true);
286  oc.addDescription("tls.yellow.patch-small", "TLS Building", "Given yellow times are patched even if being too short");
287 
288  oc.doRegister("tls.yellow.time", new Option_Integer());
289  oc.addSynonyme("tls.yellow.time", "traffic-light-yellow", true);
290  oc.addDescription("tls.yellow.time", "TLS Building", "Set INT as fixed time for yellow phase durations");
291 
292  oc.doRegister("tls.left-green.time", new Option_Integer(6));
293  oc.addDescription("tls.left-green.time", "TLS Building", "Use INT as green phase duration for left turns (s)");
294 
295  // tls-shifts
296  oc.doRegister("tls.half-offset", new Option_String());
297  oc.addSynonyme("tls.half-offset", "tl-logics.half-offset", true);
298  oc.addDescription("tls.half-offset", "TLS Building", "TLSs in STR will be shifted by half-phase");
299 
300  oc.doRegister("tls.quarter-offset", new Option_String());
301  oc.addSynonyme("tls.quarter-offset", "tl-logics.quarter-offset", true);
302  oc.addDescription("tls.quarter-offset", "TLS Building", "TLSs in STR will be shifted by quarter-phase");
303 
304  // tls type
305  oc.doRegister("tls.default-type", new Option_String("static"));
306  oc.addDescription("tls.default-type", "TLS Building", "TLSs with unspecified type will use STR as their algorithm");
307 
308 
309  // edge pruning
310  oc.doRegister("keep-edges.min-speed", new Option_Float());
311  oc.addSynonyme("keep-edges.min-speed", "edges-min-speed", true);
312  oc.addDescription("keep-edges.min-speed", "Edge Removal", "Only keep edges with speed in meters/second > FLOAT");
313 
314  oc.doRegister("remove-edges.explicit", new Option_String());
315  oc.addSynonyme("remove-edges.explicit", "remove-edges");
316  oc.addDescription("remove-edges.explicit", "Edge Removal", "Remove edges in STR");
317 
318  oc.doRegister("keep-edges.explicit", new Option_String());
319  oc.addSynonyme("keep-edges.explicit", "keep-edges");
320  oc.addDescription("keep-edges.explicit", "Edge Removal", "Only keep edges in STR");
321 
322  oc.doRegister("keep-edges.input-file", new Option_FileName());
323  oc.addDescription("keep-edges.input-file", "Edge Removal", "Only keep edges in FILE (Each id on a single line. Selection files from SUMO-GUI are also supported)");
324 
325  oc.doRegister("remove-edges.input-file", new Option_FileName());
326  oc.addDescription("remove-edges.input-file", "Edge Removal", "Remove edges in FILE. (Each id on a single line. Selection files from SUMO-GUI are also supported)");
327 
328  if (!forNetgen) {
329  oc.doRegister("keep-edges.postload", new Option_Bool(false));
330  oc.addDescription("keep-edges.postload", "Edge Removal", "Remove edges after joining");
331  }
332 
333  oc.doRegister("keep-edges.in-boundary", new Option_String());
334  oc.addDescription("keep-edges.in-boundary", "Edge Removal", "Only keep edges which are located within the given boundary (given either as CARTESIAN corner coordinates <xmin,ymin,xmax,ymax> or as polygon <x0,y0,x1,y1,...>)");
335 
336  oc.doRegister("keep-edges.in-geo-boundary", new Option_String());
337  oc.addDescription("keep-edges.in-geo-boundary", "Edge Removal", "Only keep edges which are located within the given boundary (given either as GEODETIC corner coordinates <lon-min,lat-min,lon-max,lat-max> or as polygon <lon0,lat0,lon1,lat1,...>)");
338 
339  if (!forNetgen) {
340  oc.doRegister("keep-edges.by-vclass", new Option_String());
341  oc.addDescription("keep-edges.by-vclass", "Edge Removal", "Only keep edges which allow one of the vclasss in STR");
342 
343  oc.doRegister("remove-edges.by-vclass", new Option_String());
344  oc.addDescription("remove-edges.by-vclass", "Edge Removal", "Remove edges which allow only vclasses from STR");
345 
346  oc.doRegister("keep-edges.by-type", new Option_String());
347  oc.addDescription("keep-edges.by-type", "Edge Removal", "Only keep edges where type is in STR");
348 
349  oc.doRegister("remove-edges.by-type", new Option_String());
350  oc.addDescription("remove-edges.by-type", "Edge Removal", "Remove edges where type is in STR");
351 
352  oc.doRegister("remove-edges.isolated", new Option_Bool(false));
353  oc.addSynonyme("remove-edges.isolated", "remove-isolated", true);
354  oc.addDescription("remove-edges.isolated", "Edge Removal", "Removes isolated edges");
355 
356  }
357 
358 
359  // unregulated nodes options
360  oc.doRegister("keep-nodes-unregulated", new Option_Bool(false));
361  oc.addSynonyme("keep-nodes-unregulated", "keep-unregulated");
362  oc.addDescription("keep-nodes-unregulated", "Unregulated Nodes", "All nodes will be unregulated");
363 
364  oc.doRegister("keep-nodes-unregulated.explicit", new Option_String());
365  oc.addSynonyme("keep-nodes-unregulated.explicit", "keep-unregulated.explicit");
366  oc.addSynonyme("keep-nodes-unregulated.explicit", "keep-unregulated.nodes", true);
367  oc.addDescription("keep-nodes-unregulated.explicit", "Unregulated Nodes", "Do not regulate nodes in STR");
368 
369  oc.doRegister("keep-nodes-unregulated.district-nodes", new Option_Bool(false));
370  oc.addSynonyme("keep-nodes-unregulated.district-nodes", "keep-unregulated.district-nodes");
371  oc.addDescription("keep-nodes-unregulated.district-nodes", "Unregulated Nodes", "Do not regulate district nodes");
372 
373 
374  // ramp guessing options
375  if (!forNetgen) {
376  oc.doRegister("ramps.guess", new Option_Bool(false));
377  oc.addSynonyme("ramps.guess", "guess-ramps", true);
378  oc.addDescription("ramps.guess", "Ramp Guessing", "Enable ramp-guessing");
379 
380  oc.doRegister("ramps.max-ramp-speed", new Option_Float(-1));
381  oc.addSynonyme("ramps.max-ramp-speed", "ramp-guess.max-ramp-speed", true);
382  oc.addDescription("ramps.max-ramp-speed", "Ramp Guessing", "Treat edges with speed > FLOAT as no ramps");
383 
384  oc.doRegister("ramps.min-highway-speed", new Option_Float((SUMOReal)(79 / 3.6)));
385  oc.addSynonyme("ramps.min-highway-speed", "ramp-guess.min-highway-speed", true);
386  oc.addDescription("ramps.min-highway-speed", "Ramp Guessing", "Treat edges with speed < FLOAT as no highways");
387 
388  oc.doRegister("ramps.ramp-length", new Option_Float(100));
389  oc.addSynonyme("ramps.ramp-length", "ramp-guess.ramp-length", true);
390  oc.addDescription("ramps.ramp-length", "Ramp Guessing", "Use FLOAT as ramp-length");
391 
392  oc.doRegister("ramps.set", new Option_String());
393  oc.addSynonyme("ramps.set", "ramp-guess.explicite", true);
394  oc.addDescription("ramps.set", "Ramp Guessing", "Tries to handle the given edges as ramps");
395 
396  oc.doRegister("ramps.unset", new Option_String());
397  oc.addDescription("ramps.unset", "Ramp Guessing", "Do not consider the given edges as ramps");
398 
399  oc.doRegister("ramps.no-split", new Option_Bool(false));
400  oc.addSynonyme("ramps.no-split", "ramp-guess.no-split", true);
401  oc.addDescription("ramps.no-split", "Ramp Guessing", "Avoids edge splitting");
402  }
403 }
404 
405 
406 bool
409  bool ok = true;
410  //
411  if (!oc.isDefault("tls-guess.joining")) {
412  WRITE_WARNING("'--tls-guess.joining' was joined with '--tls.join'.\n Please use '--tls.join' in future only.");
413  if (!oc.isSet("tls.join")) {
414  oc.set("tls.join", "true");
415  }
416  }
417  if (!SUMOXMLDefinitions::TrafficLightTypes.hasString(oc.getString("tls.default-type"))) {
418  WRITE_ERROR("unsupported value '" + oc.getString("tls.default-type") + "' for option '--tls.default-type'");
419  ok = false;
420  }
421  if (oc.isSet("keep-edges.in-boundary") && oc.isSet("keep-edges.in-geo-boundary")) {
422  WRITE_ERROR("only one of the options 'keep-edges.in-boundary' or 'keep-edges.in-geo-boundary' may be given");
423  ok = false;
424  }
425  if (oc.getBool("no-internal-links") && oc.getBool("crossings.guess")) {
426  WRITE_ERROR("only one of the options 'no-internal-links' or 'crossings.guess' may be given");
427  ok = false;
428  }
429  if (!oc.isDefault("tls.green.time") && !oc.isDefault("tls.cycle.time")) {
430  WRITE_ERROR("only one of the options 'tls.green.time' or 'tls.cycle.time' may be given");
431  ok = false;
432  }
433  if (oc.getInt("junctions.internal-link-detail") < 2) {
434  WRITE_ERROR("junctions.internal-link-detail must >= 2");
435  ok = false;
436  }
437  return ok;
438 }
439 
440 
441 /****************************************************************************/
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
Definition: OptionsCont.cpp:86
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
Definition: NBFrame.cpp:407
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
#define WRITE_WARNING(msg)
Definition: MsgHandler.h:200
static OptionsCont & getOptions()
Retrieves the options.
Definition: OptionsCont.cpp:69
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
static StringBijection< TrafficLightType > TrafficLightTypes
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
#define WRITE_ERROR(msg)
Definition: MsgHandler.h:205
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
An integer-option.
Definition: Option.h:309
A storage for options typed value containers)
Definition: OptionsCont.h:108
static void fillOptions(bool forNetgen)
Inserts options used by the network converter.
Definition: NBFrame.cpp:61
#define SUMOReal
Definition: config.h:214
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.