$treeview $search $mathjax
00001 #ifndef __STDAIR_STDAIR_DEMAND_TYPES_HPP 00002 #define __STDAIR_STDAIR_DEMAND_TYPES_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <string> 00009 #include <vector> 00010 #include <map> 00011 // Boost Random 00012 #include <boost/random/linear_congruential.hpp> 00013 #include <boost/random/uniform_real.hpp> 00014 #include <boost/random/variate_generator.hpp> 00015 // Boost (Extended STL) 00016 #include <boost/date_time/gregorian/gregorian.hpp> 00017 #include <boost/date_time/posix_time/posix_time.hpp> 00018 #include <boost/tuple/tuple.hpp> 00019 // StdAir 00020 #include <stdair/stdair_basic_types.hpp> 00021 #include <stdair/stdair_maths_types.hpp> 00022 #include <stdair/stdair_inventory_types.hpp> 00023 00024 00025 namespace stdair { 00026 00027 // //////// Type definitions ///////// 00029 typedef bool ChangeFees_T; 00030 00032 typedef bool NonRefundable_T; 00033 00035 typedef bool SaturdayStay_T; 00036 00039 typedef double SaturdayStayRatio_T; 00040 00043 typedef double ChangeFeesRatio_T; 00044 00047 typedef double NonRefundableRatio_T; 00048 00050 typedef double Disutility_T; 00051 00054 typedef std::string PassengerType_T; 00055 00057 typedef std::string DistributionPatternId_T; 00058 00060 typedef std::string CancellationRateCurveId_T; 00061 00063 typedef std::string AirlinePreferenceId_T; 00064 00066 typedef std::pair<Percentage_T, Percentage_T> CancellationNoShowRatePair_T; 00067 00070 typedef std::string CharacteristicsPatternId_T; 00071 00073 typedef std::string CharacteristicsIndex_T; 00074 00076 typedef double WTP_T; 00077 00079 typedef boost::tuples::tuple<double, WTP_T> CharacteristicsWTP_tuple_T; 00080 00082 typedef std::pair<WTP_T, MeanStdDevPair_T> WTPDemandPair_T; 00083 00085 typedef NbOfRequests_T NbOfCancellations_T; 00086 00088 typedef NbOfRequests_T NbOfNoShows_T; 00089 00091 typedef double MatchingIndicator_T; 00092 00094 typedef std::string DemandStreamKeyStr_T; 00095 00097 typedef std::string ChannelLabel_T; 00098 00100 typedef std::string FrequentFlyer_T; 00101 00104 typedef std::string RequestStatus_T; 00105 00107 typedef std::map<Identity_T, Identity_T> BookingTSIDMap_T; 00108 00110 typedef std::pair<CabinCode_T, ClassCode_T> CabinClassPair_T; 00111 00113 typedef std::list<CabinClassPair_T> CabinClassPairList_T; 00114 00116 typedef double ProportionFactor_T; 00117 00119 typedef std::list<ProportionFactor_T> ProportionFactorList_T; 00120 00122 typedef std::string OnDString_T; 00123 00125 typedef std::list<OnDString_T> OnDStringList_T; 00126 00127 } 00128 #endif // __STDAIR_STDAIR_DEMAND_TYPES_HPP