27 SegmentCabin::SegmentCabin (
const SegmentCabin& iSegmentCabin)
28 : _key (iSegmentCabin._key), _parent (NULL),
29 _capacity (iSegmentCabin._capacity),
30 _blockSpace (iSegmentCabin._blockSpace),
31 _bookingCounter (iSegmentCabin._bookingCounter),
32 _committedSpace (iSegmentCabin._committedSpace),
33 _availabilityPool (iSegmentCabin._availabilityPool),
34 _currentBidPrice (iSegmentCabin._currentBidPrice),
35 _fareFamilyActivation (iSegmentCabin._fareFamilyActivation) {
39 SegmentCabin::SegmentCabin (
const Key_T& iKey)
40 : _key (iKey), _parent (NULL),
48 _fareFamilyActivation (false) {
57 const SegmentDate& lSegmentDate = BomManager::getParent<SegmentDate>(*this);
66 std::ostringstream oStr;
73 std::ostringstream oStr;
74 for (PolicyList_T::const_iterator itP =
_convexHull.begin();
76 const Policy* lPolicy = *itP;
77 assert (lPolicy != NULL);
const std::string describeConvexHull() const
CommittedSpace_T _committedSpace
const BidPriceVector_T DEFAULT_BID_PRICE_VECTOR
Class representing the actual attributes for an airline segment-date.
Handle on the StdAir library context.
const CabinCapacity_T DEFAULT_CABIN_CAPACITY
const std::string DEFAULT_KEY_FLD_DELIMITER
NbOfRequests_T NbOfBookings_T
const NbOfBookings_T DEFAULT_CLASS_NB_OF_BOOKINGS
const BidPrice_T DEFAULT_BID_PRICE
const MapKey_T getFullerKey() const
const Availability_T DEFAULT_AVAILABILITY
std::string toString() const
Key of a given segment-cabin, made of a cabin code (only).
const CabinCode_T DEFAULT_CABIN_CODE
void updateFromReservation(const NbOfBookings_T &)
const CommittedSpace_T DEFAULT_COMMITTED_SPACE
const std::string describeKey() const
const CabinCode_T & getCabinCode() const
const BlockSpace_T DEFAULT_BLOCK_SPACE
const std::string describeKey() const
std::string toString() const