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. |
Private Member Functions | |
NIImporter_RobocupRescue & | operator= (const NIImporter_RobocupRescue &s) |
Invalidated assignment operator. |
Importer for networks stored in robocup rescue league format.
Definition at line 55 of file NIImporter_RobocupRescue.h.
|
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.
|
protected |
Destructor.
Definition at line 105 of file NIImporter_RobocupRescue.cpp.
|
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(), 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 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().
|
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.
|
private |
Invalidated assignment operator.
|
protected |
The edge container to fill.
Definition at line 99 of file NIImporter_RobocupRescue.h.
Referenced by loadEdges().
|
protected |
The node container to fill.
Definition at line 96 of file NIImporter_RobocupRescue.h.
Referenced by loadEdges(), and loadNodes().