$treeview $search $mathjax
#include <stdair/bom/BookingClass.hpp>
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.
stdair::BookingClass::BookingClass | ( | const Key_T & | iKey | ) | [protected] |
Constructor.
Definition at line 49 of file BookingClass.cpp.
stdair::BookingClass::~BookingClass | ( | ) | [protected, virtual] |
Destructor.
Definition at line 61 of file BookingClass.cpp.
const Key_T& stdair::BookingClass::getKey | ( | ) | const [inline] |
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] |
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] |
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] |
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] |
const OverbookingRate_T& stdair::BookingClass::getNoShowPercentage | ( | ) | const [inline] |
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] |
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] |
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] |
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] |
void stdair::BookingClass::setSegmentAvailability | ( | const Availability_T & | iAvl | ) | [inline] |
void stdair::BookingClass::setYield | ( | const Yield_T & | iYield | ) | [inline] |
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] |
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 [inline, virtual] |
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().
void stdair::BookingClass::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
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 | ) |
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 class FacBom [friend] |
Definition at line 25 of file BookingClass.hpp.
friend class FacCloneBom [friend] |
Definition at line 26 of file BookingClass.hpp.
friend class FacBomManager [friend] |
Definition at line 27 of file BookingClass.hpp.
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] |
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().
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().
Overbooking rate.
Definition at line 303 of file BookingClass.hpp.
Referenced by getNoShowPercentage().
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().
Number of group bookings.
Definition at line 312 of file BookingClass.hpp.
Referenced by getNbOfGroupBookings().
Number of pending group bookings.
Definition at line 315 of file BookingClass.hpp.
Referenced by getNbOfPendingGroupBookings().
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().
Number of cancellations.
Definition at line 324 of file BookingClass.hpp.
Referenced by cancel(), and getNbOfCancellations().
NbOfBookings_T stdair::BookingClass::_etb [protected] |
Net segment class availability.
Definition at line 330 of file BookingClass.hpp.
Referenced by getNetClassAvailability().
Segment class availability.
Definition at line 333 of file BookingClass.hpp.
Referenced by getSegmentAvailability(), and setSegmentAvailability().
Net revenue availability.
Definition at line 336 of file BookingClass.hpp.
Referenced by getNetRevenueAvailability().
Yield_T stdair::BookingClass::_yield [protected] |
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().
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().
Vector of number of demand samples drawn from the demand distribution.
Definition at line 359 of file BookingClass.hpp.
Referenced by generateDemandSamples(), and getGeneratedDemandVector().