|
SUMO - Simulation of Urban MObility
|
Instance responsible for building networks. More...
#include <NBNetBuilder.h>
Data Structures | |
| class | by_id_sorter |
| Sorts nodes by their ids. More... | |
Public Member Functions | |
| void | applyOptions (OptionsCont &oc) |
| Initialises the storage by applying given options. | |
| void | compute (OptionsCont &oc, const std::set< std::string > &explicitTurnarounds=std::set< std::string >(), bool removeUnwishedNodes=true) |
| Performs the network building steps. | |
| NBNetBuilder () | |
| Constructor. | |
| ~NBNetBuilder () | |
| Destructor. | |
Retrieval of subcontainers | |
| NBEdgeCont & | getEdgeCont () |
| Returns the edge container. | |
| NBNodeCont & | getNodeCont () |
| Returns the node container. | |
| NBTypeCont & | getTypeCont () |
| Returns the type container. | |
| NBTrafficLightLogicCont & | getTLLogicCont () |
| Returns the traffic light logics container. | |
| NBDistrictCont & | getDistrictCont () |
| Returns the districts container. | |
| const std::vector< std::set < NBEdge * > > & | getRoundabouts () const |
| Returns the determined roundabouts. | |
| const NBJoinedEdgesMap & | getJoinedEdgesMap () const |
| Returns the joined edges map. | |
Protected Attributes | |
| NBDistrictCont | myDistrictCont |
| The used container for districts. | |
| NBEdgeCont | myEdgeCont |
| The used container for edges. | |
| NBJoinedEdgesMap | myJoinedEdges |
| Map of joined edges. | |
| NBNodeCont | myNodeCont |
| The used container for nodes. | |
| std::vector< std::set< NBEdge * > > | myRoundabouts |
| Edges marked as belonging to a roundabout (each set is a roundabout) | |
| NBTrafficLightLogicCont | myTLLCont |
| The used container for traffic light logics. | |
| NBTypeCont | myTypeCont |
| The used container for street types. | |
Private Member Functions | |
| NBNetBuilder (const NBNetBuilder &s) | |
| invalidated copy constructor | |
| NBNetBuilder & | operator= (const NBNetBuilder &s) |
| invalidated assignment operator | |
Friends | |
| class | GNENet |
Instance responsible for building networks.
The class' - and the netbuild module's - functionality is embedded within the compute() method.
Definition at line 112 of file NBNetBuilder.h.
| NBNetBuilder::NBNetBuilder | ( | ) |
Constructor.
Definition at line 64 of file NBNetBuilder.cpp.
| NBNetBuilder::~NBNetBuilder | ( | ) |
Destructor.
Definition at line 68 of file NBNetBuilder.cpp.
|
private |
invalidated copy constructor
| void NBNetBuilder::applyOptions | ( | OptionsCont & | oc | ) |
Initialises the storage by applying given options.
Options, mainly steering the acceptance of edges, are parsed and the according internal variables are set.
| [in] | oc | The options container to read options from |
| ProcessError | If something fails (message is included) |
Definition at line 72 of file NBNetBuilder.cpp.
References NBTrafficLightLogicCont::applyOptions(), NBEdgeCont::applyOptions(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getString(), OptionsCont::isSet(), myEdgeCont, myTLLCont, myTypeCont, OptionsCont::set(), and NBTypeCont::setDefaults().
Referenced by main().
| void NBNetBuilder::compute | ( | OptionsCont & | oc, |
| const std::set< std::string > & | explicitTurnarounds = std::set<std::string>(), |
||
| bool | removeUnwishedNodes = true |
||
| ) |
Performs the network building steps.
| [in] | oc | Container that contains options for building |
| [in] | explicitTurnarounds | List of edge ids for which turn-arounds should be added (used by NETEDIT) |
| [in] | removeUnwishedNodes | Whether to remove orphan nodes (and optionally convert some nodes to geometry) |
| ProcessError | (recheck) |
Definition at line 102 of file NBNetBuilder.cpp.
References NBNodeCont::addJoinExclusion(), NBEdgeCont::appendTurnarounds(), NBDistrictCont::begin(), NBNodeCont::begin(), NBEdgeCont::begin(), NBEdgeCont::computeEdge2Edges(), NBEdgePriorityComputer::computeEdgePriorities(), NBEdgeCont::computeEdgeShapes(), GeoConvHelper::computeFinal(), NBEdgeCont::computeLanes2Edges(), NBNodeCont::computeLanes2Lanes(), NBTrafficLightLogicCont::computeLogics(), NBNodeCont::computeLogics(), NBNodeCont::computeNodeShapes(), NBNodeTypeComputer::computeNodeTypes(), NBTurningDirectionsComputer::computeTurnDirections(), NBDistrictCont::end(), NBNodeCont::end(), NBEdgeCont::end(), OptionsCont::exists(), OptionsCont::getBool(), GeoConvHelper::getConvBoundary(), OptionsCont::getFloat(), GeoConvHelper::getOffsetBase(), GeoConvHelper::getOrigBoundary(), GeoConvHelper::getProcessing(), OptionsCont::getStringVector(), NBNodeCont::guessRamps(), NBEdgeCont::guessRoundabouts(), NBNodeCont::guessTLs(), NBJoinedEdgesMap::init(), OptionsCont::isDefault(), OptionsCont::isSet(), NBNodeCont::joinJunctions(), NBNodeCont::joinLoadedClusters(), NBNodeCont::joinSimilarEdges(), NBNodeCont::joinTLS(), GeoConvHelper::moveConvertedBy(), myDistrictCont, myEdgeCont, myJoinedEdges, myNodeCont, myRoundabouts, myTLLCont, NBNodeCont::printBuiltNodesStatistics(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, NBEdgeCont::recheckLanes(), NBEdgeCont::recomputeLaneShapes(), NBNodeCont::removeIsolatedRoads(), NBNodeCont::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBRequest::reportWarnings(), NBNodeCont::retrieve(), NBNodeCont::setAsTLControlled(), NBTrafficLightLogicCont::setTLControllingInformation(), NBNodesEdgesSorter::sortNodesEdges(), NBEdgeCont::sortOutgoingLanesConnections(), NBEdgeCont::splitGeometry(), SUMOReal, toString(), WRITE_MESSAGE, WRITE_WARNING, Boundary::xmin(), and Boundary::ymin().
Referenced by main().
|
inline |
Returns the districts container.
Definition at line 185 of file NBNetBuilder.h.
References myDistrictCont.
Referenced by NIImporter_VISUM::buildDistrictNode(), NILoader::load(), NILoader::loadXML(), NIImporter_VISUM::parse_Connectors(), NIImporter_VISUM::parse_Districts(), NIImporter_VISUM::parse_Lanes(), NIImporter_Vissim::postLoadBuild(), and NWWriter_SUMO::writeNetwork().
|
inline |
Returns the edge container.
Definition at line 153 of file NBNetBuilder.h.
References myEdgeCont.
Referenced by NIImporter_SUMO::_loadNetwork(), NIImporter_VISUM::getReversedContinuating(), NIImporter_OpenStreetMap::insertEdge(), NILoader::load(), NIImporter_OpenStreetMap::load(), NIImporter_RobocupRescue::loadNetwork(), NIImporter_ArcView::loadNetwork(), NIImporter_DlrNavteq::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), NILoader::loadXML(), main(), NIImporter_VISUM::parse_Connectors(), NIImporter_VISUM::parse_Edges(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIImporter_Vissim::postLoadBuild(), NGNet::toNB(), NWWriter_OpenDrive::writeNetwork(), NWWriter_MATSim::writeNetwork(), NWWriter_XML::writeNetwork(), and NWWriter_SUMO::writeNetwork().
|
inline |
Returns the joined edges map.
Definition at line 201 of file NBNetBuilder.h.
References myJoinedEdges.
Referenced by NWFrame::writeNetwork().
|
inline |
Returns the node container.
Definition at line 161 of file NBNetBuilder.h.
References myNodeCont.
Referenced by NIImporter_VISUM::buildDistrictNode(), NGEdge::buildNBEdge(), NIImporter_OpenStreetMap::insertEdge(), NILoader::load(), NIImporter_OpenStreetMap::load(), NIImporter_RobocupRescue::loadNetwork(), NIImporter_ArcView::loadNetwork(), NIImporter_DlrNavteq::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), NILoader::loadXML(), main(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_Nodes(), NIImporter_VISUM::parse_NodesToTrafficLights(), NIImporter_Vissim::postLoadBuild(), NGNet::toNB(), NWWriter_OpenDrive::writeNetwork(), NWWriter_MATSim::writeNetwork(), NWWriter_XML::writeNetwork(), and NWWriter_SUMO::writeNetwork().
|
inline |
Returns the determined roundabouts.
Definition at line 193 of file NBNetBuilder.h.
References myRoundabouts.
Referenced by NWWriter_SUMO::writeNetwork().
|
inline |
Returns the traffic light logics container.
Definition at line 177 of file NBNetBuilder.h.
References myTLLCont.
Referenced by NGNode::buildNBNode(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::load(), NIImporter_VISUM::load(), NIImporter_DlrNavteq::loadNetwork(), NILoader::loadXML(), NIImporter_Vissim::postLoadBuild(), NWWriter_XML::writeNetwork(), and NWWriter_SUMO::writeNetwork().
|
inline |
Returns the type container.
Definition at line 169 of file NBNetBuilder.h.
References myTypeCont.
Referenced by NGEdge::buildNBEdge(), NIImporter_OpenStreetMap::insertEdge(), NILoader::load(), NIImporter_OpenStreetMap::load(), NIImporter_ArcView::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), NILoader::loadXML(), NIImporter_VISUM::parse_Edges(), NIImporter_VISUM::parse_Types(), and NGNet::toNB().
|
private |
invalidated assignment operator
|
friend |
Definition at line 113 of file NBNetBuilder.h.
|
protected |
The used container for districts.
Definition at line 237 of file NBNetBuilder.h.
Referenced by compute(), and getDistrictCont().
|
protected |
The used container for edges.
Definition at line 231 of file NBNetBuilder.h.
Referenced by applyOptions(), compute(), and getEdgeCont().
|
protected |
Map of joined edges.
Definition at line 243 of file NBNetBuilder.h.
Referenced by compute(), and getJoinedEdgesMap().
|
protected |
The used container for nodes.
Definition at line 225 of file NBNetBuilder.h.
Referenced by compute(), and getNodeCont().
|
protected |
Edges marked as belonging to a roundabout (each set is a roundabout)
Definition at line 240 of file NBNetBuilder.h.
Referenced by compute(), and getRoundabouts().
|
protected |
The used container for traffic light logics.
Definition at line 234 of file NBNetBuilder.h.
Referenced by applyOptions(), compute(), and getTLLogicCont().
|
protected |
The used container for street types.
Definition at line 228 of file NBNetBuilder.h.
Referenced by applyOptions(), and getTypeCont().