-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpassenger_factory.h
42 lines (40 loc) · 1.24 KB
/
passenger_factory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* @file passenger_factory.h
*
* @copyright 2019 3081 Staff, All rights reserved.
*/
#ifndef SRC_PASSENGER_FACTORY_H_
#define SRC_PASSENGER_FACTORY_H_
#include <string>
#include "src/passenger.h"
/*******************************************************************************
* Class Definitions
******************************************************************************/
/**
* @brief The main class for the generation of passengers.
*
* Calls to \ref Generate function to get a new instance of a passenger.
* This is a static call, not requiring an instance to invoke the method.
*/
class PassengerFactory {
public:
/**
* @brief Generation of a passenger with a randomized name and random destination within bounds.
*
* This function will be used for simulation purposes.
*
* @param[in] curr_stop Current stop, left bound (not-inclusive)
* @param[in] last_stop Last stop, right bound (inclusive)
*
* @return Passenger object with name and destination.
*/
static Passenger * Generate(int, int);
private:
/**
* @brief Generation of randomized passenger name from prefix, stems and suffixes.
*
* @return Randomized passenger name.
*/
static std::string NameGeneration();
};
#endif // SRC_PASSENGER_FACTORY_H_