The main class to define stop. More...
#include <stop.h>

Public Member Functions | |
| Stop (int, double=44.973723, double=-93.235365) | |
| Constructs a stop with latitude and longitude. More... | |
| int | GetId () const |
| Get if of the stops_. More... | |
| int | AddPassengers (Passenger *) |
| Method to add passengers to the stop. More... | |
| void | Update () |
| void | Report (std::ostream &out) const |
| int | LoadPassengers (Bus *bus) |
| Method to load passenger on bus. More... | |
| double | GetLong () |
| Getter of longitude. More... | |
| double | GetLat () |
| Getter of latitude. More... | |
| std::string | GetName () |
| Getter of stop name. More... | |
| size_t | GetNumPassengers () |
| Getter of number of passengers. More... | |
The main class to define stop.
|
explicit |
Constructs a stop with latitude and longitude.
| int Stop::AddPassengers | ( | Passenger * | pass | ) |
Method to add passengers to the stop.
This function adds passengers to the stop.
| int Stop::GetId | ( | ) | const |
Get if of the stops_.
| double Stop::GetLat | ( | ) |
Getter of latitude.
| double Stop::GetLong | ( | ) |
Getter of longitude.
| std::string Stop::GetName | ( | ) |
Getter of stop name.
| size_t Stop::GetNumPassengers | ( | ) |
Getter of number of passengers.
| int Stop::LoadPassengers | ( | Bus * | bus | ) |
Method to load passenger on bus.
1.8.16