TravelCCM Logo  1.00.2
C++ Travel Customer Choice Model Library
TRAVELCCM::HybridModel Class Reference

#include <travelccm/bom/HybridModel.hpp>

+ Inheritance diagram for TRAVELCCM::HybridModel:

Public Member Functions

const stdair::TravelSolutionStruct * chooseTravelSolution (stdair::TravelSolutionList_T &, const stdair::BookingRequestStruct &) const
 
 HybridModel ()
 
 ~HybridModel ()
 

Static Public Member Functions

static const CustomerChoiceModelcreate (const stdair::PassengerChoiceModel::EN_PassengerChoiceModel &)
 

Detailed Description

Class implementing the customer choice of cheapest solution within disutility.

Definition at line 16 of file HybridModel.hpp.

Constructor & Destructor Documentation

◆ HybridModel()

TRAVELCCM::HybridModel::HybridModel ( )

Default Constructor.

Definition at line 24 of file HybridModel.cpp.

◆ ~HybridModel()

TRAVELCCM::HybridModel::~HybridModel ( )

Destructor.

Definition at line 29 of file HybridModel.cpp.

References chooseTravelSolution().

Member Function Documentation

◆ chooseTravelSolution()

const stdair::TravelSolutionStruct * TRAVELCCM::HybridModel::chooseTravelSolution ( stdair::TravelSolutionList_T &  ioTSList,
const stdair::BookingRequestStruct &  iBookingRequest 
) const
virtual

Choose a travel solution and a fare option within the given list of travel solutions.

Fare options which do not satisfy the restrictions of the customer have a disutility for each unsatisfied restriction.

The returned pointer will be NULL if no travel solution is chosen (e.g. Willingness-To-Pay too low).

Implements TRAVELCCM::CustomerChoiceModel.

Definition at line 34 of file HybridModel.cpp.

Referenced by ~HybridModel().

◆ create()

const CustomerChoiceModel * TRAVELCCM::CustomerChoiceModel::create ( const stdair::PassengerChoiceModel::EN_PassengerChoiceModel &  iPassengerChoiceModel)
staticinherited

Return the Customer Choice Model object described by the given enum type.

Definition at line 36 of file CustomerChoiceModel.cpp.

Referenced by TRAVELCCM::ChoiceManager::chooseTravelSolution(), and TRAVELCCM::CustomerChoiceModel::~CustomerChoiceModel().


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