Go to the documentation of this file.
7 #ifndef SRC_PASSENGER_H_
8 #define SRC_PASSENGER_H_
27 explicit Passenger(
int = -1, std::string =
"Nobody");
57 void Report(std::ostream &out)
const;
61 int destination_stop_id_;
68 #endif // SRC_PASSENGER_H_
void GetOnBus()
Passenger getting on bus.
Definition: passenger.cc:29
void Report(std::ostream &out) const
Public reporter.
Definition: passenger.cc:45
Passenger(int=-1, std::string="Nobody")
Constructs a passenger with a standard name and id.
Definition: passenger.cc:17
bool IsOnBus() const
Method to decide if a passenger is on bus.
Definition: passenger.cc:37
void Update()
Method to update wait at stop.
Definition: passenger.cc:24
The main class to define passenger.
Definition: passenger.h:17
int GetDestination() const
Get destination id of the passenger.
Definition: passenger.cc:41
int GetTotalWait() const
Total wait time on stop and on bus.
Definition: passenger.cc:33