TravelCCM Logo  1.00.11
C++ Travel Customer Choice Model Library
Loading...
Searching...
No Matches
TRAVELCCM::HardRestrictionModel Class Reference

#include <travelccm/bom/HardRestrictionModel.hpp>

+ Inheritance diagram for TRAVELCCM::HardRestrictionModel:

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Class implementing the hard restriction model.

Definition at line 15 of file HardRestrictionModel.hpp.

Constructor & Destructor Documentation

◆ HardRestrictionModel()

TRAVELCCM::HardRestrictionModel::HardRestrictionModel ( )

Default Constructor.

Definition at line 24 of file HardRestrictionModel.cpp.

References TRAVELCCM::CustomerChoiceModel::CustomerChoiceModel().

◆ ~HardRestrictionModel()

TRAVELCCM::HardRestrictionModel::~HardRestrictionModel ( )

Destructor.

Definition at line 29 of file HardRestrictionModel.cpp.

Member Function Documentation

◆ chooseTravelSolution()

const stdair::TravelSolutionStruct * TRAVELCCM::HardRestrictionModel::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.

The fare option must satisfy the hard restriction/constrain such as change fees and non refundable.

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 33 of file HardRestrictionModel.cpp.

◆ 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 35 of file CustomerChoiceModel.cpp.

References CustomerChoiceModel().

Referenced by TRAVELCCM::ChoiceManager::chooseTravelSolution().


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