StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
stdair_inventory_types.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_STDAIR_INVENTORY_TYPES_HPP
2 #define __STDAIR_STDAIR_INVENTORY_TYPES_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 #include <vector>
10 #include <map>
11 #include <list>
12 // BOOST
13 #include <boost/multi_array.hpp>
14 // StdAir
18 
19 namespace stdair {
20 
21  // //////// Type definitions /////////
23  typedef std::string NetworkID_T;
24 
26  typedef std::vector<AirlineCode_T> AirlineCodeList_T;
27 
29  typedef std::vector<ClassList_String_T> ClassList_StringList_T;
30 
32  typedef std::vector<ClassCode_T> ClassCodeList_T;
33 
37  typedef unsigned short SubclassCode_T;
38 
40  typedef std::string FlightPathCode_T;
41 
44  typedef std::map<CabinCode_T, ClassList_String_T> CabinBookingClassMap_T;
45 
47  typedef std::string CurveKey_T;
48 
51  typedef double CabinCapacity_T;
52 
54  typedef double NbOfFlightDates_T;
55 
57  typedef double CommittedSpace_T;
58 
60  typedef double UPR_T;
61 
63  typedef double BookingLimit_T;
64 
66  typedef double AuthorizationLevel_T;
67 
69  typedef double CapacityAdjustment_T;
70 
72  typedef double BlockSpace_T;
73 
75  typedef bool AvailabilityStatus_T;
76 
78  typedef std::vector<Availability_T> BucketAvailabilities_T;
79 
81  typedef double NbOfYields_T;
82 
85 
87  typedef bool CensorshipFlag_T;
88 
90  typedef short DTD_T;
91 
93  typedef short DCP_T;
94 
96  typedef std::list<DCP_T> DCPList_T;
97 
99  typedef std::map<DTD_T, RealNumber_T> DTDFratMap_T;
100 
102  typedef std::map<FloatDuration_T, float> DTDProbMap_T;
103 
106  typedef std::vector<CensorshipFlag_T> CensorshipFlagList_T;
107 
110  typedef double BookingRatio_T;
111 
113  typedef double Yield_T;
114 
116  typedef unsigned int YieldLevel_T;
117 
119  typedef std::map<YieldLevel_T, MeanStdDevPair_T> YieldLevelDemandMap_T;
120 
122  typedef std::pair<Yield_T, MeanStdDevPair_T> YieldDemandPair_T;
123 
125  typedef double BidPrice_T;
126 
128  typedef std::vector<BidPrice_T> BidPriceVector_T;
129 
131  typedef unsigned int SeatIndex_T;
132 
134  typedef std::string ControlMode_T;
135 
137  typedef double OverbookingRate_T;
138 
141  typedef double BookingLimit_T;
142 
145  typedef double ProtectionLevel_T;
146 
148  typedef std::vector<double> EmsrValueList_T;
149 
152  typedef std::vector<double> BookingLimitVector_T;
153 
156  typedef std::vector<double> ProtectionLevelVector_T;
157 
159  typedef boost::multi_array<double, 2> SnapshotBlock_T;
160 
162  typedef SnapshotBlock_T::index_range SnapshotBlockRange_T;
163 
165  typedef SnapshotBlock_T::array_view<1>::type SegmentCabinDTDSnapshotView_T;
166 
168  typedef SnapshotBlock_T::array_view<2>::type SegmentCabinDTDRangeSnapshotView_T;
169 
171  typedef SnapshotBlock_T::const_array_view<1>::type ConstSegmentCabinDTDSnapshotView_T;
172 
174  typedef SnapshotBlock_T::const_array_view<2>::type ConstSegmentCabinDTDRangeSnapshotView_T;
175 
177  typedef unsigned short SegmentDataID_T;
178 
180  typedef unsigned short LegDataID_T;
181 
184  typedef unsigned short ClassIndex_T;
185 
186 }
187 #endif // __STDAIR_STDAIR_INVENTORY_TYPES_HPP
SnapshotBlock_T::index_range SnapshotBlockRange_T
std::map< YieldLevel_T, MeanStdDevPair_T > YieldLevelDemandMap_T
SnapshotBlock_T::const_array_view< 1 >::type ConstSegmentCabinDTDSnapshotView_T
double NbOfInventoryControlRules_T
SnapshotBlock_T::array_view< 2 >::type SegmentCabinDTDRangeSnapshotView_T
std::pair< Yield_T, MeanStdDevPair_T > YieldDemandPair_T
std::string FlightPathCode_T
std::vector< BidPrice_T > BidPriceVector_T
std::map< DTD_T, RealNumber_T > DTDFratMap_T
std::vector< ClassList_String_T > ClassList_StringList_T
Handle on the StdAir library context.
SnapshotBlock_T::array_view< 1 >::type SegmentCabinDTDSnapshotView_T
unsigned short LegDataID_T
double NbOfFlightDates_T
std::string NetworkID_T
std::vector< double > EmsrValueList_T
std::list< DCP_T > DCPList_T
std::vector< AirlineCode_T > AirlineCodeList_T
std::map< CabinCode_T, ClassList_String_T > CabinBookingClassMap_T
std::vector< double > BookingLimitVector_T
std::vector< CensorshipFlag_T > CensorshipFlagList_T
unsigned short SegmentDataID_T
SnapshotBlock_T::const_array_view< 2 >::type ConstSegmentCabinDTDRangeSnapshotView_T
std::vector< Availability_T > BucketAvailabilities_T
std::map< FloatDuration_T, float > DTDProbMap_T
std::vector< ClassCode_T > ClassCodeList_T
std::string ControlMode_T
double AuthorizationLevel_T
unsigned int SeatIndex_T
std::string CurveKey_T
std::vector< double > ProtectionLevelVector_T
boost::multi_array< double, 2 > SnapshotBlock_T
double CapacityAdjustment_T
unsigned short ClassIndex_T
unsigned short SubclassCode_T
unsigned int YieldLevel_T