My Project
local_simulator.h
Go to the documentation of this file.
1 
6 #ifndef SRC_LOCAL_SIMULATOR_H_
7 #define SRC_LOCAL_SIMULATOR_H_
8 
9 #include <vector>
10 
11 #include "src/simulator.h"
18 class LocalSimulator : public Simulator {
19  public:
20  bool Start(std::ostream& out) override;
21  bool Update(std::ostream& out) override;
22  private:
23  std::vector<int> bus_counters_;
24  std::vector<int> bus_start_timings_;
25  std::vector<int> time_since_last_bus_generation_;
26  int simulation_time_elapsed_;
27 };
28 
29 #endif // SRC_LOCAL_SIMULATOR_H_
Simulator
Virtual class to simulate the transit system.
Definition: simulator.h:21
LocalSimulator
The main class to simulate the transit system.
Definition: local_simulator.h:18
simulator.h