My Project
passenger_generator.h
Go to the documentation of this file.
1 
7 #ifndef SRC_PASSENGER_GENERATOR_H_
8 #define SRC_PASSENGER_GENERATOR_H_
9 
10 #include <list>
11 #include "src/passenger_factory.h"
12 #include "src/stop.h"
13 
14 class Stop; // forward declaration
20  public:
21  PassengerGenerator(std::list<double>, std::list<Stop *>);
22  // Makes the class abstract, cannot instantiate and forces subclass override
23  virtual int GeneratePassengers() = 0; // pure virtual
24  protected:
25  std::list<double> generation_probabilities_;
26  std::list<Stop *> stops_;
27 
28  // should we be using a singleton here somehow?
29  // PassengerFactory * pass_factory;
30 };
31 #endif // SRC_PASSENGER_GENERATOR_H_
Stop
The main class to define stop.
Definition: stop.h:22
PassengerGenerator
Virtual class for the generation of passengers.
Definition: passenger_generator.h:19
stop.h
passenger_factory.h