00001 #ifndef __RMOL_RMOL_TYPES_HPP 00002 #define __RMOL_RMOL_TYPES_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <vector> 00009 #include <list> 00010 00011 namespace RMOL { 00012 00013 // ///////// Exceptions /////////// 00014 class RootException : public std::exception { 00015 }; 00016 00017 class FileNotFoundException : public RootException { 00018 }; 00019 00020 class NonInitialisedServiceException : public RootException { 00021 }; 00022 00023 class MemoryAllocationException : public RootException { 00024 }; 00025 00026 class ObjectNotFoundException : public RootException { 00027 }; 00028 00029 class DocumentNotFoundException : public RootException { 00030 }; 00031 00032 00033 // /////////////// Log ///////////// 00035 namespace LOG { 00036 typedef enum { 00037 CRITICAL = 0, 00038 ERROR, 00039 NOTIFICATION, 00040 WARNING, 00041 DEBUG, 00042 VERBOSE, 00043 LAST_VALUE 00044 } EN_LogLevel; 00045 } 00046 00047 // //////// Type definitions ///////// 00050 typedef double ResourceCapacity_T; 00051 00054 typedef double BookingLimit_T; 00055 00058 typedef std::vector<double> BidPriceVector_T; 00059 00061 typedef std::vector<double> EmsrValueList_T; 00062 00065 typedef std::vector<double> BookingLimitVector_T; 00066 00069 typedef std::vector<double> GeneratedDemandVector_T; 00070 00072 typedef std::vector<GeneratedDemandVector_T> GeneratedDemandVectorHolder_T; 00073 00075 typedef std::vector<double> SellupProbabilityVector_T; 00076 00078 typedef std::vector<double> SellupFactorHolder_T; 00079 00080 // /** Define the historical booking data of a flight date in the order of 00081 // the classes in the BucketHolder 00082 // eg. 00083 // BucketHolder=[Q;M;B;Y], OrderedHistoricalBookingVector_T=[10;5;0;0] 00084 // 5 corresponds to bookings of class M of a similar flight */ 00085 // typedef std::vector<double> OrderedHistoricalBookingVector_T; 00086 00087 // /** Define the holder of historical booking vectors */ 00088 // typedef std::vector<HistoricalBookingHolder> 00089 // HistoricalBookingHolderHolder_T; 00090 00092 typedef std::vector<double> HolderOfQEquivalentBookingsPerSimilarFlight_T; 00093 00094 } 00095 #endif // __RMOL_RMOL_TYPES_HPP
Generated on Fri Jul 30 21:42:59 2010 for RMOL by Doxygen 1.6.2-20100208