My Project
|
The main class for the generation of passengers. More...
#include <random_passenger_generator.h>
Public Member Functions | |
RandomPassengerGenerator (std::list< double >, std::list< Stop * >) | |
int | GeneratePassengers () override |
Generation of a passenger with a randomized name and random destination within bounds. More... | |
Public Member Functions inherited from PassengerGenerator | |
PassengerGenerator (std::list< double >, std::list< Stop * >) | |
Additional Inherited Members | |
Protected Attributes inherited from PassengerGenerator | |
std::list< double > | generation_probabilities_ |
std::list< Stop * > | stops_ |
The main class for the generation of passengers.
This function has parameters of a list of probability that a passenger appears at certain stop and a list of pointer to the stops correspondingly. Calls to GeneratePassengers function generate passengers in stops.
|
overridevirtual |
Generation of a passenger with a randomized name and random destination within bounds.
With the random name from Passenger Factory, generate passengers in stops based on probability.
Implements PassengerGenerator.