From: <den...@us...> - 2010-03-21 10:50:21
|
Revision: 162 http://stdair.svn.sourceforge.net/stdair/?rev=162&view=rev Author: denis_arnaud Date: 2010-03-21 10:50:15 +0000 (Sun, 21 Mar 2010) Log Message: ----------- [API] Added a few type definitions for bucket-related structures. Modified Paths: -------------- trunk/stdair/stdair/STDAIR_Types.hpp Modified: trunk/stdair/stdair/STDAIR_Types.hpp =================================================================== --- trunk/stdair/stdair/STDAIR_Types.hpp 2010-03-20 12:06:38 UTC (rev 161) +++ trunk/stdair/stdair/STDAIR_Types.hpp 2010-03-21 10:50:15 UTC (rev 162) @@ -213,8 +213,12 @@ /** Define a Willingness-To-Pay (WTP) (e.g., 1000.0 Euros). */ typedef double WTP_T; + /** Define the number of seats (it can be non integer, because the + overbooking can be applied at booking class or PNR level). */ + typedef double NbOfSeats_T; + /** Define the number of seats required by a demand. */ - typedef unsigned short NbOfSeats_T; + // typedef unsigned short NbOfSeats_T; /** Number of passengers (in a group) for a booking. */ typedef unsigned short PartySize_T; @@ -281,9 +285,12 @@ /** Define a number of flight dates. */ typedef double NbOfFlightDates_T; - /** Define a number of commited spaces in a cabin. */ + /** Define the commited space of a cabin. */ typedef double CommitedSpace_T; + /** Define the unsold protection (UPR). */ + typedef double UPR_T; + /** Define availibility of booking limit. */ typedef bool CensorshipFlag_T; @@ -297,6 +304,9 @@ /** Define the value of the authorization level. */ typedef double AuthorizationLevel_T; + /** Define the value of the adjustment for cabin capacity. */ + typedef double CapacityAdjustment_T; + /** Define the rate of overbooking */ typedef double OverbookingRate_T; @@ -325,6 +335,9 @@ /** Define a Bid-Price Vector. */ typedef std::vector<BidPrice_T> BidPriceVector_T; + /** Define the current index of a Bid-Price Vector (for a given LegCabin). */ + typedef unsigned int SeatIndex_T; + /** Define a number of travel solutions (in a travel solution block). */ typedef unsigned short NbOfTravelSolutions_T; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |