41 #ifdef CHECK_MEMORY_LEAKS
43 #endif // CHECK_MEMORY_LEAKS
52 int defaultPriority) {
63 return insert(
id, noLanes, maxSpeed, prio, permissions, width, oneWayIsDefault);
70 TypesCont::iterator i =
myTypes.find(
id);
87 TypesCont::iterator i =
myTypes.find(
id);
91 (*i).second.discard =
true;
141 TypesCont::const_iterator i =
myTypes.find(name);
int noLanes
The number of lanes of an edge.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
const TypeDefinition & getType(const std::string &name) const
Retrieve the name or the default type.
SUMOReal width
The width of lanes of edges of this type [m].
bool insert(const std::string &id, int noLanes, SUMOReal maxSpeed, int prio, SUMOReal width, SUMOVehicleClass vClasses=SVC_UNKNOWN, bool oneWayIsDefault=false)
Adds a type into the list. This is a simplified convenience form of insert, if only one allowed vehic...
bool getIsOneWay(const std::string &type) const
Returns whether edges are one-way per default for the given type.
SUMOReal speed
The maximal velocity on an edge in m/s.
bool oneWay
Whether one-way traffic is mostly common for this type (mostly unused)
SUMOReal getWidth(const std::string &type) const
Returns the lane width for the given type [m/s].
SUMOReal getSpeed(const std::string &type) const
Returns the maximal velocity for the given type [m/s].
int getNumLanes(const std::string &type) const
Returns the number of lanes for the given type.
void setDefaults(int defaultNoLanes, SUMOReal defaultSpeed, int defaultPriority)
Sets the default values.
int getPriority(const std::string &type) const
Returns the priority for the given type.
bool knows(const std::string &type) const
Returns whether the named type is in the container.
const SVCPermissions SVCFreeForAll
bool markAsToDiscard(const std::string &id)
Marks a type as to be discarded.
TypeDefinition myDefaultType
The default type.
bool getShallBeDiscarded(const std::string &type) const
Returns the information whether edges of this type shall be discarded.
SVCPermissions getPermissions(const std::string &type) const
Returns allowed vehicle classes for the given type.
int priority
The priority of an edge.
SVCPermissions permissions
List of vehicle types that are allowed on this edge.
TypesCont myTypes
The container of types.
bool discard
Whether edges of this type shall be discarded.