Easy_rider
 
Loading...
Searching...
No Matches
StreetGenerator.h
1#ifndef STREET_GENERATOR_H
2#define STREET_GENERATOR_H
3
4#include "RoadGenerator.h"
5
11public:
16 StreetGenerator(size_t k, int defaultSpeed);
17
18 void generate(Graph<Intersection, Road> &graph) override;
19
20private:
21 size_t k_;
22 int defaultSpeed_;
23};
24
25#endif // STREET_GENERATOR_H
A templated graph storing nodes of type T and edges of type U.
Definition Graph.h:58
Abstract base class for generating roads on a Graph<Intersection,Road>.
Definition RoadGenerator.h:11
For each intersection, connects it to its k nearest neighbors - Street generator.
Definition StreetGenerator.h:10
void generate(Graph< Intersection, Road > &graph) override
Append new bidirectional roads into the graph (no duplicates).
Definition StreetGenerator.cpp:10