#include <stdair/bom/BookingClass.hpp>
Public Types | |
typedef BookingClassKey | Key_T |
Protected Member Functions | |
BookingClass (const Key_T &) | |
virtual | ~BookingClass () |
Friends | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
Class representing the actual attributes for an airline booking class.
Definition at line 24 of file BookingClass.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 32 of file BookingClass.hpp.
|
protected |
Constructor.
Definition at line 49 of file BookingClass.cpp.
|
protectedvirtual |
Destructor.
Definition at line 61 of file BookingClass.cpp.
|
inline |
|
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().
|
inline |
|
inline |
Get the map of children holders.
Definition at line 52 of file BookingClass.hpp.
References _holderMap.
|
inline |
|
inline |
Get the authorisation level (AU, i.e., cumulated protection).
Definition at line 62 of file BookingClass.hpp.
References _au.
|
inline |
|
inline |
Get the cumulated protection.
Definition at line 72 of file BookingClass.hpp.
References _cumulatedProtection.
|
inline |
Get the cumulated booking limit.
Definition at line 77 of file BookingClass.hpp.
References _cumulatedBookingLimit.
|
inline |
|
inline |
|
inline |
Get the cancellation rate.
Definition at line 92 of file BookingClass.hpp.
References _cancellationPercentage.
|
inline |
Get the number of bookings.
Definition at line 97 of file BookingClass.hpp.
References _nbOfBookings.
|
inline |
Get the number of group bookings.
Definition at line 102 of file BookingClass.hpp.
References _groupNbOfBookings.
|
inline |
Get the number of pending group bookings.
Definition at line 107 of file BookingClass.hpp.
References _groupPendingNbOfBookings.
|
inline |
Get the number of staff bookings.
Definition at line 112 of file BookingClass.hpp.
References _staffNbOfBookings.
|
inline |
Get the number of wait-list bookings.
Definition at line 117 of file BookingClass.hpp.
References _wlNbOfBookings.
|
inline |
Get the number of cancellations.
Definition at line 122 of file BookingClass.hpp.
References _nbOfCancellations.
|
inline |
Get the expected number of passengers to board (ETB).
Definition at line 127 of file BookingClass.hpp.
References _etb.
|
inline |
Get the net segment class availability.
Definition at line 132 of file BookingClass.hpp.
References _netClassAvailability.
|
inline |
Get the segment class availability.
Definition at line 137 of file BookingClass.hpp.
References _segmentAvailability.
|
inline |
Net revenue availability.
Definition at line 142 of file BookingClass.hpp.
References _netRevenueAvailability.
|
inline |
|
inline |
Definition at line 148 of file BookingClass.hpp.
References _adjustedYield.
|
inline |
|
inline |
Definition at line 152 of file BookingClass.hpp.
References _stdDev.
|
inline |
Definition at line 153 of file BookingClass.hpp.
References _priceDemMean.
|
inline |
Definition at line 154 of file BookingClass.hpp.
References _priceDemStdDev.
|
inline |
Definition at line 155 of file BookingClass.hpp.
References _cumuPriceDemMean.
|
inline |
Definition at line 158 of file BookingClass.hpp.
References _cumuPriceDemStdDev.
|
inline |
Definition at line 161 of file BookingClass.hpp.
References _productDemMean.
|
inline |
Definition at line 162 of file BookingClass.hpp.
References _productDemStdDev.
|
inline |
Generated demand vector.
Definition at line 165 of file BookingClass.hpp.
References _generatedDemandVector.
Referenced by stdair::VirtualClassStruct::getGeneratedDemandVector().
|
inline |
Cumulated protection.
Definition at line 172 of file BookingClass.hpp.
References _cumulatedProtection.
|
inline |
|
inline |
Cumulated booking limit.
Definition at line 182 of file BookingClass.hpp.
References _cumulatedBookingLimit.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 201 of file BookingClass.hpp.
References _adjustedYield.
|
inline |
|
inline |
Definition at line 205 of file BookingClass.hpp.
References _stdDev.
|
inline |
Definition at line 206 of file BookingClass.hpp.
References _priceDemMean.
|
inline |
Definition at line 207 of file BookingClass.hpp.
References _priceDemStdDev.
|
inline |
Definition at line 210 of file BookingClass.hpp.
References _cumuPriceDemMean.
|
inline |
Definition at line 212 of file BookingClass.hpp.
References _cumuPriceDemStdDev.
|
inline |
Definition at line 215 of file BookingClass.hpp.
References _productDemMean.
|
inline |
Definition at line 218 of file BookingClass.hpp.
References _productDemStdDev.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 226 of file BookingClass.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 232 of file BookingClass.hpp.
|
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().
|
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 | ) |
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().
|
friend |
Definition at line 25 of file BookingClass.hpp.
|
friend |
Definition at line 26 of file BookingClass.hpp.
|
friend |
Definition at line 27 of file BookingClass.hpp.
|
protected |
Primary key (booking class code).
Definition at line 276 of file BookingClass.hpp.
Referenced by describeKey(), getClassCode(), and getKey().
|
protected |
Pointer on the parent class (SegmentCabin).
Definition at line 279 of file BookingClass.hpp.
Referenced by getParent().
|
protected |
Map holding the children (SegmentDate and LegDate objects).
Definition at line 282 of file BookingClass.hpp.
Referenced by getHolderMap().
|
protected |
|
protected |
Cumulated protection.
Definition at line 288 of file BookingClass.hpp.
Referenced by getCumulatedProtection(), and setCumulatedProtection().
|
protected |
Protection.
Definition at line 291 of file BookingClass.hpp.
Referenced by getProtection(), and setProtection().
|
protected |
Cumulated booking limit.
Definition at line 294 of file BookingClass.hpp.
Referenced by getCumulatedBookingLimit(), and setCumulatedBookingLimit().
|
protected |
Authorization level.
Definition at line 297 of file BookingClass.hpp.
Referenced by getAuthorizationLevel(), and setAuthorizationLevel().
|
protected |
Negotiated space.
Definition at line 300 of file BookingClass.hpp.
Referenced by getNegotiatedSpace().
|
protected |
Overbooking rate.
Definition at line 303 of file BookingClass.hpp.
Referenced by getNoShowPercentage().
|
protected |
Cancellation rate.
Definition at line 306 of file BookingClass.hpp.
Referenced by getCancellationPercentage().
|
protected |
Number of bookings.
Definition at line 309 of file BookingClass.hpp.
Referenced by cancel(), getNbOfBookings(), and sell().
|
protected |
Number of group bookings.
Definition at line 312 of file BookingClass.hpp.
Referenced by getNbOfGroupBookings().
|
protected |
Number of pending group bookings.
Definition at line 315 of file BookingClass.hpp.
Referenced by getNbOfPendingGroupBookings().
|
protected |
Number of staff bookings.
Definition at line 318 of file BookingClass.hpp.
Referenced by getNbOfStaffBookings().
|
protected |
Number of wait-list bookings.
Definition at line 321 of file BookingClass.hpp.
Referenced by getNbOfWLBookings().
|
protected |
Number of cancellations.
Definition at line 324 of file BookingClass.hpp.
Referenced by cancel(), and getNbOfCancellations().
|
protected |
|
protected |
Net segment class availability.
Definition at line 330 of file BookingClass.hpp.
Referenced by getNetClassAvailability().
|
protected |
Segment class availability.
Definition at line 333 of file BookingClass.hpp.
Referenced by getSegmentAvailability(), and setSegmentAvailability().
|
protected |
Net revenue availability.
Definition at line 336 of file BookingClass.hpp.
Referenced by getNetRevenueAvailability().
|
protected |
|
protected |
Definition at line 340 of file BookingClass.hpp.
Referenced by getAdjustedYield(), setAdjustedYield(), and setYield().
|
protected |
Demand distribution forecast.
Definition at line 343 of file BookingClass.hpp.
Referenced by generateDemandSamples(), getMean(), and setMean().
|
protected |
Definition at line 344 of file BookingClass.hpp.
Referenced by generateDemandSamples(), getStdDev(), and setStdDev().
|
protected |
Price-oriented demand distribution forecast.
Definition at line 347 of file BookingClass.hpp.
Referenced by getPriceDemMean(), and setPriceDemMean().
|
protected |
Definition at line 348 of file BookingClass.hpp.
Referenced by getPriceDemStdDev(), and setPriceDemStdDev().
|
protected |
Cumulative price-oriented demand distribution forecast.
Definition at line 351 of file BookingClass.hpp.
Referenced by getCumuPriceDemMean(), and setCumuPriceDemMean().
|
protected |
Definition at line 352 of file BookingClass.hpp.
Referenced by getCumuPriceDemStdDev(), and setCumuPriceDemStdDev().
|
protected |
Product-oriented demand distribution forecast.
Definition at line 355 of file BookingClass.hpp.
Referenced by getProductDemMean(), and setProductDemMean().
|
protected |
Definition at line 356 of file BookingClass.hpp.
Referenced by getProductDemStdDev(), and setProductDemStdDev().
|
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().