 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
52 :
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.
NBEdge * buildNBEdge(NBNetBuilder &nb) const
Builds and returns this link's netbuild-representation.
static OptionsCont & getOptions()
Retrieves the options.
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.
void addLink(NGEdge *link)
Adds the given link to the internal list.
static double rand(std::mt19937 *rng=0)
Returns a random real number in [0, 1)
double getSpeed(const std::string &type) const
Returns the maximal velocity for the given type [m/s].
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.
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.
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.