StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
AirlineFeature.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_AIRLINEFEATURE_HPP
2 #define __STDAIR_BOM_AIRLINEFEATURE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
17 
18 namespace stdair {
19 
25  class AirlineFeature : public BomAbstract {
26  template <typename BOM> friend class FacBom;
27  template <typename BOM> friend class FacCloneBom;
28  friend class FacBomManager;
29 
30  public:
31  // //////////// Type definitions //////////////
36 
37  public:
38  // /////////// Display support methods /////////
44  void toStream (std::ostream& ioOut) const {
45  ioOut << toString();
46  }
47 
53  void fromStream (std::istream& ioIn) {
54  }
55 
59  std::string toString() const;
60 
64  const std::string describeKey() const {
65  return _key.toString();
66  }
67 
68  public:
69  // /////////// Getters ////////////
73  const Key_T& getKey() const {
74  return _key;
75  }
76 
80  BomAbstract* const getParent() const {
81  return _parent;
82  }
83 
87  const HolderMap_T& getHolderMap() const {
88  return _holderMap;
89  }
90 
96  }
97 
103  }
104 
110  }
111 
117  }
118 
124  }
125 
126 
127  public:
128  // //////////// Setters //////////
139  void init (const ForecastingMethod&,
140  const UnconstrainingMethod&,
141  const PreOptimisationMethod&,
142  const OptimisationMethod&,
143  const HistoricalDataLimit_T&,
144  const ControlMode_T&,
145  const PartnershipTechnique&);
146 
150  void setForecastingMethod (const ForecastingMethod& iForecastingMethod) {
151  _forecastingMethod = iForecastingMethod;
152  }
153 
157  void setUnconstrainingMethod(const UnconstrainingMethod& iUnconstrainingMethod) {
158  _unconstrainingMethod = iUnconstrainingMethod;
159  }
160 
164  void setPartnershipTechnique(const PartnershipTechnique& iPartnershipTechnique) {
165  _partnershipTechnique = iPartnershipTechnique;
166  }
167 
171  void setPreOptimisationMethod(const PreOptimisationMethod& iPreOptimisationMethod) {
172  _preOptimisationMethod = iPreOptimisationMethod;
173  }
174 
178  void setOptimisationMethod(const OptimisationMethod& iOptimisationMethod) {
179  _optimisationMethod = iOptimisationMethod;
180  }
181 
182 
183  protected:
184  // ////////// Constructors and destructors /////////
188  AirlineFeature (const Key_T&);
192  virtual ~AirlineFeature ();
193 
194  private:
198  AirlineFeature ();
203 
204  protected:
205  // ///////////// Attributes /////////////
209  Key_T _key;
210 
215 
220 
225 
230 
235 
240 
245 
250 
255 
256  };
257 
258 }
259 #endif // __STDAIR_BOM_AIRLINEFEATURE_HPP
260 
Utility class for linking StdAir-based objects.
std::string toString() const
EN_PreOptimisationMethod getMethod() const
void toStream(std::ostream &ioOut) const
Handle on the StdAir library context.
const HolderMap_T & getHolderMap() const
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition: BomAbstract.hpp:63
const Key_T & getKey() const
void setPartnershipTechnique(const PartnershipTechnique &iPartnershipTechnique)
Base class for the Business Object Model (BOM) layer.
Definition: BomAbstract.hpp:24
void setOptimisationMethod(const OptimisationMethod &iOptimisationMethod)
UnconstrainingMethod::EN_UnconstrainingMethod getUnconstrainingMethod() const
const std::string toString() const
void fromStream(std::istream &ioIn)
ForecastingMethod _forecastingMethod
const std::string describeKey() const
OptimisationMethod::EN_OptimisationMethod getOptimisationMethod() const
PartnershipTechnique _partnershipTechnique
static EN_PartnershipTechnique getTechnique(const char)
void init(const ForecastingMethod &, const UnconstrainingMethod &, const PreOptimisationMethod &, const OptimisationMethod &, const HistoricalDataLimit_T &, const ControlMode_T &, const PartnershipTechnique &)
Base class for Factory layer.
Definition: FacBom.hpp:22
ForecastingMethod::EN_ForecastingMethod getForecastingMethod() const
void setUnconstrainingMethod(const UnconstrainingMethod &iUnconstrainingMethod)
PartnershipTechnique::EN_PartnershipTechnique getPartnershipTechnique() const
HistoricalDataLimit_T _historicalDataLimit
AirlineFeatureKey Key_T
PreOptimisationMethod::EN_PreOptimisationMethod getPreOptimisationMethod() const
PreOptimisationMethod _preOptimisationMethod
EN_UnconstrainingMethod getMethod() const
void setForecastingMethod(const ForecastingMethod &iForecastingMethod)
void setPreOptimisationMethod(const PreOptimisationMethod &iPreOptimisationMethod)
std::string ControlMode_T
BomAbstract *const getParent() const
Enumeration of partnership techniques.
EN_OptimisationMethod getMethod() const
EN_ForecastingMethod getMethod() const
Class representing various configuration parameters (e.g., revenue management methods such EMSRb or M...
short HistoricalDataLimit_T
UnconstrainingMethod _unconstrainingMethod
Base class for Factory layer.
Definition: FacCloneBom.hpp:22
OptimisationMethod _optimisationMethod