72 SUMOReal defaultSpeed,
int defaultPriority);
86 bool insert(
const std::string&
id,
int noLanes,
SUMOReal maxSpeed,
int prio,
100 bool insert(
const std::string&
id,
int noLanes,
103 SUMOReal width,
bool oneWayIsDefault,
110 return (
unsigned int)
myTypes.size();
117 bool knows(
const std::string& type)
const;
259 typedef std::map<std::string, TypeDefinition>
TypesCont;
int noLanes
The number of lanes of an edge.
static const SUMOReal UNSPECIFIED_WIDTH
unspecified lane width
std::map< std::string, TypeDefinition > TypesCont
A container of types, accessed by the string id.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
NBTypeCont & operator=(const NBTypeCont &s)
invalid assignment operator
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].
The representation of a single edge during network building.
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.
const SVCPermissions SVCAll
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].
SUMOReal getSidewalkWidth(const std::string &type) const
Returns the lane width for a sidewalk to be added [m].
TypeDefinition()
Constructor.
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.
unsigned int size() const
Returns the number of known types.
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.
bool insert(const std::string &id, int noLanes, SUMOReal maxSpeed, int prio, SUMOReal width, SUMOVehicleClass vClasses=SVC_IGNORING, bool oneWayIsDefault=false, SUMOReal sidewalkWidth=NBEdge::UNSPECIFIED_WIDTH)
Adds a type into the list. This is a simplified convenience form of insert, if only one allowed vehic...
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.
TypeDefinition(int _noLanes, SUMOReal _speed, int _priority, SUMOReal _width, SVCPermissions _permissions, bool _oneWay, SUMOReal _sideWalkWidth)
Constructor.
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.
vehicles ignoring classes
bool discard
Whether edges of this type shall be discarded.
A storage for available types of edges.