AirInv Logo  0.1.2
C++ Simulated Airline Inventory Management System library
AIRINV::SegmentCabinHelper Class Reference

Class representing the actual business functions for an airline segment-cabin. More...

#include <airinv/bom/SegmentCabinHelper.hpp>

List of all members.

Static Public Member Functions

static void updateFromReservation (const stdair::FlightDate &, stdair::SegmentCabin &, const stdair::PartySize_T &)
static void buildPseudoBidPriceVector (stdair::SegmentCabin &)
static void updateBookingControlsUsingPseudoBidPriceVector (const stdair::SegmentCabin &)
static void updateAUs (const stdair::SegmentCabin &)
static void updateAvailabilities (const stdair::SegmentCabin &)
static void initialiseAU (stdair::SegmentCabin &)

Detailed Description

Class representing the actual business functions for an airline segment-cabin.

Definition at line 23 of file SegmentCabinHelper.hpp.


Member Function Documentation

void AIRINV::SegmentCabinHelper::updateFromReservation ( const stdair::FlightDate &  iFlightDate,
stdair::SegmentCabin &  ioSegmentCabin,
const stdair::PartySize_T &  iNbOfBookings 
) [static]

Update the segment-cabin with the reservation.

Definition at line 57 of file SegmentCabinHelper.cpp.

References AIRINV::FlightDateHelper::updateAvailablityPool().

Referenced by AIRINV::InventoryHelper::cancel(), and AIRINV::InventoryHelper::sell().

void AIRINV::SegmentCabinHelper::buildPseudoBidPriceVector ( stdair::SegmentCabin &  ioSegmentCabin) [static]

Build the pseudo bid price vector from the vectors of the leg-cabins.

Definition at line 82 of file SegmentCabinHelper.cpp.

Referenced by AIRINV::FlightDateHelper::updateBookingControls().

void AIRINV::SegmentCabinHelper::updateBookingControlsUsingPseudoBidPriceVector ( const stdair::SegmentCabin &  iSegmentCabin) [static]

Update the booking controls using the pseudo bid price vector.

Definition at line 126 of file SegmentCabinHelper.cpp.

References updateAUs().

Referenced by AIRINV::FlightDateHelper::updateBookingControls().

void AIRINV::SegmentCabinHelper::updateAUs ( const stdair::SegmentCabin &  iSegmentCabin) [static]

Update the authorisation levels using the booking limits.

Definition at line 158 of file SegmentCabinHelper.cpp.

Referenced by updateBookingControlsUsingPseudoBidPriceVector().

void AIRINV::SegmentCabinHelper::updateAvailabilities ( const stdair::SegmentCabin &  iSegmentCabin) [static]

Update the availability of the booking classes.

Definition at line 190 of file SegmentCabinHelper.cpp.

Referenced by AIRINV::InventoryHelper::calculateAvailability(), and AIRINV::GuillotineBlockHelper::takeSnapshots().

void AIRINV::SegmentCabinHelper::initialiseAU ( stdair::SegmentCabin &  iSegmentCabin) [static]

Initialise the AU for the booking classes.

Definition at line 21 of file SegmentCabinHelper.cpp.

Referenced by AIRINV::SegmentDateHelper::fillFromRouting().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines