![]() |
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. More... | |
Protected Member Functions | |
| void | loadEdges (const std::string &file) |
| Loads edges from the given file. More... | |
| void | loadNodes (const std::string &file) |
| Loads nodes from the given file. More... | |
| NIImporter_RobocupRescue (NBNodeCont &nc, NBEdgeCont &ec) | |
| Constructor. More... | |
| ~NIImporter_RobocupRescue () | |
| Destructor. More... | |
Protected Attributes | |
| NBEdgeCont & | myEdgeCont |
| The edge container to fill. More... | |
| NBNodeCont & | myNodeCont |
| The node container to fill. More... | |
Private Member Functions | |
| NIImporter_RobocupRescue & | operator= (const NIImporter_RobocupRescue &s) |
| Invalidated assignment operator. More... | |
Importer for networks stored in robocup rescue league format.
Definition at line 54 of file NIImporter_RobocupRescue.h.
|
protected |
Constructor.
| [in] | nc | The node control to fill |
| [in] | ec | The edge control to fill |
Definition at line 96 of file NIImporter_RobocupRescue.cpp.
|
protected |
Destructor.
Definition at line 100 of file NIImporter_RobocupRescue.cpp.
|
protected |
Loads edges from the given file.
| [in] | file | The file to read edges from |
Definition at line 173 of file NIImporter_RobocupRescue.cpp.
References NBEdgeCont::insert(), LANESPREAD_CENTER, LANESPREAD_RIGHT, myEdgeCont, myNodeCont, NBNodeCont::retrieve(), toString(), NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, and WRITE_ERROR.
|
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 60 of file NIImporter_RobocupRescue.cpp.
References NBNetBuilder::getEdgeCont(), NBNetBuilder::getNodeCont(), OptionsCont::getStringVector(), FileHelpers::isReadable(), OptionsCont::isSet(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, and WRITE_ERROR.
Referenced by NILoader::load().
|
protected |
Loads nodes from the given file.
| [in] | file | The file to read nodes from |
Definition at line 105 of file NIImporter_RobocupRescue.cpp.
References NBNodeCont::insert(), myNodeCont, toString(), NBNetBuilder::transformCoordinate(), and WRITE_MESSAGE.
|
private |
Invalidated assignment operator.
|
protected |
The edge container to fill.
Definition at line 98 of file NIImporter_RobocupRescue.h.
Referenced by loadEdges().
|
protected |
The node container to fill.
Definition at line 95 of file NIImporter_RobocupRescue.h.
Referenced by loadEdges(), and loadNodes().