Eclipse SUMO - Simulation of Urban MObility
|
A storage for available edgeTypes of edges. More...
#include <NBTypeCont.h>
Data Structures | |
struct | EdgeTypeDefinition |
edgeType definition More... | |
struct | LaneTypeDefinition |
laneType definition More... | |
Public Member Functions | |
Type-dependant Retrieval methods | |
int | getEdgeTypeNumLanes (const std::string &edgeType) const |
Returns the number of lanes for the given edgeType. | |
double | getEdgeTypeSpeed (const std::string &edgeType) const |
Returns the maximal velocity for the given edgeType [m/s]. | |
double | getEdgeTypeFriction (const std::string &edgeType) const |
Returns the default friction for the given edgeType [-]. | |
int | getEdgeTypePriority (const std::string &edgeType) const |
Returns the priority for the given edgeType. | |
bool | getEdgeTypeIsOneWay (const std::string &edgeType) const |
Returns whether edges are one-way per default for the given edgeType. | |
bool | getEdgeTypeShallBeDiscarded (const std::string &edgeType) const |
Returns the information whether edges of this edgeType shall be discarded. | |
double | getEdgeTypeWidthResolution (const std::string &edgeType) const |
Returns the resolution for interpreting edge/lane widths of the given edgeType. | |
double | getEdgeTypeMaxWidth (const std::string &edgeType) const |
Returns the maximum edge/lane widths of the given edgeType. | |
double | getEdgeTypeMinWidth (const std::string &edgeType) const |
Returns the minimum edge/lane widths of the given edgeType. | |
bool | wasSetEdgeTypeAttribute (const std::string &edgeType, const SumoXMLAttr attr) const |
Returns whether an attribute of a edgeType was set. | |
SVCPermissions | getEdgeTypePermissions (const std::string &edgeType) const |
Returns allowed vehicle classes for the given edgeType. | |
LaneSpreadFunction | getEdgeTypeSpreadType (const std::string &edgeType) const |
Returns spreadType for the given edgeType. | |
double | getEdgeTypeWidth (const std::string &edgeType) const |
Returns the lane width for the given edgeType [m]. | |
double | getEdgeTypeSidewalkWidth (const std::string &edgeType) const |
Returns the lane width for a sidewalk to be added [m]. | |
double | getEdgeTypeBikeLaneWidth (const std::string &edgeType) const |
Returns the lane width for a bike lane to be added [m]. | |
Protected Attributes | |
EdgeTypeDefinition * | myDefaultType |
The default edgeType. | |
TypesCont | myEdgeTypes |
The container of edgeTypes. | |
Private Member Functions | |
NBTypeCont (const NBTypeCont &s)=delete | |
invalid copy constructor | |
NBTypeCont & | operator= (const NBTypeCont &s)=delete |
invalid assignment operator | |
struct declaration | |
typedef std::map< std::string, EdgeTypeDefinition * > | TypesCont |
A container of edgeTypes, accessed by the string id. | |
NBTypeCont () | |
Constructor. | |
~NBTypeCont () | |
Destructor. | |
void | clearTypes () |
clear types | |
void | setEdgeTypeDefaults (int defaultNumLanes, double defaultLaneWidth, double defaultSpeed, double defaultFriction, int defaultPriority, SVCPermissions defaultPermissions, LaneSpreadFunction defaultSpreadType) |
Sets the default values. | |
void | insertEdgeType (const std::string &id, int numLanes, double maxSpeed, int prio, SVCPermissions permissions, LaneSpreadFunction spreadType, double width, bool oneWayIsDefault, double sidewalkWidth, double bikeLaneWidth, double widthResolution, double maxWidth, double minWidth) |
Adds a edgeType into the list. | |
void | insertEdgeType (const std::string &id, const EdgeTypeDefinition *edgeType) |
Adds a edgeType into the list. | |
void | insertLaneType (const std::string &edgeTypeID, int index, double maxSpeed, SVCPermissions permissions, double width, const std::set< SumoXMLAttr > &attrs) |
Adds a laneType into the list. | |
int | size () const |
Returns the number of known edgeTypes. | |
void | removeEdgeType (const std::string &id) |
Remove a edgeType from the list. | |
void | updateEdgeTypeID (const std::string &oldId, const std::string &newId) |
change edge type ID | |
TypesCont::const_iterator | begin () const |
return begin iterator | |
TypesCont::const_iterator | end () const |
return end iterator | |
bool | knows (const std::string &edgeType) const |
Returns whether the named edgeType is in the container. | |
const EdgeTypeDefinition * | getEdgeType (const std::string &name) const |
Retrieve the name or the default edgeType. | |
bool | markEdgeTypeAsToDiscard (const std::string &id) |
Marks a edgeType as to be discarded. | |
bool | markEdgeTypeAsSet (const std::string &id, const SumoXMLAttr attr) |
Marks an attribute of a edgeType as set. | |
bool | addEdgeTypeRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed) |
Adds a restriction to a edgeType. | |
bool | copyEdgeTypeRestrictionsAndAttrs (const std::string &fromId, const std::string &toId) |
Copy restrictions to a edgeType. | |
bool | markLaneTypeAsSet (const std::string &id, int index, const SumoXMLAttr attr) |
Marks an attribute of last laneType as set. | |
bool | addLaneTypeRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed) |
Adds a restriction to last laneType. | |
void | writeEdgeTypes (OutputDevice &into, const std::set< std::string > &typeIDs=std::set< std::string >()) const |
writes all EdgeTypes (and their lanes) as XML | |
A storage for available edgeTypes of edges.
NBTypeCont stores properties of edge-types of edges. Additionally, a default edgeType is stored which is used if no edgeType information is given.
This structure also contains a structure for determining node edgeTypes using edge speeds.
Definition at line 52 of file NBTypeCont.h.
typedef std::map<std::string, EdgeTypeDefinition*> NBTypeCont::TypesCont |
A container of edgeTypes, accessed by the string id.
Definition at line 162 of file NBTypeCont.h.
NBTypeCont::NBTypeCont | ( | ) |
Constructor.
Definition at line 163 of file NBTypeCont.cpp.
NBTypeCont::~NBTypeCont | ( | ) |
Destructor.
Definition at line 167 of file NBTypeCont.cpp.
References clearTypes(), and myDefaultType.
|
privatedelete |
invalid copy constructor
bool NBTypeCont::addEdgeTypeRestriction | ( | const std::string & | id, |
const SUMOVehicleClass | svc, | ||
const double | speed | ||
) |
Adds a restriction to a edgeType.
[in] | id | The id of the edgeType |
[in] | svc | The vehicle class the restriction refers to |
[in] | speed | The restricted speed |
Definition at line 331 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by NIXMLTypesHandler::myStartElement().
bool NBTypeCont::addLaneTypeRestriction | ( | const std::string & | id, |
const SUMOVehicleClass | svc, | ||
const double | speed | ||
) |
Adds a restriction to last laneType.
[in] | id | The id of the edgeType parent |
[in] | svc | The vehicle class the restriction refers to |
[in] | speed | The restricted speed |
Definition at line 366 of file NBTypeCont.cpp.
References myEdgeTypes.
NBTypeCont::TypesCont::const_iterator NBTypeCont::begin | ( | ) | const |
return begin iterator
Definition at line 291 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by NGEdge::buildNBEdge().
void NBTypeCont::clearTypes | ( | ) |
clear types
Definition at line 174 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by GNENet::saveEdgeTypes(), GNENet::saveNetwork(), and ~NBTypeCont().
bool NBTypeCont::copyEdgeTypeRestrictionsAndAttrs | ( | const std::string & | fromId, |
const std::string & | toId | ||
) |
Copy restrictions to a edgeType.
[in] | fromId | The id of the source edgeType |
[in] | toId | The id of the destination edgeType |
Definition at line 342 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by NIImporter_OpenStreetMap::usableType().
NBTypeCont::TypesCont::const_iterator NBTypeCont::end | ( | ) | const |
const NBTypeCont::EdgeTypeDefinition * NBTypeCont::getEdgeType | ( | const std::string & | name | ) | const |
Retrieve the name or the default edgeType.
If no name is given, the default edgeType is returned
[in] | name | The name of the edgeType to retrieve |
Definition at line 582 of file NBTypeCont.cpp.
References myDefaultType, and myEdgeTypes.
Referenced by NIXMLEdgesHandler::addEdge(), getEdgeTypeBikeLaneWidth(), getEdgeTypeFriction(), getEdgeTypeIsOneWay(), getEdgeTypeMaxWidth(), getEdgeTypeMinWidth(), getEdgeTypeNumLanes(), getEdgeTypePermissions(), getEdgeTypePriority(), getEdgeTypeShallBeDiscarded(), getEdgeTypeSidewalkWidth(), getEdgeTypeSpeed(), getEdgeTypeSpreadType(), getEdgeTypeWidth(), getEdgeTypeWidthResolution(), and wasSetEdgeTypeAttribute().
double NBTypeCont::getEdgeTypeBikeLaneWidth | ( | const std::string & | edgeType | ) | const |
Returns the lane width for a bike lane to be added [m].
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the width for |
Definition at line 576 of file NBTypeCont.cpp.
References NBTypeCont::EdgeTypeDefinition::bikeLaneWidth, and getEdgeType().
Referenced by NIXMLEdgesHandler::addEdge(), NIImporter_OpenStreetMap::insertEdge(), NIXMLTypesHandler::myStartElement(), and NIImporter_OpenStreetMap::usableType().
double NBTypeCont::getEdgeTypeFriction | ( | const std::string & | edgeType | ) | const |
Returns the default friction for the given edgeType [-].
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the speed for |
Definition at line 508 of file NBTypeCont.cpp.
References NBTypeCont::EdgeTypeDefinition::friction, and getEdgeType().
Referenced by NIXMLEdgesHandler::addEdge().
bool NBTypeCont::getEdgeTypeIsOneWay | ( | const std::string & | edgeType | ) | const |
Returns whether edges are one-way per default for the given edgeType.
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the one-way information for |
Definition at line 520 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::oneWay.
Referenced by NGEdge::buildNBEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_ArcView::load(), NIXMLTypesHandler::myStartElement(), and NIImporter_OpenStreetMap::usableType().
double NBTypeCont::getEdgeTypeMaxWidth | ( | const std::string & | edgeType | ) | const |
Returns the maximum edge/lane widths of the given edgeType.
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the maximum width for |
Definition at line 536 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::maxWidth.
Referenced by NIXMLTypesHandler::myStartElement(), and NIImporter_OpenDrive::setLaneAttributes().
double NBTypeCont::getEdgeTypeMinWidth | ( | const std::string & | edgeType | ) | const |
Returns the minimum edge/lane widths of the given edgeType.
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the maximum width for |
Definition at line 541 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::minWidth.
Referenced by NIXMLTypesHandler::myStartElement().
int NBTypeCont::getEdgeTypeNumLanes | ( | const std::string & | edgeType | ) | const |
Returns the number of lanes for the given edgeType.
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the lane number for |
Definition at line 497 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::laneTypeDefinitions.
Referenced by NIXMLEdgesHandler::addEdge(), NGEdge::buildNBEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_ArcView::load(), NIXMLTypesHandler::myStartElement(), NIImporter_VISUM::parse_Edges(), and NIImporter_OpenStreetMap::usableType().
SVCPermissions NBTypeCont::getEdgeTypePermissions | ( | const std::string & | edgeType | ) | const |
Returns allowed vehicle classes for the given edgeType.
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the list of allowed vehicles classes for |
Definition at line 552 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::permissions.
Referenced by NIXMLEdgesHandler::addEdge(), NIImporter_OpenDrive::OpenDriveLaneSection::buildAttributeChanges(), NGEdge::buildNBEdge(), NIImporter_OpenDrive::OpenDriveLane::computePermission(), NIImporter_OpenStreetMap::extendRailwayDistances(), NIImporter_OpenDrive::findWidthSplit(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_ArcView::load(), NIXMLTypesHandler::myStartElement(), NIImporter_VISUM::parse_Edges(), NIImporter_OpenDrive::setLaneAttributes(), and NIImporter_OpenStreetMap::usableType().
int NBTypeCont::getEdgeTypePriority | ( | const std::string & | edgeType | ) | const |
Returns the priority for the given edgeType.
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the priority for |
Definition at line 514 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::priority.
Referenced by NIXMLEdgesHandler::addEdge(), NGEdge::buildNBEdge(), NIImporter_OpenStreetMap::insertEdge(), NIXMLTypesHandler::myStartElement(), NIImporter_VISUM::parse_Edges(), and NIImporter_OpenStreetMap::usableType().
bool NBTypeCont::getEdgeTypeShallBeDiscarded | ( | const std::string & | edgeType | ) | const |
Returns the information whether edges of this edgeType shall be discarded.
Returns false if the edgeType is not known.
[in] | edgeType | The id of the edgeType |
Definition at line 526 of file NBTypeCont.cpp.
References NBTypeCont::EdgeTypeDefinition::discard, and getEdgeType().
Referenced by NIImporter_OpenDrive::OpenDriveLaneSection::buildLaneMapping(), NIImporter_OpenDrive::findWidthSplit(), NBEdgeCont::ignoreFilterMatch(), and NIImporter_OpenStreetMap::usableType().
double NBTypeCont::getEdgeTypeSidewalkWidth | ( | const std::string & | edgeType | ) | const |
Returns the lane width for a sidewalk to be added [m].
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the width for |
Definition at line 570 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::sidewalkWidth.
Referenced by NIXMLEdgesHandler::addEdge(), NIImporter_OpenStreetMap::insertEdge(), NIXMLTypesHandler::myStartElement(), and NIImporter_OpenStreetMap::usableType().
double NBTypeCont::getEdgeTypeSpeed | ( | const std::string & | edgeType | ) | const |
Returns the maximal velocity for the given edgeType [m/s].
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the speed for |
Definition at line 503 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::speed.
Referenced by NIXMLEdgesHandler::addEdge(), NIImporter_OpenDrive::OpenDriveLaneSection::buildAttributeChanges(), NGEdge::buildNBEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_ArcView::load(), NIImporter_OpenDrive::loadNetwork(), NIXMLTypesHandler::myStartElement(), NIImporter_VISUM::parse_Edges(), NIImporter_OpenDrive::setLaneAttributes(), and NIImporter_OpenStreetMap::usableType().
LaneSpreadFunction NBTypeCont::getEdgeTypeSpreadType | ( | const std::string & | edgeType | ) | const |
Returns spreadType for the given edgeType.
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the spread type |
Definition at line 558 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::spreadType.
Referenced by NIXMLEdgesHandler::addEdge(), NGEdge::buildNBEdge(), NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::usableType().
double NBTypeCont::getEdgeTypeWidth | ( | const std::string & | edgeType | ) | const |
Returns the lane width for the given edgeType [m].
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the width for |
Definition at line 564 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::width.
Referenced by NIXMLEdgesHandler::addEdge(), NIImporter_OpenDrive::buildConnectionsToOuter(), NGEdge::buildNBEdge(), NIImporter_OpenStreetMap::insertEdge(), NIXMLTypesHandler::myStartElement(), NIImporter_OpenDrive::setLaneAttributes(), and NIImporter_OpenStreetMap::usableType().
double NBTypeCont::getEdgeTypeWidthResolution | ( | const std::string & | edgeType | ) | const |
Returns the resolution for interpreting edge/lane widths of the given edgeType.
If the named edgeType is not known, the default is returned
[in] | edgeType | The name of the edgeType to return the width resolution for |
Definition at line 531 of file NBTypeCont.cpp.
References getEdgeType(), and NBTypeCont::EdgeTypeDefinition::widthResolution.
Referenced by NIXMLTypesHandler::myStartElement(), and NIImporter_OpenDrive::setLaneAttributes().
void NBTypeCont::insertEdgeType | ( | const std::string & | id, |
const EdgeTypeDefinition * | edgeType | ||
) |
Adds a edgeType into the list.
[in] | id | The id of the edgeType |
[in] | edgeType | pointer to EdgeTypeDefinition (for copying parameters) |
Definition at line 226 of file NBTypeCont.cpp.
References NBTypeCont::EdgeTypeDefinition::attrs, myEdgeTypes, and NBTypeCont::EdgeTypeDefinition::restrictions.
void NBTypeCont::insertEdgeType | ( | const std::string & | id, |
int | numLanes, | ||
double | maxSpeed, | ||
int | prio, | ||
SVCPermissions | permissions, | ||
LaneSpreadFunction | spreadType, | ||
double | width, | ||
bool | oneWayIsDefault, | ||
double | sidewalkWidth, | ||
double | bikeLaneWidth, | ||
double | widthResolution, | ||
double | maxWidth, | ||
double | minWidth | ||
) |
Adds a edgeType into the list.
[in] | id | The id of the edgeType |
[in] | numLanes | The number of lanes an edge of this edgeType has |
[in] | maxSpeed | The speed allowed on an edge of this edgeType |
[in] | prio | The priority of an edge of this edgeType |
[in] | permissions | The encoding of vehicle classes allowed on an edge of this edgeType |
[in] | spreadType | Defines how to compute the lane geometry from the edge geometry (right, center or roadCenter) |
[in] | width | The width of lanes of edgesof this edgeType |
[in] | oneWayIsDefault | Whether edges of this edgeType are one-way per default |
Definition at line 204 of file NBTypeCont.cpp.
References NBTypeCont::EdgeTypeDefinition::attrs, myEdgeTypes, NBTypeCont::EdgeTypeDefinition::restrictions, and NBEdge::UNSPECIFIED_FRICTION.
Referenced by NIXMLTypesHandler::myStartElement(), NIImporter_VISUM::parse_Types(), GNENet::saveEdgeTypes(), GNENet::saveNetwork(), and NIImporter_OpenStreetMap::usableType().
void NBTypeCont::insertLaneType | ( | const std::string & | edgeTypeID, |
int | index, | ||
double | maxSpeed, | ||
SVCPermissions | permissions, | ||
double | width, | ||
const std::set< SumoXMLAttr > & | attrs | ||
) |
Adds a laneType into the list.
[in] | maxSpeed | The speed allowed on an lane of this edgeType |
[in] | prio | The priority of an lane of this edgeType |
[in] | permissions | The encoding of vehicle classes allowed on an lane of this edgeType |
[in] | width | The width of lane of this edgeType |
[in] | attrs | enabled attributes |
Definition at line 243 of file NBTypeCont.cpp.
References NBTypeCont::EdgeTypeDefinition::laneTypeDefinitions, myEdgeTypes, and NBEdge::UNSPECIFIED_FRICTION.
Referenced by NIXMLTypesHandler::myStartElement(), GNENet::saveEdgeTypes(), and GNENet::saveNetwork().
bool NBTypeCont::knows | ( | const std::string & | edgeType | ) | const |
Returns whether the named edgeType is in the container.
Definition at line 303 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by NIXMLEdgesHandler::addEdge(), NIImporter_OpenDrive::OpenDriveLaneSection::buildLaneMapping(), NIImporter_OpenDrive::findWidthSplit(), NBEdgeCont::ignoreFilterMatch(), NIImporter_ArcView::load(), NIXMLTypesHandler::myStartElement(), and NIImporter_OpenStreetMap::usableType().
bool NBTypeCont::markEdgeTypeAsSet | ( | const std::string & | id, |
const SumoXMLAttr | attr | ||
) |
Marks an attribute of a edgeType as set.
[in] | id | The id of the edgeType |
[in] | attr | The id of the attribute |
Definition at line 320 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by NIXMLTypesHandler::myStartElement(), and NIImporter_VISUM::parse_Types().
bool NBTypeCont::markEdgeTypeAsToDiscard | ( | const std::string & | id | ) |
Marks a edgeType as to be discarded.
[in] | id | The id of the edgeType |
Definition at line 309 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by NIXMLTypesHandler::myStartElement().
bool NBTypeCont::markLaneTypeAsSet | ( | const std::string & | id, |
int | index, | ||
const SumoXMLAttr | attr | ||
) |
Marks an attribute of last laneType as set.
[in] | id | The id of the edgeType parent |
[in] | attr | The id of the attribute |
Definition at line 355 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by NIXMLTypesHandler::myStartElement().
|
privatedelete |
invalid assignment operator
void NBTypeCont::removeEdgeType | ( | const std::string & | id | ) |
Remove a edgeType from the list.
[in] | id | The id of the edgeType |
Definition at line 261 of file NBTypeCont.cpp.
References myEdgeTypes.
void NBTypeCont::setEdgeTypeDefaults | ( | int | defaultNumLanes, |
double | defaultLaneWidth, | ||
double | defaultSpeed, | ||
double | defaultFriction, | ||
int | defaultPriority, | ||
SVCPermissions | defaultPermissions, | ||
LaneSpreadFunction | defaultSpreadType | ||
) |
Sets the default values.
[in] | defaultNumLanes | The default number of lanes an edge has |
[in] | defaultLaneWidth | The default width of lanes |
[in] | defaultSpeed | The default speed allowed on an edge |
[in] | defaultFriction | The default friction on an edge |
[in] | defaultPriority | The default priority of an edge |
[in] | defaultPermissions | The default permissions of an edge |
[in] | defaultSpreadType | The default lane spread type of an edge |
Definition at line 185 of file NBTypeCont.cpp.
References NBTypeCont::EdgeTypeDefinition::friction, NBTypeCont::EdgeTypeDefinition::laneTypeDefinitions, myDefaultType, NBTypeCont::EdgeTypeDefinition::permissions, NBTypeCont::EdgeTypeDefinition::priority, NBTypeCont::EdgeTypeDefinition::speed, NBTypeCont::EdgeTypeDefinition::spreadType, and NBTypeCont::EdgeTypeDefinition::width.
Referenced by NBNetBuilder::applyOptions().
int NBTypeCont::size | ( | ) | const |
Returns the number of known edgeTypes.
Definition at line 255 of file NBTypeCont.cpp.
References myEdgeTypes.
Referenced by NGEdge::buildNBEdge(), NILoader::load(), GNEApplicationWindow::onCmdOpenEdgeTypes(), GNEApplicationWindow::onCmdReloadEdgeTypes(), and NWWriter_XML::writeNetwork().
void NBTypeCont::updateEdgeTypeID | ( | const std::string & | oldId, |
const std::string & | newId | ||
) |
change edge type ID
[in] | oldID | The old id of the edgeType |
[in] | newID | The new id of the edgeType |
Definition at line 274 of file NBTypeCont.cpp.
References myEdgeTypes.
bool NBTypeCont::wasSetEdgeTypeAttribute | ( | const std::string & | edgeType, |
const SumoXMLAttr | attr | ||
) | const |
Returns whether an attribute of a edgeType was set.
[in] | edgeType | The id of the edgeType |
[in] | attr | The id of the attribute |
Definition at line 546 of file NBTypeCont.cpp.
References NBTypeCont::EdgeTypeDefinition::attrs, and getEdgeType().
void NBTypeCont::writeEdgeTypes | ( | OutputDevice & | into, |
const std::set< std::string > & | typeIDs = std::set<std::string>() |
||
) | const |
writes all EdgeTypes (and their lanes) as XML
Definition at line 377 of file NBTypeCont.cpp.
References OutputDevice::closeTag(), getVehicleClassNames(), SUMOXMLDefinitions::LaneSpreadFunctions, OutputDevice::lf(), myEdgeTypes, OutputDevice::openTag(), RIGHT, SUMO_ATTR_ALLOW, SUMO_ATTR_BIKELANEWIDTH, SUMO_ATTR_DISALLOW, SUMO_ATTR_DISCARD, SUMO_ATTR_FRICTION, SUMO_ATTR_ID, SUMO_ATTR_INDEX, SUMO_ATTR_NUMLANES, SUMO_ATTR_ONEWAY, SUMO_ATTR_PRIORITY, SUMO_ATTR_SIDEWALKWIDTH, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_VCLASS, SUMO_ATTR_WIDTH, SUMO_TAG_LANETYPE, SUMO_TAG_RESTRICTION, SUMO_TAG_TYPE, NBEdge::UNSPECIFIED_FRICTION, NBEdge::UNSPECIFIED_SPEED, NBEdge::UNSPECIFIED_WIDTH, OutputDevice::writeAttr(), and writePermissions().
Referenced by GNENet::saveEdgeTypes(), NWWriter_SUMO::writeNetwork(), and NWWriter_XML::writeTypes().
|
protected |
The default edgeType.
Definition at line 437 of file NBTypeCont.h.
Referenced by getEdgeType(), setEdgeTypeDefaults(), and ~NBTypeCont().
|
protected |
The container of edgeTypes.
Definition at line 440 of file NBTypeCont.h.
Referenced by addEdgeTypeRestriction(), addLaneTypeRestriction(), begin(), clearTypes(), copyEdgeTypeRestrictionsAndAttrs(), end(), getEdgeType(), insertEdgeType(), insertEdgeType(), insertLaneType(), knows(), markEdgeTypeAsSet(), markEdgeTypeAsToDiscard(), markLaneTypeAsSet(), removeEdgeType(), size(), updateEdgeTypeID(), and writeEdgeTypes().