My Project
r_local_simulator.h
Go to the documentation of this file.
1 
6 #ifndef SRC_R_LOCAL_SIMULATOR_H_
7 #define SRC_R_LOCAL_SIMULATOR_H_
8 
9 #include <vector>
10 #include <string>
11 #include "src/simulator.h"
12 
13 class rLocalSimulator : public Simulator {
14  public:
15  bool Start(std::ostream& out) override;
16  bool Update(std::ostream& out) override;
17  private:
18  std::vector<int> bus_counters_;
19  std::vector<int> bus_start_timings_;
20  std::vector<int> time_since_last_bus_generation_;
21  int simulation_time_elapsed_;
22 };
23 
24 #endif // SRC_R_LOCAL_SIMULATOR_H_
Simulator
Virtual class to simulate the transit system.
Definition: simulator.h:21
simulator.h
rLocalSimulator
Definition: r_local_simulator.h:13