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 | |
class | FacBom |
class | FacBomManager |
Class representing the actual attributes for an airline leg-cabin.
Definition at line 24 of file LegCabin.hpp.
typedef LegCabinKey stdair::LegCabin::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 33 of file LegCabin.hpp.
|
protected |
Constructor.
Definition at line 30 of file LegCabin.cpp.
|
protected |
Destructor.
Definition at line 43 of file LegCabin.cpp.
|
inline |
|
inline |
|
inline |
Get the cabin code (from key).
Definition at line 54 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 54 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 75 of file LegCabin.hpp.
References _offeredCapacity.
|
inline |
Get the cabin physical capacity.
Definition at line 80 of file LegCabin.hpp.
References _physicalCapacity.
|
inline |
|
inline |
Get the value of committed space.
Definition at line 90 of file LegCabin.hpp.
References _committedSpace.
|
inline |
Get the value of the availability pool.
Definition at line 95 of file LegCabin.hpp.
References _availabilityPool.
|
inline |
Get the value of the availability.
Definition at line 100 of file LegCabin.hpp.
References _availability.
|
inline |
Get the current Bid-Price.
Definition at line 105 of file LegCabin.hpp.
References _currentBidPrice.
|
inline |
Get the previous Bid-Price.
Definition at line 110 of file LegCabin.hpp.
References _previousBidPrice.
|
inline |
|
inline |
Get the capacity adjustment due to check-in (DCS) regrade.
Definition at line 120 of file LegCabin.hpp.
References _dcsRegrade.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Average Cancellation Percentage (ACP).
Definition at line 145 of file LegCabin.hpp.
References _acp.
|
inline |
|
inline |
Number of staff bookings.
Definition at line 155 of file LegCabin.hpp.
References _staffNbOfBookings.
|
inline |
Number of wait-listed bookings.
Definition at line 160 of file LegCabin.hpp.
References _wlNbOfBookings.
|
inline |
Number of group bookings.
Definition at line 165 of file LegCabin.hpp.
References _groupNbOfBookings.
|
inline |
|
inline |
Reset the bid price vector and return it.
Definition at line 175 of file LegCabin.hpp.
References _bidPriceVector.
|
inline |
Get the yield-demand map.
Definition at line 181 of file LegCabin.hpp.
References _yieldLevelDemandMap.
void stdair::LegCabin::setCapacities | ( | const CabinCapacity_T & | iCapacity | ) |
Set the offered and physical capacities.
Definition at line 47 of file LegCabin.cpp.
References _committedSpace, _offeredCapacity, _physicalCapacity, and setAvailabilityPool().
|
inline |
|
inline |
Set the value of committed space.
Definition at line 197 of file LegCabin.hpp.
References _committedSpace.
|
inline |
Set the value of availability pool.
Definition at line 202 of file LegCabin.hpp.
References _availabilityPool.
Referenced by setCapacities().
|
inline |
Set the value of availability.
Definition at line 207 of file LegCabin.hpp.
References _availability.
|
inline |
Set the current Bid-Price.
Definition at line 212 of file LegCabin.hpp.
References _currentBidPrice.
|
inline |
Set the previous Bid-Price.
Definition at line 217 of file LegCabin.hpp.
References _previousBidPrice.
|
inline |
Update the previous bid price value with the current one.
Definition at line 222 of file LegCabin.hpp.
References _currentBidPrice, and _previousBidPrice.
|
inline |
Get the capacity adjustment due to check-in (DCS) regrade.
Definition at line 227 of file LegCabin.hpp.
References _dcsRegrade.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the Average Cancellation Percentage (ACP).
Definition at line 252 of file LegCabin.hpp.
References _acp.
|
inline |
|
inline |
Set the Number of staff sold seats.
Definition at line 262 of file LegCabin.hpp.
References _staffNbOfBookings.
|
inline |
Set the Number of wait-listed sold seats.
Definition at line 267 of file LegCabin.hpp.
References _wlNbOfBookings.
|
inline |
Set the Number of group sold seats.
Definition at line 272 of file LegCabin.hpp.
References _groupNbOfBookings.
void stdair::LegCabin::updateCurrentBidPrice | ( | ) |
Update the bid price (from bid price vector if not empty).
Definition at line 94 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 286 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 294 of file LegCabin.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 63 of file LegCabin.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 305 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 70 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 88 of file LegCabin.cpp.
References _availabilityPool, _committedSpace, and _offeredCapacity.
|
inline |
Add a virtual class to the list.
Definition at line 325 of file LegCabin.hpp.
References _virtualClassList.
|
inline |
Empty the virtual class list.
Definition at line 332 of file LegCabin.hpp.
References _virtualClassList.
|
inline |
Empty the bid price vector.
Definition at line 339 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 107 of file LegCabin.cpp.
References _yieldLevelDemandMap.
|
inline |
Reset the (yield level,demand) map.
Definition at line 352 of file LegCabin.hpp.
References _yieldLevelDemandMap.
|
friend |
Definition at line 25 of file LegCabin.hpp.
|
friend |
Definition at line 26 of file LegCabin.hpp.
|
protected |
Primary key (cabin code).
Definition at line 385 of file LegCabin.hpp.
Referenced by describeKey(), getCabinCode(), and getKey().
|
protected |
Pointer on the parent class (LegDate).
Definition at line 390 of file LegCabin.hpp.
Referenced by getParent().
|
protected |
Map holding the children (Bucket objects).
Definition at line 395 of file LegCabin.hpp.
Referenced by getHolderMap().
|
protected |
Saleable capacity of the cabin.
Definition at line 398 of file LegCabin.hpp.
Referenced by getOfferedCapacity(), setCapacities(), and updateFromReservation().
|
protected |
Physical capacity of the cabin.
Definition at line 401 of file LegCabin.hpp.
Referenced by getPhysicalCapacity(), and setCapacities().
|
protected |
Aggregated number of sold seats.
Definition at line 404 of file LegCabin.hpp.
Referenced by getSoldSeat(), and setSoldSeat().
|
protected |
Definition at line 407 of file LegCabin.hpp.
Referenced by getCommittedSpace(), setCapacities(), setCommittedSpace(), and updateFromReservation().
|
protected |
Availability pool.
Definition at line 410 of file LegCabin.hpp.
Referenced by getAvailabilityPool(), setAvailabilityPool(), updateCurrentBidPrice(), and updateFromReservation().
|
protected |
Availability.
Definition at line 413 of file LegCabin.hpp.
Referenced by getAvailability(), and setAvailability().
|
protected |
Current Bid-Price (BP).
Definition at line 416 of file LegCabin.hpp.
Referenced by getCurrentBidPrice(), setCurrentBidPrice(), updateCurrentBidPrice(), and updatePreviousBidPrice().
|
protected |
Previous Bid-Price (BP).
Definition at line 419 of file LegCabin.hpp.
Referenced by getPreviousBidPrice(), setPreviousBidPrice(), and updatePreviousBidPrice().
|
protected |
Bid-Price Vector (BPV).
Definition at line 422 of file LegCabin.hpp.
Referenced by emptyBidPriceVector(), getBidPriceVector(), and updateCurrentBidPrice().
|
protected |
List of virtual classes (for revenue management optimisation).
Definition at line 425 of file LegCabin.hpp.
Referenced by addVirtualClass(), displayVirtualClassList(), emptyVirtualClassList(), and getVirtualClassList().
|
protected |
Map holding the demand information indexed by yield.
Definition at line 428 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 433 of file LegCabin.hpp.
Referenced by getRegradeAdjustment(), and setRegradeAdjustment().
AuthorizationLevel_T stdair::LegCabin::_au |
Authorisation Level (AU).
Definition at line 436 of file LegCabin.hpp.
Referenced by getAuthorizationLevel(), and setAuthorizationLevel().
UPR_T stdair::LegCabin::_upr |
Unsold Protection (UPR).
Definition at line 439 of file LegCabin.hpp.
Availability_T stdair::LegCabin::_nav |
Net Availability (NAV).
Definition at line 442 of file LegCabin.hpp.
Referenced by getNetAvailability(), and setNetAvailability().
Availability_T stdair::LegCabin::_gav |
Gross Availability (GAV).
Definition at line 445 of file LegCabin.hpp.
Referenced by getGrossAvailability(), and setGrossAvailability().
OverbookingRate_T stdair::LegCabin::_acp |
Average Cancellation Percentage (ACP).
Definition at line 448 of file LegCabin.hpp.
Referenced by getAvgCancellationPercentage(), and setAvgCancellationPercentage().
NbOfSeats_T stdair::LegCabin::_etb |
Expected to Board (ETB).
Definition at line 451 of file LegCabin.hpp.
NbOfSeats_T stdair::LegCabin::_staffNbOfBookings |
Number of staff bookings.
Definition at line 454 of file LegCabin.hpp.
Referenced by getStaffNbOfSeats(), and setStaffNbOfSeats().
NbOfSeats_T stdair::LegCabin::_wlNbOfBookings |
Number of wait-listed bookings.
Definition at line 457 of file LegCabin.hpp.
Referenced by getWLNbOfSeats(), and setWLNbOfSeats().
NbOfSeats_T stdair::LegCabin::_groupNbOfBookings |
Number of group bookings.
Definition at line 460 of file LegCabin.hpp.
Referenced by getGroupNbOfSeats(), and setGroupNbOfSeats().