52 :
Named(id), myStartNode(startNode), myEndNode(endNode) {
NBNode * retrieve(const std::string &id) const
Returns the node with the given name.
double getSpeed(const std::string &type) const
Returns the maximal velocity for the given type [m/s].
NBTypeCont & getTypeCont()
Returns a reference to the type container.
NBEdge * buildNBEdge(NBNetBuilder &nb) const
Builds and returns this link's netbuild-representation.
The representation of a single edge during network building.
static double rand(std::mt19937 *rng=0)
Returns a random real number in [0, 1)
int getPriority(const std::string &type) const
Returns the priority for the given type.
static const double UNSPECIFIED_OFFSET
unspecified lane offset
void removeLink(NGEdge *link)
Removes the given link.
int getNumLanes(const std::string &type) const
Returns the number of lanes for the given type.
const std::string & getID() const
Returns the id.
NGEdge(const std::string &id, NGNode *startNode, NGNode *endNode)
Constructor.
static OptionsCont & getOptions()
Retrieves the options.
double getWidth(const std::string &type) const
Returns the lane width for the given type [m].
Base class for objects which have an id.
std::string myID
The name of the object.
NBNodeCont & getNodeCont()
Returns a reference to the node container.
NGNode * myEndNode
The node the edge ends at.
Instance responsible for building networks.
A netgen-representation of a node.
NGNode * myStartNode
The node the edge starts at.
void addLink(NGEdge *link)
Adds the given link to the internal list.