1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
8
#include <
stdair/stdair_rm_types.hpp
>
9
#include <
stdair/basic/UnconstrainingMethod.hpp
>
10
#include <
stdair/basic/ForecastingMethod.hpp
>
11
#include <
stdair/basic/PreOptimisationMethod.hpp
>
12
#include <
stdair/basic/OptimisationMethod.hpp
>
13
#include <
stdair/basic/PartnershipTechnique.hpp
>
14
#include <
stdair/bom/BomAbstract.hpp
>
15
#include <
stdair/bom/AirlineFeatureKey.hpp
>
16
#include <
stdair/bom/AirlineFeatureTypes.hpp
>
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 //////////////
35
typedef
AirlineFeatureKey
Key_T
;
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
94
ForecastingMethod::EN_ForecastingMethod
getForecastingMethod
()
const
{
95
return
_forecastingMethod
.
getMethod
();
96
}
97
101
UnconstrainingMethod::EN_UnconstrainingMethod
getUnconstrainingMethod
()
const
{
102
return
_unconstrainingMethod
.
getMethod
();
103
}
104
108
PartnershipTechnique::EN_PartnershipTechnique
getPartnershipTechnique
()
const
{
109
return
_partnershipTechnique
.
getTechnique
();
110
}
111
115
PreOptimisationMethod::EN_PreOptimisationMethod
getPreOptimisationMethod
()
const
{
116
return
_preOptimisationMethod
.
getMethod
();
117
}
118
122
OptimisationMethod::EN_OptimisationMethod
getOptimisationMethod
()
const
{
123
return
_optimisationMethod
.
getMethod
();
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
();
202
AirlineFeature
(
const
AirlineFeature
&);
203
204
protected
:
205
// ///////////// Attributes /////////////
209
Key_T
_key
;
210
214
BomAbstract
*
_parent
;
215
219
HolderMap_T
_holderMap
;
220
224
ForecastingMethod
_forecastingMethod
;
225
229
HistoricalDataLimit_T
_historicalDataLimit
;
230
234
ControlMode_T
_controlMode
;
235
239
UnconstrainingMethod
_unconstrainingMethod
;
240
244
PreOptimisationMethod
_preOptimisationMethod
;
245
249
OptimisationMethod
_optimisationMethod
;
250
254
PartnershipTechnique
_partnershipTechnique
;
255
256
};
257
258
}
259
#endif // __STDAIR_BOM_AIRLINEFEATURE_HPP
260
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1