RMOL Logo Get Revenue Management Optimisation Library at SourceForge.net. Fast, secure and Free Open Source software downloads

HistoricalBooking.hpp

Go to the documentation of this file.
00001 #ifndef __RMOL_BOM_HISTORICALBOOKING_HPP
00002 #define __RMOL_BOM_HISTORICALBOOKING_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // RMOL
00008 #include <rmol/bom/StructAbstract.hpp>
00009 
00010 namespace RMOL {
00011     
00014   struct HistoricalBooking : public StructAbstract {
00015       
00016   public:
00017     // Getters
00019     const double& getNumberOfBookings() const {
00020       return _numberOfBookings;
00021     }
00023     const double& getUnconstrainedDemand() const {
00024       return _unconstrainedDemand;
00025     }
00028     const bool& getFlag() const {
00029       return _flag;
00030     }
00031 
00033     void setUnconstrainedDemand (const double iDemand) {
00034       _unconstrainedDemand = iDemand;
00035     }
00036 
00038     void setParameters (const double, const bool);
00039       
00043     void toStream (std::ostream& ioOut) const;
00044 
00045     // ///////// Display Methods //////////
00047     const std::string describe() const;
00048       
00050     void display () const;
00051       
00053     virtual ~HistoricalBooking();
00054       
00055   public:
00058     HistoricalBooking ();
00059 
00060     HistoricalBooking (const HistoricalBooking&);
00061       
00062   private:
00064     double _numberOfBookings;
00065 
00067     double _unconstrainedDemand;
00068 
00070     bool _flag;
00071   };
00072 }
00073 #endif // __RMOL_BOM_HISTORICALBOOKING_HPP