Class representing the actual attributes for an airline leg-cabin. More...
#include <stdair/bom/LegCabin.hpp>
Class representing the actual attributes for an airline leg-cabin.
typedef LegCabinKey stdair::LegCabin::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 33 of file LegCabin.hpp.
stdair::LegCabin::LegCabin | ( | const Key_T & | iKey | ) | [protected] |
Constructor.
Definition at line 30 of file LegCabin.cpp.
stdair::LegCabin::~LegCabin | ( | ) | [protected] |
Destructor.
Definition at line 43 of file LegCabin.cpp.
const Key_T& stdair::LegCabin::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::LegCabin::getParent | ( | ) | const [inline] |
const CabinCode_T& stdair::LegCabin::getCabinCode | ( | ) | const [inline] |
Get the cabin code (from key).
Definition at line 54 of file LegCabin.hpp.
References _key, and stdair::LegCabinKey::getCabinCode().
Referenced by stdair::jsonLegCabinExport(), and getFullerKey().
const MapKey_T stdair::LegCabin::getFullerKey | ( | ) | const |
Get the (leg-date, leg-cabin) key (board point and cabin code).
Definition at line 47 of file LegCabin.cpp.
References stdair::LegDate::describeKey(), stdair::DEFAULT_KEY_FLD_DELIMITER, and getCabinCode().
const HolderMap_T& stdair::LegCabin::getHolderMap | ( | ) | const [inline] |
const CabinCapacity_T& stdair::LegCabin::getOfferedCapacity | ( | ) | const [inline] |
Get the cabin offered capacity.
Definition at line 75 of file LegCabin.hpp.
References _offeredCapacity.
const CabinCapacity_T& stdair::LegCabin::getPhysicalCapacity | ( | ) | const [inline] |
Get the cabin physical capacity.
Definition at line 80 of file LegCabin.hpp.
References _physicalCapacity.
const NbOfSeats_T& stdair::LegCabin::getSoldSeat | ( | ) | const [inline] |
const CommittedSpace_T& stdair::LegCabin::getCommittedSpace | ( | ) | const [inline] |
Get the value of committed space.
Definition at line 90 of file LegCabin.hpp.
References _committedSpace.
const Availability_T& stdair::LegCabin::getAvailabilityPool | ( | ) | const [inline] |
Get the value of the availability pool.
Definition at line 95 of file LegCabin.hpp.
References _availabilityPool.
const Availability_T& stdair::LegCabin::getAvailability | ( | ) | const [inline] |
Get the value of the availability.
Definition at line 100 of file LegCabin.hpp.
References _availability.
const BidPrice_T& stdair::LegCabin::getCurrentBidPrice | ( | ) | const [inline] |
Get the current Bid-Price.
Definition at line 105 of file LegCabin.hpp.
References _currentBidPrice.
const BidPrice_T& stdair::LegCabin::getPreviousBidPrice | ( | ) | const [inline] |
Get the previous Bid-Price.
Definition at line 110 of file LegCabin.hpp.
References _previousBidPrice.
const BidPriceVector_T& stdair::LegCabin::getBidPriceVector | ( | ) | const [inline] |
const CapacityAdjustment_T& stdair::LegCabin::getRegradeAdjustment | ( | ) | const [inline] |
Get the capacity adjustment due to check-in (DCS) regrade.
Definition at line 120 of file LegCabin.hpp.
References _dcsRegrade.
const AuthorizationLevel_T& stdair::LegCabin::getAuthorizationLevel | ( | ) | const [inline] |
const UPR_T& stdair::LegCabin::getUPR | ( | ) | const [inline] |
const Availability_T& stdair::LegCabin::getNetAvailability | ( | ) | const [inline] |
const Availability_T& stdair::LegCabin::getGrossAvailability | ( | ) | const [inline] |
const OverbookingRate_T& stdair::LegCabin::getAvgCancellationPercentage | ( | ) | const [inline] |
Average Cancellation Percentage (ACP).
Definition at line 145 of file LegCabin.hpp.
References _acp.
const NbOfSeats_T& stdair::LegCabin::getETB | ( | ) | const [inline] |
const NbOfSeats_T& stdair::LegCabin::getStaffNbOfSeats | ( | ) | const [inline] |
Number of staff bookings.
Definition at line 155 of file LegCabin.hpp.
References _staffNbOfBookings.
const NbOfSeats_T& stdair::LegCabin::getWLNbOfSeats | ( | ) | const [inline] |
Number of wait-listed bookings.
Definition at line 160 of file LegCabin.hpp.
References _wlNbOfBookings.
const NbOfSeats_T& stdair::LegCabin::getGroupNbOfSeats | ( | ) | const [inline] |
Number of group bookings.
Definition at line 165 of file LegCabin.hpp.
References _groupNbOfBookings.
VirtualClassList_T& stdair::LegCabin::getVirtualClassList | ( | ) | [inline] |
BidPriceVector_T& stdair::LegCabin::getBidPriceVector | ( | ) | [inline] |
Reset the bid price vector and return it.
Definition at line 175 of file LegCabin.hpp.
References _bidPriceVector.
const YieldLevelDemandMap_T stdair::LegCabin::getYieldLevelDemandMap | ( | ) | [inline] |
Get the yield-demand map.
Definition at line 181 of file LegCabin.hpp.
References _yieldLevelDemandMap.
void stdair::LegCabin::setCapacities | ( | const CabinCapacity_T & | iCapacity | ) | [inline] |
Set the offered and physical capacities.
Definition at line 189 of file LegCabin.hpp.
References _offeredCapacity, _physicalCapacity, setAvailabilityPool(), and _committedSpace.
void stdair::LegCabin::setSoldSeat | ( | const NbOfSeats_T & | iSoldSeat | ) | [inline] |
void stdair::LegCabin::setCommittedSpace | ( | const CommittedSpace_T & | iCommittedSpace | ) | [inline] |
Set the value of committed space.
Definition at line 201 of file LegCabin.hpp.
References _committedSpace.
void stdair::LegCabin::setAvailabilityPool | ( | const Availability_T & | iAvailabilityPool | ) | [inline] |
Set the value of availability pool.
Definition at line 206 of file LegCabin.hpp.
References _availabilityPool.
Referenced by setCapacities().
void stdair::LegCabin::setAvailability | ( | const Availability_T & | iAvailability | ) | [inline] |
Set the value of availability.
Definition at line 211 of file LegCabin.hpp.
References _availability.
void stdair::LegCabin::setCurrentBidPrice | ( | const BidPrice_T & | iBidPrice | ) | [inline] |
Set the current Bid-Price.
Definition at line 216 of file LegCabin.hpp.
References _currentBidPrice.
void stdair::LegCabin::setPreviousBidPrice | ( | const BidPrice_T & | iBidPrice | ) | [inline] |
Set the previous Bid-Price.
Definition at line 221 of file LegCabin.hpp.
References _previousBidPrice.
void stdair::LegCabin::updatePreviousBidPrice | ( | ) | [inline] |
Update the previous bid price value with the current one.
Definition at line 226 of file LegCabin.hpp.
References _previousBidPrice, and _currentBidPrice.
void stdair::LegCabin::setRegradeAdjustment | ( | const CapacityAdjustment_T & | iRegradeAdjustment | ) | [inline] |
Get the capacity adjustment due to check-in (DCS) regrade.
Definition at line 231 of file LegCabin.hpp.
References _dcsRegrade.
void stdair::LegCabin::setAuthorizationLevel | ( | const AuthorizationLevel_T & | iAU | ) | [inline] |
void stdair::LegCabin::setUPR | ( | const UPR_T & | iUPR | ) | [inline] |
void stdair::LegCabin::setNetAvailability | ( | const Availability_T & | iNAV | ) | [inline] |
void stdair::LegCabin::setGrossAvailability | ( | const Availability_T & | iGAV | ) | [inline] |
void stdair::LegCabin::setAvgCancellationPercentage | ( | const OverbookingRate_T & | iACP | ) | [inline] |
Set the Average Cancellation Percentage (ACP).
Definition at line 256 of file LegCabin.hpp.
References _acp.
void stdair::LegCabin::setETB | ( | const NbOfSeats_T & | iETB | ) | [inline] |
void stdair::LegCabin::setStaffNbOfSeats | ( | const NbOfSeats_T & | iStaffSeats | ) | [inline] |
Set the Number of staff sold seats.
Definition at line 266 of file LegCabin.hpp.
References _staffNbOfBookings.
void stdair::LegCabin::setWLNbOfSeats | ( | const NbOfSeats_T & | iWLSeats | ) | [inline] |
Set the Number of wait-listed sold seats.
Definition at line 271 of file LegCabin.hpp.
References _wlNbOfBookings.
void stdair::LegCabin::setGroupNbOfSeats | ( | const NbOfSeats_T & | iGroupSeats | ) | [inline] |
Set the Number of group sold seats.
Definition at line 276 of file LegCabin.hpp.
References _groupNbOfBookings.
void stdair::LegCabin::updateCurrentBidPrice | ( | ) | [inline] |
Update the bid price (from bid price vector if not empty).
Definition at line 281 of file LegCabin.hpp.
References _availabilityPool, _bidPriceVector, and _currentBidPrice.
void stdair::LegCabin::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 294 of file LegCabin.hpp.
References toString().
void stdair::LegCabin::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 300 of file LegCabin.hpp.
std::string stdair::LegCabin::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 56 of file LegCabin.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::LegCabin::describeKey | ( | ) | const [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 63 of file LegCabin.cpp.
References _virtualClassList, stdair::VirtualClassStruct::getYield(), stdair::VirtualClassStruct::getCumulatedProtection(), and stdair::VirtualClassStruct::getCumulatedBookingLimit().
void stdair::LegCabin::updateFromReservation | ( | const NbOfBookings_T & | iNbOfBookings | ) |
Register a sale.
Definition at line 81 of file LegCabin.cpp.
References _committedSpace, _availabilityPool, and _offeredCapacity.
void stdair::LegCabin::addVirtualClass | ( | const VirtualClassStruct & | iVC | ) | [inline] |
Add a virtual class to the list.
Definition at line 321 of file LegCabin.hpp.
References _virtualClassList.
void stdair::LegCabin::emptyVirtualClassList | ( | ) | [inline] |
Empty the virtual class list.
Definition at line 326 of file LegCabin.hpp.
References _virtualClassList.
void stdair::LegCabin::emptyBidPriceVector | ( | ) | [inline] |
Empty the bid price vector.
Definition at line 331 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 87 of file LegCabin.cpp.
References _yieldLevelDemandMap.
void stdair::LegCabin::emptyYieldLevelDemandMap | ( | ) | [inline] |
Reset the (yield level,demand) map.
Definition at line 341 of file LegCabin.hpp.
References _yieldLevelDemandMap.
friend class FacBom [friend] |
Definition at line 25 of file LegCabin.hpp.
friend class FacBomManager [friend] |
Definition at line 26 of file LegCabin.hpp.
Key_T stdair::LegCabin::_key [protected] |
Primary key (cabin code).
Definition at line 362 of file LegCabin.hpp.
Referenced by getKey(), getCabinCode(), and describeKey().
BomAbstract* stdair::LegCabin::_parent [protected] |
Pointer on the parent class (LegDate).
Definition at line 365 of file LegCabin.hpp.
Referenced by getParent().
HolderMap_T stdair::LegCabin::_holderMap [protected] |
Map holding the children (Bucket objects).
Definition at line 368 of file LegCabin.hpp.
Referenced by getHolderMap().
CabinCapacity_T stdair::LegCabin::_offeredCapacity [protected] |
Saleable capacity of the cabin.
Definition at line 371 of file LegCabin.hpp.
Referenced by updateFromReservation(), getOfferedCapacity(), and setCapacities().
CabinCapacity_T stdair::LegCabin::_physicalCapacity [protected] |
Physical capacity of the cabin.
Definition at line 374 of file LegCabin.hpp.
Referenced by getPhysicalCapacity(), and setCapacities().
NbOfSeats_T stdair::LegCabin::_soldSeat [protected] |
Aggregated number of sold seats.
Definition at line 377 of file LegCabin.hpp.
Referenced by getSoldSeat(), and setSoldSeat().
CommittedSpace_T stdair::LegCabin::_committedSpace [protected] |
Definition at line 380 of file LegCabin.hpp.
Referenced by updateFromReservation(), getCommittedSpace(), setCapacities(), and setCommittedSpace().
Availability_T stdair::LegCabin::_availabilityPool [protected] |
Availability pool.
Definition at line 383 of file LegCabin.hpp.
Referenced by updateFromReservation(), getAvailabilityPool(), setAvailabilityPool(), and updateCurrentBidPrice().
Availability_T stdair::LegCabin::_availability [protected] |
Availability.
Definition at line 386 of file LegCabin.hpp.
Referenced by getAvailability(), and setAvailability().
BidPrice_T stdair::LegCabin::_currentBidPrice [protected] |
Current Bid-Price (BP).
Definition at line 389 of file LegCabin.hpp.
Referenced by getCurrentBidPrice(), setCurrentBidPrice(), updatePreviousBidPrice(), and updateCurrentBidPrice().
BidPrice_T stdair::LegCabin::_previousBidPrice [protected] |
Previous Bid-Price (BP).
Definition at line 392 of file LegCabin.hpp.
Referenced by getPreviousBidPrice(), setPreviousBidPrice(), and updatePreviousBidPrice().
BidPriceVector_T stdair::LegCabin::_bidPriceVector [protected] |
Bid-Price Vector (BPV).
Definition at line 395 of file LegCabin.hpp.
Referenced by getBidPriceVector(), updateCurrentBidPrice(), and emptyBidPriceVector().
List of virtual classes (for revenue management optimisation).
Definition at line 398 of file LegCabin.hpp.
Referenced by displayVirtualClassList(), getVirtualClassList(), addVirtualClass(), and emptyVirtualClassList().
Map holding the demand information indexed by yield.
Definition at line 401 of file LegCabin.hpp.
Referenced by addDemandInformation(), getYieldLevelDemandMap(), and emptyYieldLevelDemandMap().
Capacity adjustment of the cabin, due to check-in (DCS) regrade.
Definition at line 405 of file LegCabin.hpp.
Referenced by getRegradeAdjustment(), and setRegradeAdjustment().
Authorisation Level (AU).
Definition at line 408 of file LegCabin.hpp.
Referenced by getAuthorizationLevel(), and setAuthorizationLevel().
Unsold Protection (UPR).
Definition at line 411 of file LegCabin.hpp.
Net Availability (NAV).
Definition at line 414 of file LegCabin.hpp.
Referenced by getNetAvailability(), and setNetAvailability().
Gross Availability (GAV).
Definition at line 417 of file LegCabin.hpp.
Referenced by getGrossAvailability(), and setGrossAvailability().
Average Cancellation Percentage (ACP).
Definition at line 420 of file LegCabin.hpp.
Referenced by getAvgCancellationPercentage(), and setAvgCancellationPercentage().
Expected to Board (ETB).
Definition at line 423 of file LegCabin.hpp.
Number of staff bookings.
Definition at line 426 of file LegCabin.hpp.
Referenced by getStaffNbOfSeats(), and setStaffNbOfSeats().
Number of wait-listed bookings.
Definition at line 429 of file LegCabin.hpp.
Referenced by getWLNbOfSeats(), and setWLNbOfSeats().
Number of group bookings.
Definition at line 432 of file LegCabin.hpp.
Referenced by getGroupNbOfSeats(), and setGroupNbOfSeats().