Class representing the actual attributes for an airline segment-cabin. More...
#include <stdair/bom/SegmentCabin.hpp>
Public Types | |
typedef SegmentCabinKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const HolderMap_T & | getHolderMap () const |
const CabinCode_T & | getCabinCode () const |
const MapKey_T | getFullerKey () const |
const SegmentSnapshotTable & | getSegmentSnapshotTable () const |
const CabinCapacity_T & | getCapacity () const |
const BlockSpace_T & | getBlockSpace () const |
const BlockSpace_T & | getMIN () const |
const UPR_T & | getUPR () const |
const NbOfBookings_T & | getBookingCounter () const |
const CommittedSpace_T & | getCommittedSpace () const |
const Availability_T & | getAvailabilityPool () const |
const BidPrice_T & | getCurrentBidPrice () const |
const BidPriceVector_T & | getBidPriceVector () const |
const bool | getFareFamilyStatus () const |
const PolicyList_T & | getConvexHull () const |
void | setSegmentSnapshotTable (SegmentSnapshotTable &ioTable) |
void | setCapacity (const CabinCapacity_T &iCapacity) |
void | setBlockSpace (const BlockSpace_T &iBlockSpace) |
void | setMIN (const BlockSpace_T &iMIN) |
void | setUPR (const UPR_T &iUPR) |
void | setBookingCounter (const NbOfBookings_T &iBookingCounter) |
void | setCommittedSpace (const CommittedSpace_T &iCommittedSpace) |
void | setAvailabilityPool (const Availability_T &iAvailabilityPool) |
void | setBidPriceVector (const BidPriceVector_T &iBPV) |
void | activateFareFamily () |
void | updateFromReservation (const NbOfBookings_T &) |
void | resetConvexHull () |
void | addPolicy (Policy &) |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
const std::string | describeConvexHull () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Protected Member Functions | |
SegmentCabin (const Key_T &) | |
virtual | ~SegmentCabin () |
Friends | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
class | boost::serialization::access |
template<class T > | |
struct | boost::archive::detail::heap_allocation |
Class representing the actual attributes for an airline segment-cabin.
Definition at line 39 of file SegmentCabin.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 51 of file SegmentCabin.hpp.
|
protected |
Constructor.
Definition at line 39 of file SegmentCabin.cpp.
References stdair::DEFAULT_AVAILABILITY, stdair::DEFAULT_BID_PRICE, stdair::DEFAULT_BID_PRICE_VECTOR, stdair::DEFAULT_BLOCK_SPACE, stdair::DEFAULT_CABIN_CAPACITY, stdair::DEFAULT_CLASS_NB_OF_BOOKINGS, and stdair::DEFAULT_COMMITTED_SPACE.
|
protectedvirtual |
Destructor.
Definition at line 52 of file SegmentCabin.cpp.
|
inline |
Get the segment-cabin key (cabin code).
Definition at line 59 of file SegmentCabin.hpp.
References _key.
|
inline |
|
inline |
Get the map of children holders.
Definition at line 73 of file SegmentCabin.hpp.
References _holderMap.
|
inline |
Get the cabin code (primary key).
Definition at line 80 of file SegmentCabin.hpp.
References _key, and stdair::SegmentCabinKey::getCabinCode().
Referenced by getFullerKey().
const MapKey_T stdair::SegmentCabin::getFullerKey | ( | ) | const |
Get the (segment-date, segment-cabin) key (board point, off point and cabin code).
Definition at line 56 of file SegmentCabin.cpp.
References stdair::DEFAULT_KEY_FLD_DELIMITER, stdair::SegmentDate::describeKey(), getCabinCode(), and stdair::BomManager::getParent().
|
inline |
Get the guilltine block.
Definition at line 95 of file SegmentCabin.hpp.
References _segmentSnapshotTable.
|
inline |
|
inline |
Get the blocked number of bookings.
Definition at line 106 of file SegmentCabin.hpp.
References _blockSpace.
|
inline |
Get the blocked number of bookings.
Definition at line 111 of file SegmentCabin.hpp.
References _min.
|
inline |
|
inline |
Get the booking counter.
Definition at line 121 of file SegmentCabin.hpp.
References _bookingCounter.
|
inline |
Get the committed Space value.
Definition at line 126 of file SegmentCabin.hpp.
References _committedSpace.
|
inline |
Get the availability pool value.
Definition at line 131 of file SegmentCabin.hpp.
References _availabilityPool.
|
inline |
Retrieve the current Bid-Price.
Definition at line 136 of file SegmentCabin.hpp.
References _currentBidPrice.
|
inline |
Retrieve the Bid-Price Vector.
Definition at line 141 of file SegmentCabin.hpp.
References _bidPriceVector.
|
inline |
Retrieve the status of fare family.
Definition at line 146 of file SegmentCabin.hpp.
References _fareFamilyActivation.
|
inline |
|
inline |
Set the snapshot table.
Definition at line 158 of file SegmentCabin.hpp.
References _segmentSnapshotTable.
|
inline |
|
inline |
Set the blocked number of seats.
Definition at line 168 of file SegmentCabin.hpp.
References _blockSpace.
|
inline |
|
inline |
|
inline |
Set the total number of bookings.
Definition at line 183 of file SegmentCabin.hpp.
References _bookingCounter.
|
inline |
Set the value of committed space.
Definition at line 188 of file SegmentCabin.hpp.
References _committedSpace.
|
inline |
Set the value of availability pool.
Definition at line 193 of file SegmentCabin.hpp.
References _availabilityPool.
|
inline |
Set the Bid-Price Vector.
Definition at line 198 of file SegmentCabin.hpp.
References _bidPriceVector.
|
inline |
Activate fare family.
Definition at line 203 of file SegmentCabin.hpp.
References _fareFamilyActivation.
void stdair::SegmentCabin::updateFromReservation | ( | const NbOfBookings_T & | iNbOfBookings | ) |
|
inline |
void stdair::SegmentCabin::addPolicy | ( | Policy & | ioPolicy | ) |
Add a policy to the convex hull. Note: we do not use the FacBomManager here because the convex hull is not a list of children but a temporary list of policies.
Definition at line 90 of file SegmentCabin.cpp.
References _convexHull.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 228 of file SegmentCabin.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 237 of file SegmentCabin.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 65 of file SegmentCabin.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 248 of file SegmentCabin.hpp.
References _key, and stdair::SegmentCabinKey::toString().
Referenced by toString().
const std::string stdair::SegmentCabin::describeConvexHull | ( | ) | const |
Get a string describing the convex hull.
Definition at line 72 of file SegmentCabin.cpp.
References _convexHull, and stdair::Policy::toString().
void stdair::SegmentCabin::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion ) |
|
friend |
Definition at line 40 of file SegmentCabin.hpp.
|
friend |
Definition at line 41 of file SegmentCabin.hpp.
|
friend |
Definition at line 42 of file SegmentCabin.hpp.
|
friend |
Definition at line 43 of file SegmentCabin.hpp.
|
friend |
Definition at line 44 of file SegmentCabin.hpp.
|
protected |
Primary key (cabin code).
Definition at line 307 of file SegmentCabin.hpp.
Referenced by describeKey(), getCabinCode(), getKey(), and serialize().
|
protected |
Pointer on the parent class (SegmentDate).
Definition at line 312 of file SegmentCabin.hpp.
Referenced by getParent().
|
protected |
Map holding the children (FareFamily or BookingClass objects).
Definition at line 317 of file SegmentCabin.hpp.
Referenced by getHolderMap().
|
protected |
The data table used for Revenue Management activities.
Definition at line 322 of file SegmentCabin.hpp.
Referenced by getSegmentSnapshotTable(), and setSegmentSnapshotTable().
|
protected |
Capacity of the cabin.
Definition at line 325 of file SegmentCabin.hpp.
Referenced by getCapacity(), and setCapacity().
|
protected |
Blocked capacity.
Definition at line 328 of file SegmentCabin.hpp.
Referenced by getBlockSpace(), and setBlockSpace().
|
protected |
Blocked number of seats.
Definition at line 331 of file SegmentCabin.hpp.
|
protected |
Unsold Protection (UPR).
Definition at line 334 of file SegmentCabin.hpp.
|
protected |
Aggregated number of bookings.
Definition at line 337 of file SegmentCabin.hpp.
Referenced by getBookingCounter(), and setBookingCounter().
|
protected |
Aggreated committed space.
Definition at line 340 of file SegmentCabin.hpp.
Referenced by getCommittedSpace(), setCommittedSpace(), and updateFromReservation().
|
protected |
Aggregated availability pool.
Definition at line 343 of file SegmentCabin.hpp.
Referenced by getAvailabilityPool(), and setAvailabilityPool().
|
protected |
Bid-Price Vector (BPV).
Definition at line 346 of file SegmentCabin.hpp.
Referenced by getBidPriceVector(), and setBidPriceVector().
|
protected |
Current Bid-Price (BP).
Definition at line 349 of file SegmentCabin.hpp.
Referenced by getCurrentBidPrice().
|
protected |
Indicate if fare family is in use.
Definition at line 352 of file SegmentCabin.hpp.
Referenced by activateFareFamily(), and getFareFamilyStatus().
|
protected |
The convex hull of MRT.
Definition at line 355 of file SegmentCabin.hpp.
Referenced by addPolicy(), describeConvexHull(), getConvexHull(), and resetConvexHull().