 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
51 :
Named(id), myStartNode(startNode), myEndNode(endNode) {
static const double UNSPECIFIED_OFFSET
unspecified lane offset
Base class for objects which have an id.
Instance responsible for building networks.
static OptionsCont & getOptions()
Retrieves the options.
void setPermissions(SVCPermissions permissions, int lane=-1)
set allowed/disallowed classes for the given lane or for all lanes if -1 is given
NGNode * myStartNode
The node the edge starts at.
void removeLink(NGEdge *link)
Removes the given link.
The representation of a single edge during network building.
NGNode * myEndNode
The node the edge ends at.
NBEdge * buildNBEdge(NBNetBuilder &nb, const std::string &type) const
Builds and returns this link's netbuild-representation.
void addLink(NGEdge *link)
Adds the given link to the internal list.
bool getIsOneWay(const std::string &type) const
Returns whether edges are one-way per default for the given type.
static double rand(std::mt19937 *rng=0)
Returns a random real number in [0, 1)
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
double getSpeed(const std::string &type) const
Returns the maximal velocity for the given type [m/s].
bool isRailway(SVCPermissions permissions)
Returns whether an edge with the given permission is a railway edge.
NGEdge(const std::string &id, NGNode *startNode, NGNode *endNode)
Constructor.
int getPriority(const std::string &type) const
Returns the priority for the given type.
NBNode * retrieve(const std::string &id) const
Returns the node with the given name.
SVCPermissions getPermissions(const std::string &type) const
Returns allowed vehicle classes for the given type.
double getWidth(const std::string &type) const
Returns the lane width for the given type [m].
int getNumLanes(const std::string &type) const
Returns the number of lanes for the given type.
LaneSpreadFunction
Numbers representing special SUMO-XML-attribute values Information how the edge's lateral offset shal...
NBNodeCont & getNodeCont()
Returns a reference to the node container.
std::string myID
The name of the object.
NBTypeCont & getTypeCont()
Returns a reference to the type container.
const std::string & getID() const
Returns the id.
A netgen-representation of a node.