Easy_rider
 
Loading...
Searching...
No Matches
MotorwayGenerator.h
1#ifndef MOTORWAY_GENERATOR_H
2#define MOTORWAY_GENERATOR_H
3
4#include "RoadGenerator.h"
5
17public:
23 MotorwayGenerator(double thresholdRatio, int defaultSpeed);
24
28 void generate(Graph<Intersection, Road> &graph) override;
29
30private:
31 double thresholdRatio_;
32 int defaultSpeed_;
33};
34
35#endif // MOTORWAY_GENERATOR_H
A templated graph storing nodes of type T and edges of type U.
Definition Graph.h:58
Builds a continuous "motorway" route by:
Definition MotorwayGenerator.h:16
void generate(Graph< Intersection, Road > &graph) override
Append new bidirectional motorways into the graph (no duplicates).
Definition MotorwayGenerator.cpp:90
Abstract base class for generating roads on a Graph<Intersection,Road>.
Definition RoadGenerator.h:11