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.
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.
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 getFullerKey(), and stdair::jsonLegCabinExport().
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().
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 | ) |
Set the offered and physical capacities.
Definition at line 47 of file LegCabin.cpp.
References _committedSpace, _offeredCapacity, _physicalCapacity, and setAvailabilityPool().
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 197 of file LegCabin.hpp.
References _committedSpace.
void stdair::LegCabin::setAvailabilityPool | ( | const Availability_T & | iAvailabilityPool | ) | [inline] |
Set the value of availability pool.
Definition at line 202 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 207 of file LegCabin.hpp.
References _availability.
void stdair::LegCabin::setCurrentBidPrice | ( | const BidPrice_T & | iBidPrice | ) | [inline] |
Set the current Bid-Price.
Definition at line 212 of file LegCabin.hpp.
References _currentBidPrice.
void stdair::LegCabin::setPreviousBidPrice | ( | const BidPrice_T & | iBidPrice | ) | [inline] |
Set the previous Bid-Price.
Definition at line 217 of file LegCabin.hpp.
References _previousBidPrice.
void stdair::LegCabin::updatePreviousBidPrice | ( | ) | [inline] |
Update the previous bid price value with the current one.
Definition at line 222 of file LegCabin.hpp.
References _currentBidPrice, and _previousBidPrice.
void stdair::LegCabin::setRegradeAdjustment | ( | const CapacityAdjustment_T & | iRegradeAdjustment | ) | [inline] |
Get the capacity adjustment due to check-in (DCS) regrade.
Definition at line 227 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 252 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 262 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 267 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 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.
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 286 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 294 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 63 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 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.
void stdair::LegCabin::addVirtualClass | ( | const VirtualClassStruct & | iVC | ) | [inline] |
Add a virtual class to the list.
Definition at line 325 of file LegCabin.hpp.
References _virtualClassList.
void stdair::LegCabin::emptyVirtualClassList | ( | ) | [inline] |
Empty the virtual class list.
Definition at line 332 of file LegCabin.hpp.
References _virtualClassList.
void stdair::LegCabin::emptyBidPriceVector | ( | ) | [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.
void stdair::LegCabin::emptyYieldLevelDemandMap | ( | ) | [inline] |
Reset the (yield level,demand) map.
Definition at line 352 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 385 of file LegCabin.hpp.
Referenced by describeKey(), getCabinCode(), and getKey().
BomAbstract* stdair::LegCabin::_parent [protected] |
Pointer on the parent class (LegDate).
Definition at line 390 of file LegCabin.hpp.
Referenced by getParent().
HolderMap_T stdair::LegCabin::_holderMap [protected] |
Map holding the children (Bucket objects).
Definition at line 395 of file LegCabin.hpp.
Referenced by getHolderMap().
CabinCapacity_T stdair::LegCabin::_offeredCapacity [protected] |
Saleable capacity of the cabin.
Definition at line 398 of file LegCabin.hpp.
Referenced by getOfferedCapacity(), setCapacities(), and updateFromReservation().
CabinCapacity_T stdair::LegCabin::_physicalCapacity [protected] |
Physical capacity of the cabin.
Definition at line 401 of file LegCabin.hpp.
Referenced by getPhysicalCapacity(), and setCapacities().
NbOfSeats_T stdair::LegCabin::_soldSeat [protected] |
Aggregated number of sold seats.
Definition at line 404 of file LegCabin.hpp.
Referenced by getSoldSeat(), and setSoldSeat().
CommittedSpace_T stdair::LegCabin::_committedSpace [protected] |
Definition at line 407 of file LegCabin.hpp.
Referenced by getCommittedSpace(), setCapacities(), setCommittedSpace(), and updateFromReservation().
Availability_T stdair::LegCabin::_availabilityPool [protected] |
Availability pool.
Definition at line 410 of file LegCabin.hpp.
Referenced by getAvailabilityPool(), setAvailabilityPool(), updateCurrentBidPrice(), and updateFromReservation().
Availability_T stdair::LegCabin::_availability [protected] |
Availability.
Definition at line 413 of file LegCabin.hpp.
Referenced by getAvailability(), and setAvailability().
BidPrice_T stdair::LegCabin::_currentBidPrice [protected] |
Current Bid-Price (BP).
Definition at line 416 of file LegCabin.hpp.
Referenced by getCurrentBidPrice(), setCurrentBidPrice(), updateCurrentBidPrice(), and updatePreviousBidPrice().
BidPrice_T stdair::LegCabin::_previousBidPrice [protected] |
Previous Bid-Price (BP).
Definition at line 419 of file LegCabin.hpp.
Referenced by getPreviousBidPrice(), setPreviousBidPrice(), and updatePreviousBidPrice().
BidPriceVector_T stdair::LegCabin::_bidPriceVector [protected] |
Bid-Price Vector (BPV).
Definition at line 422 of file LegCabin.hpp.
Referenced by emptyBidPriceVector(), getBidPriceVector(), and updateCurrentBidPrice().
List of virtual classes (for revenue management optimisation).
Definition at line 425 of file LegCabin.hpp.
Referenced by addVirtualClass(), displayVirtualClassList(), emptyVirtualClassList(), and getVirtualClassList().
Map holding the demand information indexed by yield.
Definition at line 428 of file LegCabin.hpp.
Referenced by addDemandInformation(), emptyYieldLevelDemandMap(), and getYieldLevelDemandMap().
Capacity adjustment of the cabin, due to check-in (DCS) regrade.
Definition at line 433 of file LegCabin.hpp.
Referenced by getRegradeAdjustment(), and setRegradeAdjustment().
Authorisation Level (AU).
Definition at line 436 of file LegCabin.hpp.
Referenced by getAuthorizationLevel(), and setAuthorizationLevel().
Unsold Protection (UPR).
Definition at line 439 of file LegCabin.hpp.
Net Availability (NAV).
Definition at line 442 of file LegCabin.hpp.
Referenced by getNetAvailability(), and setNetAvailability().
Gross Availability (GAV).
Definition at line 445 of file LegCabin.hpp.
Referenced by getGrossAvailability(), and setGrossAvailability().
Average Cancellation Percentage (ACP).
Definition at line 448 of file LegCabin.hpp.
Referenced by getAvgCancellationPercentage(), and setAvgCancellationPercentage().
Expected to Board (ETB).
Definition at line 451 of file LegCabin.hpp.
Number of staff bookings.
Definition at line 454 of file LegCabin.hpp.
Referenced by getStaffNbOfSeats(), and setStaffNbOfSeats().
Number of wait-listed bookings.
Definition at line 457 of file LegCabin.hpp.
Referenced by getWLNbOfSeats(), and setWLNbOfSeats().
Number of group bookings.
Definition at line 460 of file LegCabin.hpp.
Referenced by getGroupNbOfSeats(), and setGroupNbOfSeats().