Easy_rider
 
Loading...
Searching...
No Matches
HighwayGenerator.h
1#ifndef HIGHWAY_GENERATOR_H
2#define HIGHWAY_GENERATOR_H
3
4#include "RoadGenerator.h"
5
17public:
21 explicit HighwayGenerator(int defaultSpeed);
22
26 void generate(Graph<Intersection, Road> &graph) override;
27
28private:
29 int defaultSpeed_;
30};
31
32#endif // HIGHWAY_GENERATOR_H
A templated graph storing nodes of type T and edges of type U.
Definition Graph.h:58
Builds a minimum spanning tree (Kruskal) over all intersections — Highway generator.
Definition HighwayGenerator.h:16
void generate(Graph< Intersection, Road > &graph) override
Append new bidirectional highways into the graph (no duplicates).
Definition HighwayGenerator.cpp:37
Abstract base class for generating roads on a Graph<Intersection,Road>.
Definition RoadGenerator.h:11