My Project
Static Public Member Functions | List of all members
PassengerFactory Class Reference

The main class for the generation of passengers. More...

#include <passenger_factory.h>

Collaboration diagram for PassengerFactory:
Collaboration graph

Static Public Member Functions

static PassengerGenerate (int, int)
 Generation of a passenger with a randomized name and random destination within bounds. More...
 

Detailed Description

The main class for the generation of passengers.

Calls to Generate function to get a new instance of a passenger. This is a static call, not requiring an instance to invoke the method.

Member Function Documentation

◆ Generate()

Passenger * PassengerFactory::Generate ( int  curr_stop,
int  last_stop 
)
static

Generation of a passenger with a randomized name and random destination within bounds.

This function will be used for simulation purposes.

Parameters
[in]curr_stopCurrent stop, left bound (not-inclusive)
[in]last_stopLast stop, right bound (inclusive)
Returns
Passenger object with name and destination.

The documentation for this class was generated from the following files: