Eclipse SUMO - Simulation of Urban MObility
od2trips_main.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // Main for OD2TRIPS
19 /****************************************************************************/
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #ifdef HAVE_VERSION_H
28 #include <version.h>
29 #endif
30 
31 #include <iostream>
32 #include <algorithm>
33 #include <cmath>
34 #include <cstdlib>
35 #include <string>
36 #include <utils/options/Option.h>
43 #include <utils/common/ToString.h>
44 #include <utils/xml/XMLSubSys.h>
46 #include <od/ODDistrictCont.h>
47 #include <od/ODDistrictHandler.h>
48 #include <od/ODMatrix.h>
50 #include <utils/common/SUMOTime.h>
56 
57 
58 // ===========================================================================
59 // functions
60 // ===========================================================================
61 void
64  oc.addCallExample("-c <CONFIGURATION>", "run with configuration file");
65 
66  // insert options sub-topics
67  SystemFrame::addConfigurationOptions(oc); // fill this subtopic, too
68  oc.addOptionSubTopic("Input");
69  oc.addOptionSubTopic("Output");
70  oc.addOptionSubTopic("Time");
71  oc.addOptionSubTopic("Processing");
72  oc.addOptionSubTopic("Defaults");
73  SystemFrame::addReportOptions(oc); // fill this subtopic, too
74 
75 
76  // register the file input options
77  oc.doRegister("taz-files", 'n', new Option_FileName());
78  oc.addSynonyme("taz-files", "taz");
79  oc.addSynonyme("taz-files", "net-file");
80  oc.addSynonyme("taz-files", "net");
81  oc.addDescription("taz-files", "Input", "Loads TAZ (districts; also from networks) from FILE(s)");
82 
83  oc.doRegister("od-matrix-files", 'd', new Option_FileName());
84  oc.addSynonyme("od-matrix-files", "od-files");
85  oc.addSynonyme("od-matrix-files", "od");
86  oc.addDescription("od-matrix-files", "Input", "Loads O/D-files from FILE(s)");
87 
88  oc.doRegister("od-amitran-files", new Option_FileName());
89  oc.addSynonyme("od-amitran-files", "amitran-files");
90  oc.addSynonyme("od-amitran-files", "amitran");
91  oc.addDescription("od-amitran-files", "Input", "Loads O/D-matrix in Amitran format from FILE(s)");
92 
93 
94  // register the file output options
95  oc.doRegister("output-file", 'o', new Option_FileName());
96  oc.addSynonyme("output-file", "output", true);
97  oc.addDescription("output-file", "Output", "Writes trip definitions into FILE");
98 
99  oc.doRegister("flow-output", new Option_FileName());
100  oc.addDescription("flow-output", "Output", "Writes flow definitions into FILE");
101 
102  oc.doRegister("flow-output.probability", new Option_Bool(false));
103  oc.addDescription("flow-output.probability", "Output", "Writes probabilistic flow instead of evenly spaced flow");
104 
105  oc.doRegister("pedestrians", new Option_Bool(false));
106  oc.addDescription("pedestrians", "Output", "Writes pedestrians instead of vehicles");
107 
108  oc.doRegister("persontrips", new Option_Bool(false));
109  oc.addDescription("persontrips", "Output", "Writes persontrips instead of vehicles");
110 
111  oc.doRegister("ignore-vehicle-type", new Option_Bool(false));
112  oc.addSynonyme("ignore-vehicle-type", "no-vtype", true);
113  oc.addDescription("ignore-vehicle-type", "Output", "Does not save vtype information");
114 
115 
116  // register the time settings
117  oc.doRegister("begin", 'b', new Option_String("0", "TIME"));
118  oc.addDescription("begin", "Time", "Defines the begin time; Previous trips will be discarded");
119 
120  oc.doRegister("end", 'e', new Option_String(SUMOTIME_MAXSTRING, "TIME"));
121  oc.addDescription("end", "Time", "Defines the end time; Later trips will be discarded; Defaults to the maximum time that SUMO can represent");
122 
123 
124  // register the data processing options
125  oc.doRegister("scale", 's', new Option_Float(1));
126  oc.addDescription("scale", "Processing", "Scales the loaded flows by FLOAT");
127 
128  oc.doRegister("spread.uniform", new Option_Bool(false));
129  oc.addDescription("spread.uniform", "Processing", "Spreads trips uniformly over each time period");
130 
131  oc.doRegister("different-source-sink", new Option_Bool(false));
132  oc.addDescription("different-source-sink", "Processing", "Always choose source and sink edge which are not identical");
133 
134  oc.doRegister("vtype", new Option_String(""));
135  oc.addDescription("vtype", "Processing", "Defines the name of the vehicle type to use");
136 
137  oc.doRegister("prefix", new Option_String(""));
138  oc.addDescription("prefix", "Processing", "Defines the prefix for vehicle names");
139 
140  oc.doRegister("timeline", new Option_StringVector());
141  oc.addDescription("timeline", "Processing", "Uses STR[] as a timeline definition");
142 
143  oc.doRegister("timeline.day-in-hours", new Option_Bool(false));
144  oc.addDescription("timeline.day-in-hours", "Processing", "Uses STR as a 24h-timeline definition");
145 
146  oc.doRegister("ignore-errors", new Option_Bool(false)); // !!! describe, document
147  oc.addSynonyme("ignore-errors", "dismiss-loading-errors", true);
148  oc.addDescription("ignore-errors", "Report", "Continue on broken input");
149 
150  oc.doRegister("no-step-log", new Option_Bool(false));
151  oc.addDescription("no-step-log", "Processing", "Disable console output of current time step");
152 
153 
154  // register defaults options
155  oc.doRegister("departlane", new Option_String("free"));
156  oc.addDescription("departlane", "Defaults", "Assigns a default depart lane");
157 
158  oc.doRegister("departpos", new Option_String());
159  oc.addDescription("departpos", "Defaults", "Assigns a default depart position");
160 
161  oc.doRegister("departspeed", new Option_String("max"));
162  oc.addDescription("departspeed", "Defaults", "Assigns a default depart speed");
163 
164  oc.doRegister("arrivallane", new Option_String());
165  oc.addDescription("arrivallane", "Defaults", "Assigns a default arrival lane");
166 
167  oc.doRegister("arrivalpos", new Option_String());
168  oc.addDescription("arrivalpos", "Defaults", "Assigns a default arrival position");
169 
170  oc.doRegister("arrivalspeed", new Option_String());
171  oc.addDescription("arrivalspeed", "Defaults", "Assigns a default arrival speed");
172 
173  // add rand options
175 }
176 
177 bool
180  bool ok = true;
181  if (!oc.isSet("taz-files")) {
182  WRITE_ERROR("No TAZ input file (-n) specified.");
183  ok = false;
184  }
185  if (!oc.isSet("od-matrix-files") && !oc.isSet("od-amitran-files")) {
186  WRITE_ERROR("No input specified.");
187  ok = false;
188  }
189  if (!oc.isSet("output-file") && !oc.isSet("flow-output")) {
190  WRITE_ERROR("No trip table output file (-o) or flow-output is specified.");
191  ok = false;
192  }
193  if (oc.getBool("pedestrians") && oc.getBool("persontrips")) {
194  WRITE_ERROR("Only one of the the options 'pedestrians' and 'persontrips' may be set.");
195  ok = false;
196  }
197  //
199  std::string error;
200  if (oc.isSet("departlane") && !SUMOVehicleParameter::parseDepartLane(oc.getString("departlane"), "option", "departlane", p.departLane, p.departLaneProcedure, error)) {
201  WRITE_ERROR(error);
202  ok = false;
203  }
204  if (oc.isSet("departpos") && !SUMOVehicleParameter::parseDepartPos(oc.getString("departpos"), "option", "departpos", p.departPos, p.departPosProcedure, error)) {
205  WRITE_ERROR(error);
206  ok = false;
207  }
208  if (oc.isSet("departspeed") && !SUMOVehicleParameter::parseDepartSpeed(oc.getString("departspeed"), "option", "departspeed", p.departSpeed, p.departSpeedProcedure, error)) {
209  WRITE_ERROR(error);
210  ok = false;
211  }
212  if (oc.isSet("arrivallane") && !SUMOVehicleParameter::parseArrivalLane(oc.getString("arrivallane"), "option", "arrivallane", p.arrivalLane, p.arrivalLaneProcedure, error)) {
213  WRITE_ERROR(error);
214  ok = false;
215  }
216  if (oc.isSet("arrivalpos") && !SUMOVehicleParameter::parseArrivalPos(oc.getString("arrivalpos"), "option", "arrivalpos", p.arrivalPos, p.arrivalPosProcedure, error)) {
217  WRITE_ERROR(error);
218  ok = false;
219  }
220  if (oc.isSet("arrivalspeed") && !SUMOVehicleParameter::parseArrivalSpeed(oc.getString("arrivalspeed"), "option", "arrivalspeed", p.arrivalSpeed, p.arrivalSpeedProcedure, error)) {
221  WRITE_ERROR(error);
222  ok = false;
223  }
225  return ok;
226 }
227 
228 
229 
230 
231 /* -------------------------------------------------------------------------
232  * main
233  * ----------------------------------------------------------------------- */
234 int
235 main(int argc, char** argv) {
237  // give some application descriptions
238  oc.setApplicationDescription("Importer of O/D-matrices for the microscopic, multi-modal traffic simulation SUMO.");
239  oc.setApplicationName("od2trips", "Eclipse SUMO od2trips Version " VERSION_STRING);
240  int ret = 0;
241  try {
242  // initialise subsystems
243  XMLSubSys::init();
244  fillOptions();
245  OptionsIO::setArgs(argc, argv);
247  if (oc.processMetaOptions(argc < 2)) {
249  return 0;
250  }
251  XMLSubSys::setValidation(oc.getString("xml-validation"), oc.getString("xml-validation.net"));
253  if (!checkOptions()) {
254  throw ProcessError();
255  }
257  // load the districts
258  // check whether the user gave a net filename
259  if (!oc.isSet("taz-files")) {
260  throw ProcessError("You must supply a TAZ, network or districts file ('-n').");
261  }
262  // get the file name and set it
263  ODDistrictCont districts;
264  districts.loadDistricts(oc.getStringVector("taz-files"));
265  if (districts.size() == 0) {
266  throw ProcessError("No districts loaded.");
267  }
268  // load the matrix
269  ODMatrix matrix(districts);
270  matrix.loadMatrix(oc);
271  if (matrix.getNumLoaded() == 0) {
272  throw ProcessError("No vehicles loaded.");
273  }
274  if (MsgHandler::getErrorInstance()->wasInformed() && !oc.getBool("ignore-errors")) {
275  throw ProcessError("Loading failed.");
276  }
277  WRITE_MESSAGE(toString(matrix.getNumLoaded()) + " vehicles loaded.");
278  // apply a curve if wished
279  if (oc.isSet("timeline")) {
280  matrix.applyCurve(matrix.parseTimeLine(oc.getStringVector("timeline"), oc.getBool("timeline.day-in-hours")));
281  }
282  // write
283  bool haveOutput = false;
284  if (OutputDevice::createDeviceByOption("output-file", "routes", "routes_file.xsd")) {
285  matrix.write(string2time(oc.getString("begin")), string2time(oc.getString("end")),
286  OutputDevice::getDeviceByOption("output-file"),
287  oc.getBool("spread.uniform"), oc.getBool("different-source-sink"),
288  oc.getBool("ignore-vehicle-type"),
289  oc.getString("prefix"), !oc.getBool("no-step-log"),
290  oc.getBool("pedestrians"),
291  oc.getBool("persontrips"));
292  haveOutput = true;
293  }
294  if (OutputDevice::createDeviceByOption("flow-output", "routes", "routes_file.xsd")) {
295  matrix.writeFlows(string2time(oc.getString("begin")), string2time(oc.getString("end")),
296  OutputDevice::getDeviceByOption("flow-output"),
297  oc.getBool("ignore-vehicle-type"), oc.getString("prefix"),
298  oc.getBool("flow-output.probability"), oc.getBool("pedestrians"),
299  oc.getBool("persontrips"));
300  haveOutput = true;
301  }
302  if (!haveOutput) {
303  throw ProcessError("No output file given.");
304  }
305  WRITE_MESSAGE(toString(matrix.getNumDiscarded()) + " vehicles discarded.");
306  WRITE_MESSAGE(toString(matrix.getNumWritten()) + " vehicles written.");
307  } catch (const ProcessError& e) {
308  if (std::string(e.what()) != std::string("Process Error") && std::string(e.what()) != std::string("")) {
309  WRITE_ERROR(e.what());
310  }
311  MsgHandler::getErrorInstance()->inform("Quitting (on error).", false);
312  ret = 1;
313 #ifndef _DEBUG
314  } catch (const std::exception& e) {
315  if (std::string(e.what()) != std::string("")) {
316  WRITE_ERROR(e.what());
317  }
318  MsgHandler::getErrorInstance()->inform("Quitting (on error).", false);
319  ret = 1;
320  } catch (...) {
321  MsgHandler::getErrorInstance()->inform("Quitting (on unknown error).", false);
322  ret = 1;
323 #endif
324  }
326  if (ret == 0) {
327  std::cout << "Success." << std::endl;
328  }
329  return ret;
330 }
331 
332 
333 
334 /****************************************************************************/
335 
OptionsCont::isSet
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
Definition: OptionsCont.cpp:135
OutputDevice::createDeviceByOption
static bool createDeviceByOption(const std::string &optionName, const std::string &rootElement="", const std::string &schemaFile="")
Creates the device using the output definition stored in the named option.
Definition: OutputDevice.cpp:101
ODMatrix::parseTimeLine
Distribution_Points parseTimeLine(const std::vector< std::string > &def, bool timelineDayInHours)
split the given timeline
Definition: ODMatrix.cpp:668
OptionsCont::processMetaOptions
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
Definition: OptionsCont.cpp:557
ToString.h
SystemFrame::addConfigurationOptions
static void addConfigurationOptions(OptionsCont &oc)
Adds configuration options to the given container.
Definition: SystemFrame.cpp:39
LineReader.h
ODMatrix::write
void write(SUMOTime begin, const SUMOTime end, OutputDevice &dev, const bool uniform, const bool differSourceSink, const bool noVtype, const std::string &prefix, const bool stepLog, bool pedestrians, bool persontrips)
Writes the vehicles stored in the matrix assigning the sources and sinks.
Definition: ODMatrix.cpp:212
SystemFrame::close
static void close()
Closes all of an applications subsystems.
Definition: SystemFrame.cpp:133
MsgHandler::initOutputOptions
static void initOutputOptions()
init output options
Definition: MsgHandler.cpp:216
SUMOTime.h
SUMOVehicleParameter::arrivalSpeedProcedure
ArrivalSpeedDefinition arrivalSpeedProcedure
Information how the vehicle's end speed shall be chosen.
Definition: SUMOVehicleParameter.h:537
Option_Bool
Definition: Option.h:538
main
int main(int argc, char **argv)
Definition: od2trips_main.cpp:235
OptionsCont.h
SUMOVehicleParameter::departSpeed
double departSpeed
(optional) The initial speed of the vehicle
Definition: SUMOVehicleParameter.h:506
SUMOVehicleParameter::departPosProcedure
DepartPosDefinition departPosProcedure
Information how the vehicle shall choose the departure position.
Definition: SUMOVehicleParameter.h:497
MsgHandler.h
SUMOVehicleParameter::parseDepartSpeed
static bool parseDepartSpeed(const std::string &val, const std::string &element, const std::string &id, double &speed, DepartSpeedDefinition &dsd, std::string &error)
Validates a given departSpeed value.
Definition: SUMOVehicleParameter.cpp:384
OptionsCont::getString
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
Definition: OptionsCont.cpp:201
SUMOVehicleParameter::parseDepartLane
static bool parseDepartLane(const std::string &val, const std::string &element, const std::string &id, int &lane, DepartLaneDefinition &dld, std::string &error)
Validates a given departLane value.
Definition: SUMOVehicleParameter.cpp:275
FileHelpers.h
MsgHandler::inform
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
Definition: MsgHandler.cpp:118
OptionsCont::getBool
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
Definition: OptionsCont.cpp:222
OptionsCont::getOptions
static OptionsCont & getOptions()
Retrieves the options.
Definition: OptionsCont.cpp:57
ODMatrix.h
SUMOVehicleParameter
Structure representing possible vehicle parameter.
Definition: SUMOVehicleParameter.h:297
SUMOVehicleParameter::parseArrivalPos
static bool parseArrivalPos(const std::string &val, const std::string &element, const std::string &id, double &pos, ArrivalPosDefinition &apd, std::string &error)
Validates a given arrivalPos value.
Definition: SUMOVehicleParameter.cpp:448
ODMatrix::loadMatrix
void loadMatrix(OptionsCont &oc)
read a matrix in one of several formats
Definition: ODMatrix.cpp:605
SUMOVehicleParameter.h
OptionsCont::getStringVector
const StringVector & getStringVector(const std::string &name) const
Returns the list of string-value of the named option (only for Option_StringVector)
Definition: OptionsCont.cpp:235
SystemFrame::addReportOptions
static void addReportOptions(OptionsCont &oc)
Adds reporting options to the given container.
Definition: SystemFrame.cpp:64
ODDistrictCont::loadDistricts
void loadDistricts(std::vector< std::string > files)
load districts from files
Definition: ODDistrictCont.cpp:69
OptionsCont::addDescription
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
Definition: OptionsCont.cpp:469
NamedObjectCont::size
int size() const
Returns the number of stored items within the container.
Definition: NamedObjectCont.h:116
SUMOVehicleParameter::arrivalLaneProcedure
ArrivalLaneDefinition arrivalLaneProcedure
Information how the vehicle shall choose the lane to arrive on.
Definition: SUMOVehicleParameter.h:519
OptionsCont::setApplicationName
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.
Definition: OptionsCont.cpp:481
ODDistrictHandler.h
SystemFrame.h
XMLSubSys::setValidation
static void setValidation(const std::string &validationScheme, const std::string &netValidationScheme)
Enables or disables validation.
Definition: XMLSubSys.cpp:58
OptionsCont::addSynonyme
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
Definition: OptionsCont.cpp:95
SUMOVehicleParameter::parseArrivalLane
static bool parseArrivalLane(const std::string &val, const std::string &element, const std::string &id, int &lane, ArrivalLaneDefinition &ald, std::string &error)
Validates a given arrivalLane value.
Definition: SUMOVehicleParameter.cpp:419
checkOptions
bool checkOptions()
Definition: od2trips_main.cpp:178
OutputDevice.h
SUMOVehicleParameter::arrivalPos
double arrivalPos
(optional) The position the vehicle shall arrive on
Definition: SUMOVehicleParameter.h:522
OptionsCont::doRegister
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
Definition: OptionsCont.cpp:74
ProcessError
Definition: UtilExceptions.h:39
SUMOVehicleParameter::arrivalPosProcedure
ArrivalPosDefinition arrivalPosProcedure
Information how the vehicle shall choose the arrival position.
Definition: SUMOVehicleParameter.h:525
Option_String
Definition: Option.h:399
UtilExceptions.h
SUMOVehicleParameter::parseArrivalSpeed
static bool parseArrivalSpeed(const std::string &val, const std::string &element, const std::string &id, double &speed, ArrivalSpeedDefinition &asd, std::string &error)
Validates a given arrivalSpeed value.
Definition: SUMOVehicleParameter.cpp:508
XMLSubSys::init
static void init()
Initialises the xml-subsystem.
Definition: XMLSubSys.cpp:47
OptionsCont
A storage for options typed value containers)
Definition: OptionsCont.h:89
SUMOVehicleParameter::arrivalLane
int arrivalLane
Definition: SUMOVehicleParameter.h:516
string2time
SUMOTime string2time(const std::string &r)
Definition: SUMOTime.cpp:44
ODMatrix
An O/D (origin/destination) matrix.
Definition: ODMatrix.h:69
OptionsCont::addOptionSubTopic
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
Definition: OptionsCont.cpp:519
RandHelper::initRandGlobal
static void initRandGlobal(std::mt19937 *which=0)
Reads the given random number options and initialises the random number generator in accordance.
Definition: RandHelper.cpp:77
ODDistrictCont
A container for districts.
Definition: ODDistrictCont.h:41
SUMOVehicleParameter::departLane
int departLane
(optional) The lane the vehicle shall depart from (index in edge)
Definition: SUMOVehicleParameter.h:488
OptionsIO::getOptions
static void getOptions(const bool commandLineOnly=false)
Parses the command line arguments and loads the configuration.
Definition: OptionsIO.cpp:75
OptionsCont::setApplicationDescription
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
Definition: OptionsCont.cpp:489
toString
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Definition: ToString.h:47
StringUtils.h
SUMOVehicleParameter::departLaneProcedure
DepartLaneDefinition departLaneProcedure
Information how the vehicle shall choose the lane to depart from.
Definition: SUMOVehicleParameter.h:491
ODMatrix::getNumLoaded
double getNumLoaded() const
Returns the number of loaded vehicles.
Definition: ODMatrix.cpp:558
Option_StringVector
Definition: Option.h:720
ODDistrictCont.h
Option.h
Option_Float
Definition: Option.h:470
OptionsCont::addCallExample
void addCallExample(const std::string &example, const std::string &desc)
Add a call example.
Definition: OptionsCont.cpp:495
ODMatrix::getNumWritten
double getNumWritten() const
Returns the number of written vehicles.
Definition: ODMatrix.cpp:564
SUMOTIME_MAXSTRING
#define SUMOTIME_MAXSTRING
Definition: SUMOTime.h:37
OptionsIO::setArgs
static void setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
Definition: OptionsIO.cpp:54
fillOptions
void fillOptions()
Definition: od2trips_main.cpp:62
ODMatrix::getNumDiscarded
double getNumDiscarded() const
Returns the number of discarded vehicles.
Definition: ODMatrix.cpp:570
config.h
Option_FileName
Definition: Option.h:783
ODMatrix::writeFlows
void writeFlows(const SUMOTime begin, const SUMOTime end, OutputDevice &dev, const bool noVtype, const std::string &prefix, bool asProbability=false, bool pedestrians=false, bool persontrips=false)
Writes the flows stored in the matrix.
Definition: ODMatrix.cpp:301
RandHelper::insertRandOptions
static void insertRandOptions()
Initialises the given options container with random number options.
Definition: RandHelper.cpp:45
RandHelper.h
StringTokenizer.h
SystemFrame::checkOptions
static bool checkOptions()
checks shared options and sets StdDefs
Definition: SystemFrame.cpp:120
ODMatrix::applyCurve
void applyCurve(const Distribution_Points &ps)
Splits the stored cells dividing them on the given time line.
Definition: ODMatrix.cpp:592
SUMOVehicleParameter::parseDepartPos
static bool parseDepartPos(const std::string &val, const std::string &element, const std::string &id, double &pos, DepartPosDefinition &dpd, std::string &error)
Validates a given departPos value.
Definition: SUMOVehicleParameter.cpp:312
MsgHandler::getErrorInstance
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
Definition: MsgHandler.cpp:81
VERSION_STRING
#define VERSION_STRING
Definition: config.h:210
WRITE_ERROR
#define WRITE_ERROR(msg)
Definition: MsgHandler.h:283
OutputDevice::getDeviceByOption
static OutputDevice & getDeviceByOption(const std::string &name)
Returns the device described by the option.
Definition: OutputDevice.cpp:116
WRITE_MESSAGE
#define WRITE_MESSAGE(msg)
Definition: MsgHandler.h:277
OptionsIO.h
SUMOVehicleParameter::departPos
double departPos
(optional) The position the vehicle shall depart from
Definition: SUMOVehicleParameter.h:494
SUMOVehicleParameter::departSpeedProcedure
DepartSpeedDefinition departSpeedProcedure
Information how the vehicle's initial speed shall be chosen.
Definition: SUMOVehicleParameter.h:509
XMLSubSys.h
SUMOVehicleParameter::arrivalSpeed
double arrivalSpeed
(optional) The final speed of the vehicle (not used yet)
Definition: SUMOVehicleParameter.h:534