StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 /////////////
210 
215 
220 
225 
230 
235 
240 
245 
250 
255 
256  };
257 
258 }
259 #endif // __STDAIR_BOM_AIRLINEFEATURE_HPP
260