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