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

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

#include <deterministic_passenger_factory.h>

Collaboration diagram for DPassengerFactory:
Collaboration graph

Static Public Member Functions

static PassengerGenerate (int, int)
 Generation of a passenger with a deterministic name 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 * DPassengerFactory::Generate ( int  curr_stop,
int  last_stop 
)
static

Generation of a passenger with a deterministic name 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: