StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
stdair::BookingClass Class Reference

#include <stdair/bom/BookingClass.hpp>

+ Inheritance diagram for stdair::BookingClass:

Public Types

typedef BookingClassKey Key_T
 

Public Member Functions

const Key_TgetKey () const
 
const ClassCode_TgetClassCode () const
 
BomAbstract *const getParent () const
 
const HolderMap_TgetHolderMap () const
 
const SubclassCode_TgetSubclassCode () const
 
const AuthorizationLevel_TgetAuthorizationLevel () const
 
const ProtectionLevel_TgetProtection () const
 
const ProtectionLevel_TgetCumulatedProtection () const
 
const BookingLimit_TgetCumulatedBookingLimit () const
 
const NbOfSeats_TgetNegotiatedSpace () const
 
const OverbookingRate_TgetNoShowPercentage () const
 
const OverbookingRate_TgetCancellationPercentage () const
 
const NbOfBookings_TgetNbOfBookings () const
 
const NbOfBookings_TgetNbOfGroupBookings () const
 
const NbOfBookings_TgetNbOfPendingGroupBookings () const
 
const NbOfBookings_TgetNbOfStaffBookings () const
 
const NbOfBookings_TgetNbOfWLBookings () const
 
const NbOfCancellations_TgetNbOfCancellations () const
 
const NbOfBookings_TgetETB () const
 
const Availability_TgetNetClassAvailability () const
 
const Availability_TgetSegmentAvailability () const
 
const Availability_TgetNetRevenueAvailability () const
 
const Yield_TgetYield () const
 
const Yield_TgetAdjustedYield () const
 
const MeanValue_TgetMean () const
 
const StdDevValue_TgetStdDev () const
 
const MeanValue_TgetPriceDemMean () const
 
const StdDevValue_TgetPriceDemStdDev () const
 
const MeanValue_TgetCumuPriceDemMean () const
 
const StdDevValue_TgetCumuPriceDemStdDev () const
 
const MeanValue_TgetProductDemMean () const
 
const StdDevValue_TgetProductDemStdDev () const
 
const GeneratedDemandVector_TgetGeneratedDemandVector () const
 
void setCumulatedProtection (const ProtectionLevel_T &iPL)
 
void setProtection (const ProtectionLevel_T &iPL)
 
void setCumulatedBookingLimit (const BookingLimit_T &iBL)
 
void setAuthorizationLevel (const AuthorizationLevel_T &iAU)
 
void setSegmentAvailability (const Availability_T &iAvl)
 
void setYield (const Yield_T &iYield)
 
void setAdjustedYield (const Yield_T &iYield)
 
void setMean (const MeanValue_T &iMean)
 
void setStdDev (const StdDevValue_T &iStdDev)
 
void setPriceDemMean (const MeanValue_T &iMean)
 
void setPriceDemStdDev (const StdDevValue_T &iStdDev)
 
void setCumuPriceDemMean (const MeanValue_T &iMean)
 
void setCumuPriceDemStdDev (const StdDevValue_T &iStdDev)
 
void setProductDemMean (const MeanValue_T &iMean)
 
void setProductDemStdDev (const StdDevValue_T &iStdDev)
 
void toStream (std::ostream &ioOut) const
 
void fromStream (std::istream &ioIn)
 
std::string toString () const
 
const std::string describeKey () const
 
void sell (const NbOfBookings_T &)
 
void cancel (const NbOfBookings_T &)
 
void generateDemandSamples (const NbOfSamples_T &)
 
void generateDemandSamples (const NbOfSamples_T &, const RandomSeed_T &)
 

Protected Member Functions

 BookingClass (const Key_T &)
 
virtual ~BookingClass ()
 

Protected Attributes

Key_T _key
 
BomAbstract_parent
 
HolderMap_T _holderMap
 
SubclassCode_T _subclassCode
 
ProtectionLevel_T _cumulatedProtection
 
ProtectionLevel_T _protection
 
BookingLimit_T _cumulatedBookingLimit
 
AuthorizationLevel_T _au
 
NbOfSeats_T _nego
 
OverbookingRate_T _noShowPercentage
 
OverbookingRate_T _cancellationPercentage
 
NbOfBookings_T _nbOfBookings
 
NbOfBookings_T _groupNbOfBookings
 
NbOfBookings_T _groupPendingNbOfBookings
 
NbOfBookings_T _staffNbOfBookings
 
NbOfBookings_T _wlNbOfBookings
 
NbOfCancellations_T _nbOfCancellations
 
NbOfBookings_T _etb
 
Availability_T _netClassAvailability
 
Availability_T _segmentAvailability
 
Availability_T _netRevenueAvailability
 
Yield_T _yield
 
Yield_T _adjustedYield
 
MeanValue_T _mean
 
StdDevValue_T _stdDev
 
MeanValue_T _priceDemMean
 
StdDevValue_T _priceDemStdDev
 
MeanValue_T _cumuPriceDemMean
 
StdDevValue_T _cumuPriceDemStdDev
 
MeanValue_T _productDemMean
 
StdDevValue_T _productDemStdDev
 
GeneratedDemandVector_T _generatedDemandVector
 

Friends

template<typename BOM >
class FacBom
 
template<typename BOM >
class FacCloneBom
 
class FacBomManager
 

Detailed Description

Class representing the actual attributes for an airline booking class.

Definition at line 24 of file BookingClass.hpp.

Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 32 of file BookingClass.hpp.

Constructor & Destructor Documentation

stdair::BookingClass::BookingClass ( const Key_T iKey)
protected

Constructor.

Definition at line 49 of file BookingClass.cpp.

stdair::BookingClass::~BookingClass ( )
protectedvirtual

Destructor.

Definition at line 61 of file BookingClass.cpp.

Member Function Documentation

const Key_T& stdair::BookingClass::getKey ( ) const
inline

Get the booking class key.

Definition at line 37 of file BookingClass.hpp.

References _key.

const ClassCode_T& stdair::BookingClass::getClassCode ( ) const
inline

Get the booking code (part of the primary key).

Definition at line 42 of file BookingClass.hpp.

References _key, and stdair::BookingClassKey::getClassCode().

Referenced by stdair::CancellationStruct::describe(), and stdair::CancellationStruct::display().

BomAbstract* const stdair::BookingClass::getParent ( ) const
inline

Get the parent object.

Definition at line 47 of file BookingClass.hpp.

References _parent.

const HolderMap_T& stdair::BookingClass::getHolderMap ( ) const
inline

Get the map of children holders.

Definition at line 52 of file BookingClass.hpp.

References _holderMap.

const SubclassCode_T& stdair::BookingClass::getSubclassCode ( ) const
inline

Get teh sub-class code.

Definition at line 57 of file BookingClass.hpp.

References _subclassCode.

const AuthorizationLevel_T& stdair::BookingClass::getAuthorizationLevel ( ) const
inline

Get the authorisation level (AU, i.e., cumulated protection).

Definition at line 62 of file BookingClass.hpp.

References _au.

const ProtectionLevel_T& stdair::BookingClass::getProtection ( ) const
inline

Get the protection.

Definition at line 67 of file BookingClass.hpp.

References _protection.

const ProtectionLevel_T& stdair::BookingClass::getCumulatedProtection ( ) const
inline

Get the cumulated protection.

Definition at line 72 of file BookingClass.hpp.

References _cumulatedProtection.

const BookingLimit_T& stdair::BookingClass::getCumulatedBookingLimit ( ) const
inline

Get the cumulated booking limit.

Definition at line 77 of file BookingClass.hpp.

References _cumulatedBookingLimit.

const NbOfSeats_T& stdair::BookingClass::getNegotiatedSpace ( ) const
inline

Get the negotiated space.

Definition at line 82 of file BookingClass.hpp.

References _nego.

const OverbookingRate_T& stdair::BookingClass::getNoShowPercentage ( ) const
inline

Get the no-show rate.

Definition at line 87 of file BookingClass.hpp.

References _noShowPercentage.

const OverbookingRate_T& stdair::BookingClass::getCancellationPercentage ( ) const
inline

Get the cancellation rate.

Definition at line 92 of file BookingClass.hpp.

References _cancellationPercentage.

const NbOfBookings_T& stdair::BookingClass::getNbOfBookings ( ) const
inline

Get the number of bookings.

Definition at line 97 of file BookingClass.hpp.

References _nbOfBookings.

const NbOfBookings_T& stdair::BookingClass::getNbOfGroupBookings ( ) const
inline

Get the number of group bookings.

Definition at line 102 of file BookingClass.hpp.

References _groupNbOfBookings.

const NbOfBookings_T& stdair::BookingClass::getNbOfPendingGroupBookings ( ) const
inline

Get the number of pending group bookings.

Definition at line 107 of file BookingClass.hpp.

References _groupPendingNbOfBookings.

const NbOfBookings_T& stdair::BookingClass::getNbOfStaffBookings ( ) const
inline

Get the number of staff bookings.

Definition at line 112 of file BookingClass.hpp.

References _staffNbOfBookings.

const NbOfBookings_T& stdair::BookingClass::getNbOfWLBookings ( ) const
inline

Get the number of wait-list bookings.

Definition at line 117 of file BookingClass.hpp.

References _wlNbOfBookings.

const NbOfCancellations_T& stdair::BookingClass::getNbOfCancellations ( ) const
inline

Get the number of cancellations.

Definition at line 122 of file BookingClass.hpp.

References _nbOfCancellations.

const NbOfBookings_T& stdair::BookingClass::getETB ( ) const
inline

Get the expected number of passengers to board (ETB).

Definition at line 127 of file BookingClass.hpp.

References _etb.

const Availability_T& stdair::BookingClass::getNetClassAvailability ( ) const
inline

Get the net segment class availability.

Definition at line 132 of file BookingClass.hpp.

References _netClassAvailability.

const Availability_T& stdair::BookingClass::getSegmentAvailability ( ) const
inline

Get the segment class availability.

Definition at line 137 of file BookingClass.hpp.

References _segmentAvailability.

const Availability_T& stdair::BookingClass::getNetRevenueAvailability ( ) const
inline

Net revenue availability.

Definition at line 142 of file BookingClass.hpp.

References _netRevenueAvailability.

const Yield_T& stdair::BookingClass::getYield ( ) const
inline

Yield.

Definition at line 147 of file BookingClass.hpp.

References _yield.

const Yield_T& stdair::BookingClass::getAdjustedYield ( ) const
inline

Definition at line 148 of file BookingClass.hpp.

References _adjustedYield.

const MeanValue_T& stdair::BookingClass::getMean ( ) const
inline

Demand distribution.

Definition at line 151 of file BookingClass.hpp.

References _mean.

const StdDevValue_T& stdair::BookingClass::getStdDev ( ) const
inline

Definition at line 152 of file BookingClass.hpp.

References _stdDev.

const MeanValue_T& stdair::BookingClass::getPriceDemMean ( ) const
inline

Definition at line 153 of file BookingClass.hpp.

References _priceDemMean.

const StdDevValue_T& stdair::BookingClass::getPriceDemStdDev ( ) const
inline

Definition at line 154 of file BookingClass.hpp.

References _priceDemStdDev.

const MeanValue_T& stdair::BookingClass::getCumuPriceDemMean ( ) const
inline

Definition at line 155 of file BookingClass.hpp.

References _cumuPriceDemMean.

const StdDevValue_T& stdair::BookingClass::getCumuPriceDemStdDev ( ) const
inline

Definition at line 158 of file BookingClass.hpp.

References _cumuPriceDemStdDev.

const MeanValue_T& stdair::BookingClass::getProductDemMean ( ) const
inline

Definition at line 161 of file BookingClass.hpp.

References _productDemMean.

const StdDevValue_T& stdair::BookingClass::getProductDemStdDev ( ) const
inline

Definition at line 162 of file BookingClass.hpp.

References _productDemStdDev.

const GeneratedDemandVector_T& stdair::BookingClass::getGeneratedDemandVector ( ) const
inline

Generated demand vector.

Definition at line 165 of file BookingClass.hpp.

References _generatedDemandVector.

Referenced by stdair::VirtualClassStruct::getGeneratedDemandVector().

void stdair::BookingClass::setCumulatedProtection ( const ProtectionLevel_T iPL)
inline

Cumulated protection.

Definition at line 172 of file BookingClass.hpp.

References _cumulatedProtection.

void stdair::BookingClass::setProtection ( const ProtectionLevel_T iPL)
inline

Protection.

Definition at line 177 of file BookingClass.hpp.

References _protection.

void stdair::BookingClass::setCumulatedBookingLimit ( const BookingLimit_T iBL)
inline

Cumulated booking limit.

Definition at line 182 of file BookingClass.hpp.

References _cumulatedBookingLimit.

void stdair::BookingClass::setAuthorizationLevel ( const AuthorizationLevel_T iAU)
inline

Authorization level.

Definition at line 187 of file BookingClass.hpp.

References _au.

void stdair::BookingClass::setSegmentAvailability ( const Availability_T iAvl)
inline

Set availability.

Definition at line 192 of file BookingClass.hpp.

References _segmentAvailability.

void stdair::BookingClass::setYield ( const Yield_T iYield)
inline

Yield.

Definition at line 197 of file BookingClass.hpp.

References _adjustedYield, and _yield.

void stdair::BookingClass::setAdjustedYield ( const Yield_T iYield)
inline

Definition at line 201 of file BookingClass.hpp.

References _adjustedYield.

void stdair::BookingClass::setMean ( const MeanValue_T iMean)
inline

Demand distribution.

Definition at line 204 of file BookingClass.hpp.

References _mean.

void stdair::BookingClass::setStdDev ( const StdDevValue_T iStdDev)
inline

Definition at line 205 of file BookingClass.hpp.

References _stdDev.

void stdair::BookingClass::setPriceDemMean ( const MeanValue_T iMean)
inline

Definition at line 206 of file BookingClass.hpp.

References _priceDemMean.

void stdair::BookingClass::setPriceDemStdDev ( const StdDevValue_T iStdDev)
inline

Definition at line 207 of file BookingClass.hpp.

References _priceDemStdDev.

void stdair::BookingClass::setCumuPriceDemMean ( const MeanValue_T iMean)
inline

Definition at line 210 of file BookingClass.hpp.

References _cumuPriceDemMean.

void stdair::BookingClass::setCumuPriceDemStdDev ( const StdDevValue_T iStdDev)
inline

Definition at line 212 of file BookingClass.hpp.

References _cumuPriceDemStdDev.

void stdair::BookingClass::setProductDemMean ( const MeanValue_T iMean)
inline

Definition at line 215 of file BookingClass.hpp.

References _productDemMean.

void stdair::BookingClass::setProductDemStdDev ( const StdDevValue_T iStdDev)
inline

Definition at line 218 of file BookingClass.hpp.

References _productDemStdDev.

void stdair::BookingClass::toStream ( std::ostream &  ioOut) const
inlinevirtual

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Implements stdair::BomAbstract.

Definition at line 226 of file BookingClass.hpp.

References toString().

