 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
87 double radialToX(
double radius,
double phi);
96 double radialToY(
double radius,
double phi);
115 void createChequerBoard(
int numX,
int numY,
double spaceX,
double spaceY,
double attachLength);
135 void createSpiderWeb(
int numRadDiv,
int numCircles,
double spaceRad,
bool hasCenter);
void createChequerBoard(int numX, int numY, double spaceX, double spaceY, double attachLength)
Creates a grid network.
void toNB() const
Converts the stored network into its netbuilder-representation.
Instance responsible for building networks.
NGNet & operator=(const NGNet &)
Invalidated assignment operator.
std::list< NGNode * > NGNodeList
A list of nodes (node pointers)
std::string getNextFreeID()
Returns the next free id.
NGNodeList myNodeList
The list of nodes.
A netgen-representation of an edge.
double radialToX(double radius, double phi)
Returns the x-position resulting from the given radius and angle.
std::string alphabeticalCode(int i, int iMax)
return a letter code for the given integer index
const bool myAlphaIDs
Whether to use alphanumericalIDs.
void createSpiderWeb(int numRadDiv, int numCircles, double spaceRad, bool hasCenter)
Creates a spider network.
NGNode * findNode(int xPos, int yPos)
Returns the node at the given position.
int myLastID
The last ID given to node or link.
The class storing the generated network.
NGEdgeList myEdgeList
The list of links.
int nodeNo() const
Returns the number of stored nodes.
static Distribution_Parameterized getDistribution(const std::string &option)
get distribution from option
double radialToY(double radius, double phi)
Returns the y-position resulting from the given radius and angle.
std::list< NGEdge * > NGEdgeList
A list of edges (edge pointers)
void connect(NGNode *node1, NGNode *node2)
Connects both nodes with two edges, one for each direction.
NBNetBuilder & myNetBuilder
The builder used to build NB*-structures.
NGNet(NBNetBuilder &nb)
Constructor.
NGNet(const NGNet &)
Invalidated copy constructor.
void add(NGNode *node)
Adds the given node to the network.
A netgen-representation of a node.