1.00.11
C++ Travel Customer Choice Model Library
Loading...
Searching...
No Matches
ChoiceManager.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
// StdAir
7
#include <stdair/bom/TravelSolutionStruct.hpp>
8
#include <stdair/bom/BookingRequestStruct.hpp>
9
// TravelCCM
10
#include <
travelccm/bom/CustomerChoiceModel.hpp
>
11
#include <
travelccm/command/ChoiceManager.hpp
>
12
13
namespace
TRAVELCCM
{
14
15
// ////////////////////////////////////////////////////////////////////
16
const
stdair::TravelSolutionStruct*
ChoiceManager::
17
chooseTravelSolution
(stdair::TravelSolutionList_T& ioTravelSolutionList,
18
const
stdair::BookingRequestStruct& iBookingRequest,
19
const
stdair::PassengerChoiceModel::EN_PassengerChoiceModel& iPassengerChoiceModel) {
20
21
const
CustomerChoiceModel
* lCustomerChoiceModel =
22
CustomerChoiceModel::create
(iPassengerChoiceModel);
23
24
// Return the adequate travel solution according to the chosen passenger
25
// choice model
26
const
stdair::TravelSolutionStruct* oTravelSolution_ptr =
27
lCustomerChoiceModel->
chooseTravelSolution
(ioTravelSolutionList,
28
iBookingRequest);
29
30
return
oTravelSolution_ptr;
31
}
32
33
}
ChoiceManager.hpp
CustomerChoiceModel.hpp
TRAVELCCM::ChoiceManager::chooseTravelSolution
static const stdair::TravelSolutionStruct * chooseTravelSolution(stdair::TravelSolutionList_T &, const stdair::BookingRequestStruct &, const stdair::PassengerChoiceModel::EN_PassengerChoiceModel &)
Definition
ChoiceManager.cpp:17
TRAVELCCM::CustomerChoiceModel
Definition
CustomerChoiceModel.hpp:22
TRAVELCCM::CustomerChoiceModel::chooseTravelSolution
virtual const stdair::TravelSolutionStruct * chooseTravelSolution(stdair::TravelSolutionList_T &, const stdair::BookingRequestStruct &) const =0
TRAVELCCM::CustomerChoiceModel::create
static const CustomerChoiceModel * create(const stdair::PassengerChoiceModel::EN_PassengerChoiceModel &)
Definition
CustomerChoiceModel.cpp:36
TRAVELCCM
Definition
BasConst.cpp:6
Generated on Mon Mar 31 2025 00:00:00 for TravelCCM by
1.13.2