void stdair::BookingClass::fromStream ( std::istream &  ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 232 of file BookingClass.hpp.

std::string stdair::BookingClass::toString ( ) const
virtual

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 65 of file BookingClass.cpp.

References describeKey().

Referenced by toStream().

const std::string stdair::BookingClass::describeKey ( ) const
inline

Get a string describing the key.

Definition at line 239 of file BookingClass.hpp.

References _key, and stdair::BookingClassKey::toString().

Referenced by toString().

void stdair::BookingClass::sell ( const NbOfBookings_T iNbOfBookings)

Register a sale.

Definition at line 72 of file BookingClass.cpp.

References _nbOfBookings.

void stdair::BookingClass::cancel ( const NbOfBookings_T iNbOfCancellations)

Register a cancellation.

Definition at line 77 of file BookingClass.cpp.

References _nbOfBookings, and _nbOfCancellations.

void stdair::BookingClass::generateDemandSamples ( const NbOfSamples_T K)

Generate demand samples for Monte-Carlo method with the default random seed.

Definition at line 83 of file BookingClass.cpp.

References _generatedDemandVector, _mean, _stdDev, stdair::DEFAULT_RANDOM_SEED, and stdair::RandomGeneration::generateNormal().

void stdair::BookingClass::generateDemandSamples ( const NbOfSamples_T K,
const RandomSeed_T iSeed 
)

Generate demand samples for Monte-Carlo method with the given random seed.

Definition at line 95 of file BookingClass.cpp.

References _generatedDemandVector, _mean, _stdDev, and stdair::RandomGeneration::generateNormal().

Friends And Related Function Documentation

template<typename BOM >
friend class FacBom
friend

Definition at line 25 of file BookingClass.hpp.

template<typename BOM >
friend class FacCloneBom
friend

Definition at line 26 of file BookingClass.hpp.

friend class FacBomManager
friend

Definition at line 27 of file BookingClass.hpp.

Member Data Documentation

Key_T stdair::BookingClass::_key
protected

Primary key (booking class code).

Definition at line 276 of file BookingClass.hpp.

Referenced by describeKey(), getClassCode(), and getKey().

BomAbstract* stdair::BookingClass::_parent
protected

Pointer on the parent class (SegmentCabin).

Definition at line 279 of file BookingClass.hpp.

Referenced by getParent().

HolderMap_T stdair::BookingClass::_holderMap
protected

Map holding the children (SegmentDate and LegDate objects).

Definition at line 282 of file BookingClass.hpp.

Referenced by getHolderMap().

SubclassCode_T stdair::BookingClass::_subclassCode
protected

Sub-class code.

Definition at line 285 of file BookingClass.hpp.

Referenced by getSubclassCode().

ProtectionLevel_T stdair::BookingClass::_cumulatedProtection
protected

Cumulated protection.

Definition at line 288 of file BookingClass.hpp.

Referenced by getCumulatedProtection(), and setCumulatedProtection().

ProtectionLevel_T stdair::BookingClass::_protection
protected

Protection.

Definition at line 291 of file BookingClass.hpp.

Referenced by getProtection(), and setProtection().

BookingLimit_T stdair::BookingClass::_cumulatedBookingLimit
protected

Cumulated booking limit.

Definition at line 294 of file BookingClass.hpp.

Referenced by getCumulatedBookingLimit(), and setCumulatedBookingLimit().

AuthorizationLevel_T stdair::BookingClass::_au
protected

Authorization level.

Definition at line 297 of file BookingClass.hpp.

Referenced by getAuthorizationLevel(), and setAuthorizationLevel().

NbOfSeats_T stdair::BookingClass::_nego
protected

Negotiated space.

Definition at line 300 of file BookingClass.hpp.

Referenced by getNegotiatedSpace().

OverbookingRate_T stdair::BookingClass::_noShowPercentage
protected

Overbooking rate.

Definition at line 303 of file BookingClass.hpp.

Referenced by getNoShowPercentage().

OverbookingRate_T stdair::BookingClass::_cancellationPercentage
protected

Cancellation rate.

Definition at line 306 of file BookingClass.hpp.

Referenced by getCancellationPercentage().

NbOfBookings_T stdair::BookingClass::_nbOfBookings
protected

Number of bookings.

Definition at line 309 of file BookingClass.hpp.

Referenced by cancel(), getNbOfBookings(), and sell().

NbOfBookings_T stdair::BookingClass::_groupNbOfBookings
protected

Number of group bookings.

Definition at line 312 of file BookingClass.hpp.

Referenced by getNbOfGroupBookings().

NbOfBookings_T stdair::BookingClass::_groupPendingNbOfBookings
protected

Number of pending group bookings.

Definition at line 315 of file BookingClass.hpp.

Referenced by getNbOfPendingGroupBookings().

NbOfBookings_T stdair::BookingClass::_staffNbOfBookings
protected

Number of staff bookings.

Definition at line 318 of file BookingClass.hpp.

Referenced by getNbOfStaffBookings().

NbOfBookings_T stdair::BookingClass::_wlNbOfBookings
protected

Number of wait-list bookings.

Definition at line 321 of file BookingClass.hpp.

Referenced by getNbOfWLBookings().

NbOfCancellations_T stdair::BookingClass::_nbOfCancellations
protected

Number of cancellations.

Definition at line 324 of file BookingClass.hpp.

Referenced by cancel(), and getNbOfCancellations().

NbOfBookings_T stdair::BookingClass::_etb
protected

Expected to board (ETB).

Definition at line 327 of file BookingClass.hpp.

Referenced by getETB().

Availability_T stdair::BookingClass::_netClassAvailability
protected

Net segment class availability.

Definition at line 330 of file BookingClass.hpp.

Referenced by getNetClassAvailability().

Availability_T stdair::BookingClass::_segmentAvailability
protected

Segment class availability.

Definition at line 333 of file BookingClass.hpp.

Referenced by getSegmentAvailability(), and setSegmentAvailability().

Availability_T stdair::BookingClass::_netRevenueAvailability
protected

Net revenue availability.

Definition at line 336 of file BookingClass.hpp.

Referenced by getNetRevenueAvailability().

Yield_T stdair::BookingClass::_yield
protected

Yield.

Definition at line 339 of file BookingClass.hpp.

Referenced by getYield(), and setYield().

Yield_T stdair::BookingClass::_adjustedYield
protected

Definition at line 340 of file BookingClass.hpp.

Referenced by getAdjustedYield(), setAdjustedYield(), and setYield().

MeanValue_T stdair::BookingClass::_mean
protected

Demand distribution forecast.

Definition at line 343 of file BookingClass.hpp.

Referenced by generateDemandSamples(), getMean(), and setMean().

StdDevValue_T stdair::BookingClass::_stdDev
protected

Definition at line 344 of file BookingClass.hpp.

Referenced by generateDemandSamples(), getStdDev(), and setStdDev().

MeanValue_T stdair::BookingClass::_priceDemMean
protected

Price-oriented demand distribution forecast.

Definition at line 347 of file BookingClass.hpp.

Referenced by getPriceDemMean(), and setPriceDemMean().

StdDevValue_T stdair::BookingClass::_priceDemStdDev
protected

Definition at line 348 of file BookingClass.hpp.

Referenced by getPriceDemStdDev(), and setPriceDemStdDev().

MeanValue_T stdair::BookingClass::_cumuPriceDemMean
protected

Cumulative price-oriented demand distribution forecast.

Definition at line 351 of file BookingClass.hpp.

Referenced by getCumuPriceDemMean(), and setCumuPriceDemMean().

StdDevValue_T stdair::BookingClass::_cumuPriceDemStdDev
protected

Definition at line 352 of file BookingClass.hpp.

Referenced by getCumuPriceDemStdDev(), and setCumuPriceDemStdDev().

MeanValue_T stdair::BookingClass::_productDemMean
protected

Product-oriented demand distribution forecast.

Definition at line 355 of file BookingClass.hpp.

Referenced by getProductDemMean(), and setProductDemMean().

StdDevValue_T stdair::BookingClass::_productDemStdDev
protected

Definition at line 356 of file BookingClass.hpp.

Referenced by getProductDemStdDev(), and setProductDemStdDev().

GeneratedDemandVector_T stdair::BookingClass::_generatedDemandVector
protected

Vector of number of demand samples drawn from the demand distribution.

Definition at line 359 of file BookingClass.hpp.

Referenced by generateDemandSamples(), and getGeneratedDemandVector().


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