StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
stdair_inventory_types.hpp
Go to the documentation of this file.
00001 #ifndef __STDAIR_STDAIR_INVENTORY_TYPES_HPP
00002 #define __STDAIR_STDAIR_INVENTORY_TYPES_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <string>
00009 #include <vector>
00010 #include <map>
00011 #include <list>
00012 // BOOST
00013 #include <boost/multi_array.hpp>
00014 // StdAir
00015 #include <stdair/stdair_basic_types.hpp>
00016 #include <stdair/stdair_maths_types.hpp>
00017 #include <stdair/stdair_date_time_types.hpp>
00018 
00019 namespace stdair {
00020 
00021   // //////// Type definitions /////////
00023   typedef std::string NetworkID_T;
00024 
00026   typedef std::vector<AirlineCode_T> AirlineCodeList_T;
00027 
00029   typedef std::vector<ClassList_String_T> ClassList_StringList_T;
00030 
00032   typedef std::vector<ClassCode_T> ClassCodeList_T;
00033 
00037   typedef unsigned short SubclassCode_T;
00038 
00040   typedef std::string FlightPathCode_T;
00041 
00044   typedef std::map<CabinCode_T, ClassList_String_T> CabinBookingClassMap_T;
00045   
00048   typedef double CabinCapacity_T;
00049 
00051   typedef double NbOfFlightDates_T;
00052 
00054   typedef double CommittedSpace_T;
00055 
00057   typedef double UPR_T;
00058 
00060   typedef double BookingLimit_T;
00061 
00063   typedef double AuthorizationLevel_T;
00064 
00066   typedef double CapacityAdjustment_T;
00067 
00069   typedef double BlockSpace_T;
00070 
00072   typedef bool AvailabilityStatus_T;
00073 
00075   typedef std::vector<Availability_T> BucketAvailabilities_T;
00076 
00078   typedef double NbOfYields_T;
00079 
00081   typedef double NbOfInventoryControlRules_T;
00082 
00084   typedef bool CensorshipFlag_T;
00085 
00087   typedef short DTD_T;
00088   
00090   typedef short DCP_T;
00091   
00093   typedef std::list<DCP_T> DCPList_T;
00094 
00096   typedef std::map<DTD_T, RealNumber_T> DTDFratMap_T;
00097 
00099   typedef std::map<FloatDuration_T, float> DTDProbMap_T;
00100   
00103   typedef std::vector<CensorshipFlag_T> CensorshipFlagList_T;
00104 
00107   typedef double BookingRatio_T;
00108 
00110   typedef double Yield_T;
00111 
00113   typedef unsigned int YieldLevel_T;
00114 
00116   typedef std::map<YieldLevel_T, MeanStdDevPair_T> YieldLevelDemandMap_T;
00117 
00119   typedef std::pair<Yield_T, MeanStdDevPair_T> YieldDemandPair_T;
00120 
00122   typedef double BidPrice_T;
00123 
00125   typedef std::vector<BidPrice_T> BidPriceVector_T;
00126 
00128   typedef unsigned int SeatIndex_T;
00129   
00131   typedef std::string ControlMode_T;
00132 
00134   typedef double OverbookingRate_T;
00135 
00138   typedef double BookingLimit_T;
00139 
00142   typedef double ProtectionLevel_T;
00143 
00145   typedef std::vector<double> EmsrValueList_T;
00146 
00149   typedef std::vector<double> BookingLimitVector_T;
00150 
00153   typedef std::vector<double> ProtectionLevelVector_T;
00154 
00156   typedef boost::multi_array<double, 2> SnapshotBlock_T;
00157 
00159   typedef SnapshotBlock_T::index_range SnapshotBlockRange_T;
00160 
00162   typedef SnapshotBlock_T::array_view<1>::type SegmentCabinDTDSnapshotView_T;
00163 
00165   typedef SnapshotBlock_T::array_view<2>::type SegmentCabinDTDRangeSnapshotView_T;
00166   
00168   typedef SnapshotBlock_T::const_array_view<1>::type ConstSegmentCabinDTDSnapshotView_T;
00169 
00171   typedef SnapshotBlock_T::const_array_view<2>::type ConstSegmentCabinDTDRangeSnapshotView_T;
00172   
00174   typedef unsigned short BlockNumber_T;
00175 
00177   typedef unsigned short BlockIndex_T;
00178 
00179 }
00180 #endif // __STDAIR_STDAIR_INVENTORY_TYPES_HPP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines