StdAir Logo  1.00.8
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
stdair::YieldLevelDemandMap_T
std::map< YieldLevel_T, MeanStdDevPair_T > YieldLevelDemandMap_T
Definition: stdair_inventory_types.hpp:119
stdair::SnapshotBlock_T
boost::multi_array< double, 2 > SnapshotBlock_T
Definition: stdair_inventory_types.hpp:159
stdair::DTDProbMap_T
std::map< FloatDuration_T, float > DTDProbMap_T
Definition: stdair_inventory_types.hpp:102
stdair::ProtectionLevelVector_T
std::vector< double > ProtectionLevelVector_T
Definition: stdair_inventory_types.hpp:156
stdair::CapacityAdjustment_T
double CapacityAdjustment_T
Definition: stdair_inventory_types.hpp:69
stdair::NbOfYields_T
double NbOfYields_T
Definition: stdair_inventory_types.hpp:81
stdair::CensorshipFlagList_T
std::vector< CensorshipFlag_T > CensorshipFlagList_T
Definition: stdair_inventory_types.hpp:106
stdair::CommittedSpace_T
double CommittedSpace_T
Definition: stdair_inventory_types.hpp:57
stdair::SeatIndex_T
unsigned int SeatIndex_T
Definition: stdair_inventory_types.hpp:131
stdair::BookingLimit_T
double BookingLimit_T
Definition: stdair_inventory_types.hpp:63
stdair::BlockSpace_T
double BlockSpace_T
Definition: stdair_inventory_types.hpp:72
stdair::DCPList_T
std::list< DCP_T > DCPList_T
Definition: stdair_inventory_types.hpp:96
stdair::DTDFratMap_T
std::map< DTD_T, RealNumber_T > DTDFratMap_T
Definition: stdair_inventory_types.hpp:99
stdair::AvailabilityStatus_T
bool AvailabilityStatus_T
Definition: stdair_inventory_types.hpp:75
stdair::AuthorizationLevel_T
double AuthorizationLevel_T
Definition: stdair_inventory_types.hpp:66
stdair::SubclassCode_T
unsigned short SubclassCode_T
Definition: stdair_inventory_types.hpp:37
stdair::ClassIndex_T
unsigned short ClassIndex_T
Definition: stdair_inventory_types.hpp:184
stdair::NetworkID_T
std::string NetworkID_T
Definition: stdair_inventory_types.hpp:23
stdair::SnapshotBlockRange_T
SnapshotBlock_T::index_range SnapshotBlockRange_T
Definition: stdair_inventory_types.hpp:162
stdair::BidPrice_T
double BidPrice_T
Definition: stdair_inventory_types.hpp:125
stdair::ConstSegmentCabinDTDRangeSnapshotView_T
SnapshotBlock_T::const_array_view< 2 >::type ConstSegmentCabinDTDRangeSnapshotView_T
Definition: stdair_inventory_types.hpp:174
stdair::SegmentDataID_T
unsigned short SegmentDataID_T
Definition: stdair_inventory_types.hpp:177
stdair::LegDataID_T
unsigned short LegDataID_T
Definition: stdair_inventory_types.hpp:180
stdair::BucketAvailabilities_T
std::vector< Availability_T > BucketAvailabilities_T
Definition: stdair_inventory_types.hpp:78
stdair_date_time_types.hpp
stdair::DTD_T
short DTD_T
Definition: stdair_inventory_types.hpp:90
stdair::NbOfFlightDates_T
double NbOfFlightDates_T
Definition: stdair_inventory_types.hpp:54
stdair::EmsrValueList_T
std::vector< double > EmsrValueList_T
Definition: stdair_inventory_types.hpp:148
stdair::SegmentCabinDTDSnapshotView_T
SnapshotBlock_T::array_view< 1 >::type SegmentCabinDTDSnapshotView_T
Definition: stdair_inventory_types.hpp:165
stdair::BookingRatio_T
double BookingRatio_T
Definition: stdair_inventory_types.hpp:110
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::SegmentCabinDTDRangeSnapshotView_T
SnapshotBlock_T::array_view< 2 >::type SegmentCabinDTDRangeSnapshotView_T
Definition: stdair_inventory_types.hpp:168
stdair::YieldLevel_T
unsigned int YieldLevel_T
Definition: stdair_inventory_types.hpp:116
stdair::ClassList_StringList_T
std::vector< ClassList_String_T > ClassList_StringList_T
Definition: stdair_inventory_types.hpp:29
stdair::BidPriceVector_T
std::vector< BidPrice_T > BidPriceVector_T
Definition: stdair_inventory_types.hpp:128
stdair::Yield_T
double Yield_T
Definition: stdair_inventory_types.hpp:113
stdair::AirlineCodeList_T
std::vector< AirlineCode_T > AirlineCodeList_T
Definition: stdair_inventory_types.hpp:26
stdair::CabinBookingClassMap_T
std::map< CabinCode_T, ClassList_String_T > CabinBookingClassMap_T
Definition: stdair_inventory_types.hpp:44
stdair::OverbookingRate_T
double OverbookingRate_T
Definition: stdair_inventory_types.hpp:137
stdair_maths_types.hpp
stdair::UPR_T
double UPR_T
Definition: stdair_inventory_types.hpp:60
stdair::ClassCodeList_T
std::vector< ClassCode_T > ClassCodeList_T
Definition: stdair_inventory_types.hpp:32
stdair::ProtectionLevel_T
double ProtectionLevel_T
Definition: stdair_inventory_types.hpp:145
stdair::ConstSegmentCabinDTDSnapshotView_T
SnapshotBlock_T::const_array_view< 1 >::type ConstSegmentCabinDTDSnapshotView_T
Definition: stdair_inventory_types.hpp:171
stdair_basic_types.hpp
stdair::ControlMode_T
std::string ControlMode_T
Definition: stdair_inventory_types.hpp:134
stdair::CensorshipFlag_T
bool CensorshipFlag_T
Definition: stdair_inventory_types.hpp:87
stdair::BookingLimitVector_T
std::vector< double > BookingLimitVector_T
Definition: stdair_inventory_types.hpp:152
stdair::YieldDemandPair_T
std::pair< Yield_T, MeanStdDevPair_T > YieldDemandPair_T
Definition: stdair_inventory_types.hpp:122
stdair::DCP_T
short DCP_T
Definition: stdair_inventory_types.hpp:93
stdair::CurveKey_T
std::string CurveKey_T
Definition: stdair_inventory_types.hpp:47
stdair::CabinCapacity_T
double CabinCapacity_T
Definition: stdair_inventory_types.hpp:51
stdair::NbOfInventoryControlRules_T
double NbOfInventoryControlRules_T
Definition: stdair_inventory_types.hpp:84
stdair::FlightPathCode_T
std::string FlightPathCode_T
Definition: stdair_inventory_types.hpp:40