Class representing the actual attributes for an airline leg-cabin. More...
#include <stdair/bom/LegCabin.hpp>
Public Types | |
typedef LegCabinKey | Key_T |
Protected Member Functions | |
LegCabin (const Key_T &) | |
~LegCabin () | |
Friends | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
Class representing the actual attributes for an airline leg-cabin.
Definition at line 25 of file LegCabin.hpp.
typedef LegCabinKey stdair::LegCabin::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 35 of file LegCabin.hpp.
|
protected |
Constructor.
Definition at line 46 of file LegCabin.cpp.
|
protected |
Destructor.
Definition at line 69 of file LegCabin.cpp.
|
inline |
|
inline |
|
inline |
Get the cabin code (from key).
Definition at line 56 of file LegCabin.hpp.
References _key, and stdair::LegCabinKey::getCabinCode().
Referenced by getFullerKey().
const MapKey_T stdair::LegCabin::getFullerKey | ( | ) | const |
Get the (leg-date, leg-cabin) key (board point and cabin code).
Definition at line 80 of file LegCabin.cpp.
References stdair::DEFAULT_KEY_FLD_DELIMITER, stdair::LegDate::describeKey(), and getCabinCode().
|
inline |
|
inline |
Get the cabin offered capacity.
Definition at line 77 of file LegCabin.hpp.
References _offeredCapacity.
|
inline |
Get the cabin physical capacity.
Definition at line 82 of file LegCabin.hpp.
References _physicalCapacity.
|
inline |
|
inline |
Get the value of committed space.
Definition at line 92 of file LegCabin.hpp.
References _committedSpace.
|
inline |
Get the value of the availability pool.
Definition at line 97 of file LegCabin.hpp.
References _availabilityPool.
|
inline |
Get the value of the availability.
Definition at line 102 of file LegCabin.hpp.
References _availability.
|
inline |
Get the current Bid-Price.
Definition at line 107 of file LegCabin.hpp.
References _currentBidPrice.
|
inline |
Get the previous Bid-Price.
Definition at line 112 of file LegCabin.hpp.
References _previousBidPrice.
|
inline |
|
inline |
Get the capacity adjustment due to check-in (DCS) regrade.
Definition at line 122 of file LegCabin.hpp.
References _dcsRegrade.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Average Cancellation Percentage (ACP).
Definition at line 147 of file LegCabin.hpp.
References _acp.
|
inline |
|
inline |
Number of staff bookings.
Definition at line 157 of file LegCabin.hpp.
References _staffNbOfBookings.
|
inline |
Number of wait-listed bookings.
Definition at line 162 of file LegCabin.hpp.
References _wlNbOfBookings.
|
inline |
Number of group bookings.
Definition at line 167 of file LegCabin.hpp.
References _groupNbOfBookings.
|
inline |
|
inline |
Reset the bid price vector and return it.
Definition at line 177 of file LegCabin.hpp.
References _bidPriceVector.
|
inline |
Get the yield-demand map.
Definition at line 183 of file LegCabin.hpp.
References _yieldLevelDemandMap.
void stdair::LegCabin::setCapacities | ( | const CabinCapacity_T & | iCapacity | ) |
Set the offered and physical capacities.
Definition at line 73 of file LegCabin.cpp.
References _committedSpace, _offeredCapacity, _physicalCapacity, and setAvailabilityPool().
|
inline |
|
inline |
Set the value of committed space.
Definition at line 199 of file LegCabin.hpp.
References _committedSpace.
|
inline |
Set the value of availability pool.
Definition at line 204 of file LegCabin.hpp.
References _availabilityPool.
Referenced by setCapacities().
|
inline |
Set the value of availability.
Definition at line 209 of file LegCabin.hpp.
References _availability.
|
inline |
Set the current Bid-Price.
Definition at line 214 of file LegCabin.hpp.
References _currentBidPrice.
|
inline |
Set the previous Bid-Price.
Definition at line 219 of file LegCabin.hpp.
References _previousBidPrice.
|
inline |
Update the previous bid price value with the current one.
Definition at line 224 of file LegCabin.hpp.
References _currentBidPrice, and _previousBidPrice.
|
inline |
Get the capacity adjustment due to check-in (DCS) regrade.
Definition at line 229 of file LegCabin.hpp.
References _dcsRegrade.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the Average Cancellation Percentage (ACP).
Definition at line 254 of file LegCabin.hpp.
References _acp.
|
inline |
|
inline |
Set the Number of staff sold seats.
Definition at line 264 of file LegCabin.hpp.
References _staffNbOfBookings.
|
inline |
Set the Number of wait-listed sold seats.
Definition at line 269 of file LegCabin.hpp.
References _wlNbOfBookings.
|
inline |
Set the Number of group sold seats.
Definition at line 274 of file LegCabin.hpp.
References _groupNbOfBookings.
void stdair::LegCabin::updateCurrentBidPrice | ( | ) |
Update the bid price (from bid price vector if not empty).
Definition at line 120 of file LegCabin.cpp.
References _availabilityPool, _bidPriceVector, and _currentBidPrice.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 288 of file LegCabin.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 296 of file LegCabin.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 89 of file LegCabin.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 307 of file LegCabin.hpp.
References _key, and stdair::LegCabinKey::toString().
Referenced by toString().
const std::string stdair::LegCabin::displayVirtualClassList | ( | ) | const |
Display the virtual class list content.
Definition at line 96 of file LegCabin.cpp.
References _virtualClassList, stdair::VirtualClassStruct::getCumulatedBookingLimit(), stdair::VirtualClassStruct::getCumulatedProtection(), and stdair::VirtualClassStruct::getYield().
void stdair::LegCabin::updateFromReservation | ( | const NbOfBookings_T & | iNbOfBookings | ) |
Register a sale.
Definition at line 114 of file LegCabin.cpp.
References _availabilityPool, _committedSpace, and _offeredCapacity.
|
inline |
Add a virtual class to the list.
Definition at line 327 of file LegCabin.hpp.
References _virtualClassList.
|
inline |
Empty the virtual class list.
Definition at line 334 of file LegCabin.hpp.
References _virtualClassList.
|
inline |
Empty the bid price vector.
Definition at line 341 of file LegCabin.hpp.
References _bidPriceVector.
void stdair::LegCabin::addDemandInformation | ( | const YieldValue_T & | iYield, |
const MeanValue_T & | iMeanValue, | ||
const StdDevValue_T & | iStdDevValue | ||
) |
Add demand information.
Definition at line 133 of file LegCabin.cpp.
References _yieldLevelDemandMap.
|
inline |
Reset the (yield level,demand) map.
Definition at line 354 of file LegCabin.hpp.
References _yieldLevelDemandMap.
|
friend |
Definition at line 26 of file LegCabin.hpp.
|
friend |
Definition at line 27 of file LegCabin.hpp.
|
friend |
Definition at line 28 of file LegCabin.hpp.
|
protected |
Primary key (cabin code).
Definition at line 387 of file LegCabin.hpp.
Referenced by describeKey(), getCabinCode(), and getKey().
|
protected |
Pointer on the parent class (LegDate).
Definition at line 392 of file LegCabin.hpp.
Referenced by getParent().
|
protected |
Map holding the children (Bucket objects).
Definition at line 397 of file LegCabin.hpp.
Referenced by getHolderMap().
|
protected |
Saleable capacity of the cabin.
Definition at line 400 of file LegCabin.hpp.
Referenced by getOfferedCapacity(), setCapacities(), and updateFromReservation().
|
protected |
Physical capacity of the cabin.
Definition at line 403 of file LegCabin.hpp.
Referenced by getPhysicalCapacity(), and setCapacities().
|
protected |
Aggregated number of sold seats.
Definition at line 406 of file LegCabin.hpp.
Referenced by getSoldSeat(), and setSoldSeat().
|
protected |
Definition at line 409 of file LegCabin.hpp.
Referenced by getCommittedSpace(), setCapacities(), setCommittedSpace(), and updateFromReservation().
|
protected |
Availability pool.
Definition at line 412 of file LegCabin.hpp.
Referenced by getAvailabilityPool(), setAvailabilityPool(), updateCurrentBidPrice(), and updateFromReservation().
|
protected |
Availability.
Definition at line 415 of file LegCabin.hpp.
Referenced by getAvailability(), and setAvailability().
|
protected |
Current Bid-Price (BP).
Definition at line 418 of file LegCabin.hpp.
Referenced by getCurrentBidPrice(), setCurrentBidPrice(), updateCurrentBidPrice(), and updatePreviousBidPrice().
|
protected |
Previous Bid-Price (BP).
Definition at line 421 of file LegCabin.hpp.
Referenced by getPreviousBidPrice(), setPreviousBidPrice(), and updatePreviousBidPrice().
|
protected |
Bid-Price Vector (BPV).
Definition at line 424 of file LegCabin.hpp.
Referenced by emptyBidPriceVector(), getBidPriceVector(), and updateCurrentBidPrice().
|
protected |
List of virtual classes (for revenue management optimisation).
Definition at line 427 of file LegCabin.hpp.
Referenced by addVirtualClass(), displayVirtualClassList(), emptyVirtualClassList(), and getVirtualClassList().
|
protected |
Map holding the demand information indexed by yield.
Definition at line 430 of file LegCabin.hpp.
Referenced by addDemandInformation(), emptyYieldLevelDemandMap(), and getYieldLevelDemandMap().
CapacityAdjustment_T stdair::LegCabin::_dcsRegrade |
Capacity adjustment of the cabin, due to check-in (DCS) regrade.
Definition at line 435 of file LegCabin.hpp.
Referenced by getRegradeAdjustment(), and setRegradeAdjustment().
AuthorizationLevel_T stdair::LegCabin::_au |
Authorisation Level (AU).
Definition at line 438 of file LegCabin.hpp.
Referenced by getAuthorizationLevel(), and setAuthorizationLevel().
UPR_T stdair::LegCabin::_upr |
Unsold Protection (UPR).
Definition at line 441 of file LegCabin.hpp.
Availability_T stdair::LegCabin::_nav |
Net Availability (NAV).
Definition at line 444 of file LegCabin.hpp.
Referenced by getNetAvailability(), and setNetAvailability().
Availability_T stdair::LegCabin::_gav |
Gross Availability (GAV).
Definition at line 447 of file LegCabin.hpp.
Referenced by getGrossAvailability(), and setGrossAvailability().
OverbookingRate_T stdair::LegCabin::_acp |
Average Cancellation Percentage (ACP).
Definition at line 450 of file LegCabin.hpp.
Referenced by getAvgCancellationPercentage(), and setAvgCancellationPercentage().
NbOfSeats_T stdair::LegCabin::_etb |
Expected to Board (ETB).
Definition at line 453 of file LegCabin.hpp.
NbOfSeats_T stdair::LegCabin::_staffNbOfBookings |
Number of staff bookings.
Definition at line 456 of file LegCabin.hpp.
Referenced by getStaffNbOfSeats(), and setStaffNbOfSeats().
NbOfSeats_T stdair::LegCabin::_wlNbOfBookings |
Number of wait-listed bookings.
Definition at line 459 of file LegCabin.hpp.
Referenced by getWLNbOfSeats(), and setWLNbOfSeats().
NbOfSeats_T stdair::LegCabin::_groupNbOfBookings |
Number of group bookings.
Definition at line 462 of file LegCabin.hpp.
Referenced by getGroupNbOfSeats(), and setGroupNbOfSeats().