SUMO - Simulation of Urban MObility
|
Importer for networks stored in robocup rescue league format. More...
#include <NIImporter_RobocupRescue.h>
Static Public Member Functions | |
static void | loadNetwork (const OptionsCont &oc, NBNetBuilder &nb) |
Loads content of the optionally given RoboCup Rescue League files. | |
Protected Member Functions | |
void | loadEdges (const std::string &file) |
Loads edges from the given file. | |
void | loadNodes (const std::string &file) |
Loads nodes from the given file. | |
NIImporter_RobocupRescue (NBNodeCont &nc, NBEdgeCont &ec) | |
Constructor. | |
~NIImporter_RobocupRescue () | |
Destructor. | |
Protected Attributes | |
NBEdgeCont & | myEdgeCont |
The edge container to fill. | |
NBNodeCont & | myNodeCont |
The node container to fill. |
Importer for networks stored in robocup rescue league format.
Definition at line 55 of file NIImporter_RobocupRescue.h.
NIImporter_RobocupRescue::NIImporter_RobocupRescue | ( | NBNodeCont & | nc, |
NBEdgeCont & | ec | ||
) | [protected] |
Constructor.
[in] | nc | The node control to fill |
[in] | ec | The edge control to fill |
Definition at line 101 of file NIImporter_RobocupRescue.cpp.
NIImporter_RobocupRescue::~NIImporter_RobocupRescue | ( | ) | [protected] |
Destructor.
Definition at line 105 of file NIImporter_RobocupRescue.cpp.
void NIImporter_RobocupRescue::loadEdges | ( | const std::string & | file | ) | [protected] |
Loads edges from the given file.
[in] | file | The file to read edges from |
Definition at line 178 of file NIImporter_RobocupRescue.cpp.
References NBEdgeCont::insert(), LANESPREAD_CENTER, LANESPREAD_RIGHT, myEdgeCont, myNodeCont, NBNodeCont::retrieve(), SUMOReal, toString(), and WRITE_ERROR.
void NIImporter_RobocupRescue::loadNetwork | ( | const OptionsCont & | oc, |
NBNetBuilder & | nb | ||
) | [static] |
Loads content of the optionally given RoboCup Rescue League files.
If the option "robocup-dir" is set, the files contained in the folder are read.
If the option "robocup-dir" is not set, this method simply returns.
[in] | oc | The options to use |
[in] | nb | The network builder to fill |
Definition at line 65 of file NIImporter_RobocupRescue.cpp.
References FileHelpers::exists(), NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), OptionsCont::getStringVector(), OptionsCont::isSet(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, and WRITE_ERROR.
Referenced by NILoader::load().
void NIImporter_RobocupRescue::loadNodes | ( | const std::string & | file | ) | [protected] |
Loads nodes from the given file.
[in] | file | The file to read nodes from |
Definition at line 110 of file NIImporter_RobocupRescue.cpp.
References NBNodeCont::insert(), myNodeCont, SUMOReal, toString(), NILoader::transformCoordinates(), and WRITE_MESSAGE.
NBEdgeCont& NIImporter_RobocupRescue::myEdgeCont [protected] |
The edge container to fill.
Definition at line 99 of file NIImporter_RobocupRescue.h.
Referenced by loadEdges().
NBNodeCont& NIImporter_RobocupRescue::myNodeCont [protected] |
The node container to fill.
Definition at line 96 of file NIImporter_RobocupRescue.h.
Referenced by loadEdges(), and loadNodes().