$treeview $search $mathjax
StdAir Logo  1.00.1
$projectbrief
$projectbrief
$searchbox

stdair/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 
00047   typedef std::string CurveKey_T;
00048   
00051   typedef double CabinCapacity_T;
00052 
00054   typedef double NbOfFlightDates_T;
00055 
00057   typedef double CommittedSpace_T;
00058 
00060   typedef double UPR_T;
00061 
00063   typedef double BookingLimit_T;
00064 
00066   typedef double AuthorizationLevel_T;
00067 
00069   typedef double CapacityAdjustment_T;
00070 
00072   typedef double BlockSpace_T;
00073 
00075   typedef bool AvailabilityStatus_T;
00076 
00078   typedef std::vector<Availability_T> BucketAvailabilities_T;
00079 
00081   typedef double NbOfYields_T;
00082 
00084   typedef double NbOfInventoryControlRules_T;
00085 
00087   typedef bool CensorshipFlag_T;
00088 
00090   typedef short DTD_T;
00091   
00093   typedef short DCP_T;
00094   
00096   typedef std::list<DCP_T> DCPList_T;
00097 
00099   typedef std::map<DTD_T, RealNumber_T> DTDFratMap_T;
00100 
00102   typedef std::map<FloatDuration_T, float> DTDProbMap_T;
00103   
00106   typedef std::vector<CensorshipFlag_T> CensorshipFlagList_T;
00107 
00110   typedef double BookingRatio_T;
00111 
00113   typedef double Yield_T;
00114 
00116   typedef unsigned int YieldLevel_T;
00117 
00119   typedef std::map<YieldLevel_T, MeanStdDevPair_T> YieldLevelDemandMap_T;
00120 
00122   typedef std::pair<Yield_T, MeanStdDevPair_T> YieldDemandPair_T;
00123 
00125   typedef double BidPrice_T;
00126 
00128   typedef std::vector<BidPrice_T> BidPriceVector_T;
00129 
00131   typedef unsigned int SeatIndex_T;
00132   
00134   typedef std::string ControlMode_T;
00135 
00137   typedef double OverbookingRate_T;
00138 
00141   typedef double BookingLimit_T;
00142 
00145   typedef double ProtectionLevel_T;
00146 
00148   typedef std::vector<double> EmsrValueList_T;
00149 
00152   typedef std::vector<double> BookingLimitVector_T;
00153 
00156   typedef std::vector<double> ProtectionLevelVector_T;
00157 
00159   typedef boost::multi_array<double, 2> SnapshotBlock_T;
00160 
00162   typedef SnapshotBlock_T::index_range SnapshotBlockRange_T;
00163 
00165   typedef SnapshotBlock_T::array_view<1>::type SegmentCabinDTDSnapshotView_T;
00166 
00168   typedef SnapshotBlock_T::array_view<2>::type SegmentCabinDTDRangeSnapshotView_T;
00169   
00171   typedef SnapshotBlock_T::const_array_view<1>::type ConstSegmentCabinDTDSnapshotView_T;
00172 
00174   typedef SnapshotBlock_T::const_array_view<2>::type ConstSegmentCabinDTDRangeSnapshotView_T;
00175   
00177   typedef unsigned short SegmentDataID_T;
00178   
00180   typedef unsigned short LegDataID_T;
00181 
00184   typedef unsigned short ClassIndex_T;
00185 
00186 }
00187 #endif // __STDAIR_STDAIR_INVENTORY_TYPES_HPP