64 NGNode(
const std::string&
id);
73 NGNode(
const std::string&
id,
int xPos,
int yPos);
83 NGNode(
const std::string&
id,
int xID,
int yID,
bool amCenter);
184 return xID == xPos && yID == yPos;
void setX(SUMOReal x)
Sets a new value for x-position.
A netgen-representation of an edge.
int xID
Integer x-position (x-id)
bool myAmCenter
Information whether this is the center of a cpider-net.
bool connected(NGNode *node) const
Returns whether the other node is connected.
The representation of a single edge during network building.
int yID
Integer y-position (y-id)
void removeLink(NGEdge *link)
Removes the given link.
std::list< NGEdge * > NGEdgeList
A list of edges (edge pointers)
SUMOReal x() const
Returns the x-position.
SUMOReal getMaxNeighbours()
Returns this node's maximum neighbour number.
NBNode * buildNBNode(NBNetBuilder &nb) const
Builds and returns this node's netbuild-representation.
A point in 2D or 3D with translation and scaling methods.
std::list< NGNode * > NGNodeList
A list of nodes (node pointers)
SUMOReal myMaxNeighbours
The maximum number of neighbours.
void setMaxNeighbours(SUMOReal value)
Sets this node's maximum neighbour number.
Base class for objects which have an id.
Position myPosition
The position of the node.
const Position & getPosition() const
Returns this node's position.
Instance responsible for building networks.
NGNode(const std::string &id)
Constructor.
bool samePos(int xPos, int yPos) const
Returns whether the node has the given position.
SUMOReal y() const
Returns the y-position.
void set(SUMOReal x, SUMOReal y)
Represents a single node (junction) during network building.
A class that builds random network using an algorithm by Markus Hartinger.
void setY(SUMOReal y)
Sets a new value for y-position.
A netgen-representation of a node.
NGEdgeList LinkList
List of connected links.
void addLink(NGEdge *link)
Adds the given link to the internal list.