Go to the documentation of this file.
16 #include "./data_structs.h"
36 Route(std::string name,
Stop ** stops,
double * distances,
int num_stops,
43 void Report(std::ostream&);
94 int GenerateNewPassengers();
96 std::list<Stop *> stops_;
97 std::list<double> distances_between_;
101 int destination_stop_index_;
102 Stop * destination_stop_;
103 Stop * previous_stop_;
106 #endif // SRC_ROUTE_H_
std::list< Stop * > GetStops()
list of stops
Definition: route.cc:105
The main class to define stop.
Definition: stop.h:22
Virtual class for the generation of passengers.
Definition: passenger_generator.h:19
Route * Clone()
Copy a route.
Definition: route.cc:28
Stop * GetDestinationStop() const
Get pointer to next stop.
Definition: route.cc:83
Structure for route data used for visualization simulation.
Definition: data_structs.h:47
void NextStop()
Change destination_stop_ to next stop.
Definition: route.cc:50
Stop * GetNextStop()
Get pointer to next stop.
Definition: route.cc:58
void UpdateRouteData()
Update route data.
Definition: route.cc:109
RouteData GetRouteData()
Getter of route data.
Definition: route.cc:127
std::string GetName()
Get name of the route.
Definition: route.cc:101
Route(std::string name, Stop **stops, double *distances, int num_stops, PassengerGenerator *)
Constructs a route.
Definition: route.cc:8
Stop * GetPreviousStop()
Get pointer to previous stop.
Definition: route.cc:62
The main class to define route.
Definition: route.h:25
double GetNextStopDistance()
Get distance to next stop.
Definition: route.cc:72
bool IsAtEnd() const
Decide if a route is finished.
Definition: route.cc:46