
Named configuration file as well as given on the command line, the value In addition to a configuration file, further command line parameter canĪlso be given on the command line. Sumo-gui can only read simulation configurationsĪll conventions for configuration extensions can be found on the page on It is highly recommended to follow thisĬonvention. Naming Conventions for Configuration Files #ĭepending on the targeted application, the configuration files haveĭifferent extensions. Options on the command line it is possible to leave out the "-c" as

This means that instead of the parameters, we only give the name of theĬonfiguration file using the option -configuration-file or -c. The according sumo execution call - working with bothĬonfiguration versions - would be: sumo.exe -c test.sumocfg "test.sumocfg", see below) would look like: ĭocumentation purposes and no functional meaning.Ī less verbose but equivalent version would look like: "no", or "0" for deactivating the option (case does not matter here).įor the example above, the configuration file (let's save it under "true", "on", "yes", "1", or "x" for the activation and "false", "off", For the boolean options the value should be either The option -net-file given on the command line would becomeĬonfiguration file. The options are written asĮlement names, with the wanted value being stored in the attribute Start the application with only this configuration file given.Ī configuration file is an XML-file that has a root element namedĬonfiguration. Parameter you want to start the application with. You can set up a configuration file which contains all the Configuration Files #īecause the list of options may get very long, configuration files were Lists of other value types, as integers or floating point numbers. Single file, the files must be divided using ','. That the decimal point in a float is encoded using a dot (".").Ī special case of value types are lists, for example the list ofĪdditional files to load into a simulation. The application answers with an error message on startup. The case, a string or something else is given, this is recognized and The SUMO applications know what kind of a value they expect to be set.įor example, netgenerate allows you to set theĭefault number of lanes, which of course must be an integer value. Not all abbreviations have the same meaning across the applications from the SUMO-suite. Please note that an abbreviation is indicated using a single '-'. The following has the same effect as the two examples Some often used options can be abbreviated. It is also possible to use a '=' instead of the whitespace: -net= After a whitespace the option's value must be The '-' in front indicates that the option's long name is following ForĮxample, if one wants the simulation to load a certain road network, Line consists of two parts - the option name and the option's value.

Setting an option with an argument on the command There are two kinds of options: boolean options which do not require anĪrgument and are set to true if the option is present (but accept usualīoolean values like "true" and "false" as argument) and options which Each application's options are described within Normally, an application needs at least two parameter - an input fileĪnd an output file - but almost always more parameter are used for aįine-grained control.

Processed or generated, or which define the application's behavior. License EPL-2.0: Eclipse Public License Version 2 Įach application has a set of options which define which files shall be Has been given, the application does not know what to do and prints onlyĪn information about itself: Eclipse SUMO netgenerate Version 1.11.0īuild features: Linux-4.1.39-56-default Proj GDAL GUIĬopyright (C) 2001-2020 German Aerospace Center (DLR) and others Their name from the command line for example Using SUMO Applications from the Command Line # The following presents some peculiarities of the SUMO-suiteĪpplications. Know what a "command line" is, we refer you to the page about basic computer skills. Most of the applications from the SUMO package are command line tools.Ĭurrently, only sumo-gui and netedit are not.
