22 #ifndef NGRandomNetBuilder_h 23 #define NGRandomNetBuilder_h 102 void createNet(
int numNodes);
110 void removeOuterNode(
NGNode* node);
120 bool checkAngles(
NGNode* node);
142 bool createNewNode(
NGNode* baseNode);
150 void findPossibleOuterNodes(
NGNode* node);
void add(int numNeighbours, SUMOReal ratio)
adds a neighbour item to list
NGNodeList myOuterNodes
The list of outer nodes.
TNeighbourDistribution myNeighbourDistribution
The distrubtion of number of neighbours.
SUMOReal myConnectivity
Probability of connecting to a existing node if possible.
SUMOReal myMaxDistance
Maximum distance allowed between two nodes.
int num()
Get random number of neighbours.
std::list< NGEdge * > NGEdgeList
A list of edges (edge pointers)
std::list< NGNode * > NGNodeList
A list of nodes (node pointers)
int myNumNodes
Number of nodes to be created.
The class storing the generated network.
std::map< int, SUMOReal > myNeighbours
A map from neighbor number to their probabilities.
NGEdgeList myOuterLinks
The list of outer links.
SUMOReal myMinDistance
Minimum distance allowed between two nodes.
A class that builds random network using an algorithm by Markus Hartinger.
SUMOReal myMinLinkAngle
Minimum angle allowed between two links.
A netgen-representation of a node.
int myNumTries
Number of tries to create a new node.
NGNet & myNet
The network to fill.