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.
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 getMaxNeighbours()
Returns this node's maximum neighbour number.
A point in 2D or 3D with translation and scaling methods.
bool connected(NGNode *node) const
Returns whether the other node is connected.
std::list< NGNode * > NGNodeList
A list of nodes (node pointers)
SUMOReal myMaxNeighbours
The maximum number of neighbours.
SUMOReal x() const
Returns the x-position.
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.
Instance responsible for building networks.
NGNode(const std::string &id)
Constructor.
void set(SUMOReal x, SUMOReal y)
bool samePos(int xPos, int yPos) const
Returns whether the node has the given position.
Represents a single node (junction) during network building.
const Position & getPosition() const
Returns this node's position.
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.
SUMOReal y() const
Returns the y-position.
NGEdgeList LinkList
List of connected links.
void addLink(NGEdge *link)
Adds the given link to the internal list.
NBNode * buildNBNode(NBNetBuilder &nb) const
Builds and returns this node's netbuild-representation.