1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
OptimisationNotificationStruct.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_OPTIMISATIONNOTIFICATIONSTRUCT_HPP
2
#define __STDAIR_BOM_OPTIMISATIONNOTIFICATIONSTRUCT_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
// StdAir
11
#include <
stdair/stdair_inventory_types.hpp
>
12
#include <
stdair/stdair_demand_types.hpp
>
13
#include <
stdair/basic/StructAbstract.hpp
>
14
#include <
stdair/bom/OptimisationNotificationTypes.hpp
>
15
16
namespace
stdair
{
17
19
struct
OptimisationNotificationStruct
:
public
StructAbstract
{
20
public
:
21
// /////////////// Getters /////////////////
23
const
AirportCode_T
&
getOrigin
()
const
{
24
return
_origin;
25
}
26
28
const
AirportCode_T
&
getDestination
()
const
{
29
return
_destination;
30
}
31
33
const
CityCode_T
&
getPOS
()
const
{
34
return
_pos;
35
}
36
38
const
Date_T
&
getPreferedDepartureDate
()
const
{
39
return
_preferredDepartureDate;
40
}
41
43
const
DateTime_T
&
getNotificationDateTime
()
const
{
44
return
_notificationDateTime;
45
}
46
48
const
CabinCode_T
&
getPreferredCabin
()
const
{
49
return
_preferredCabin;
50
}
51
53
const
NbOfSeats_T
&
getPartySize
()
const
{
54
return
_partySize;
55
}
56
58
const
ChannelLabel_T
&
getOptimisationChannel
()
const
{
59
return
_channel;
60
}
61
63
const
TripType_T
&
getTripType
()
const
{
64
return
_tripType;
65
}
66
68
const
DayDuration_T
&
getStayDuration
()
const
{
69
return
_stayDuration;
70
}
71
73
const
FrequentFlyer_T
&
getFrequentFlyerType
()
const
{
74
return
_frequentFlyerType;
75
}
76
78
const
Duration_T
&
getPreferredDepartureTime
()
const
{
79
return
_preferredDepartureTime;
80
}
81
83
const
WTP_T
&
getWTP
()
const
{
84
return
_wtp;
85
}
86
88
const
PriceValue_T
&
getValueOfTime
()
const
{
89
return
_valueOfTime;
90
}
91
92
// /////////// Display support method /////////////
95
void
toStream
(std::ostream& ioOut)
const
;
96
99
void
fromStream
(std::istream& ioIn);
100
102
const
std::string
describe
()
const
;
103
104
105
// /////////////// Constructors and Destructors /////////////////
106
public
:
108
OptimisationNotificationStruct
(
const
AirportCode_T
& iOrigin,
109
const
AirportCode_T
& iDestination,
110
const
CityCode_T
& iPOS,
111
const
Date_T
& iDepartureDate,
112
const
DateTime_T
& iNotificationDateTime,
113
const
CabinCode_T
& iPreferredCabin,
114
const
NbOfSeats_T
& iPartySize,
115
const
ChannelLabel_T
& iChannel,
116
const
TripType_T
& iTripType,
117
const
DayDuration_T
& iStayDuration,
118
const
FrequentFlyer_T
& iFrequentFlyerType,
119
const
Duration_T
& iPreferredDepartureTime,
120
const
WTP_T
& iWTP,
121
const
PriceValue_T
& iValueOfTime);
122
124
OptimisationNotificationStruct
(
const
OptimisationNotificationStruct
&);
125
126
private
:
129
OptimisationNotificationStruct
();
130
131
public
:
133
~OptimisationNotificationStruct
();
134
135
136
private
:
137
// /////////////// Attributes /////////////////
139
const
AirportCode_T
_origin;
140
142
const
AirportCode_T
_destination;
143
145
const
CityCode_T
_pos;
146
148
const
Date_T
_preferredDepartureDate;
149
151
const
DateTime_T
_notificationDateTime;
152
154
const
CabinCode_T
_preferredCabin;
155
157
const
NbOfSeats_T
_partySize;
158
160
const
ChannelLabel_T
_channel;
161
164
const
TripType_T
_tripType;
165
167
const
DayDuration_T
_stayDuration;
168
170
const
FrequentFlyer_T
_frequentFlyerType;
171
173
const
Duration_T
_preferredDepartureTime;
174
176
const
WTP_T
_wtp;
177
179
const
PriceValue_T
_valueOfTime;
180
};
181
182
}
183
#endif
// __STDAIR_BOM_OPTIMISATIONNOTIFICATIONSTRUCT_HPP
StructAbstract.hpp
OptimisationNotificationTypes.hpp
stdair_demand_types.hpp
stdair_inventory_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::Date_T
boost::gregorian::date Date_T
Definition
stdair_date_time_types.hpp:20
stdair::DateTime_T
boost::posix_time::ptime DateTime_T
Definition
stdair_date_time_types.hpp:26
stdair::WTP_T
double WTP_T
Definition
stdair_demand_types.hpp:71
stdair::PriceValue_T
double PriceValue_T
Definition
stdair_basic_types.hpp:76
stdair::ChannelLabel_T
std::string ChannelLabel_T
Definition
stdair_demand_types.hpp:92
stdair::TripType_T
std::string TripType_T
Definition
stdair_basic_types.hpp:64
stdair::FrequentFlyer_T
std::string FrequentFlyer_T
Definition
stdair_demand_types.hpp:95
stdair::Duration_T
boost::posix_time::time_duration Duration_T
Definition
stdair_date_time_types.hpp:17
stdair::DayDuration_T
int DayDuration_T
Definition
stdair_date_time_types.hpp:38
stdair::NbOfSeats_T
double NbOfSeats_T
Definition
stdair_basic_types.hpp:92
stdair::CityCode_T
LocationCode_T CityCode_T
Definition
stdair_basic_types.hpp:25
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition
stdair_basic_types.hpp:22
stdair::CabinCode_T
std::string CabinCode_T
Definition
stdair_basic_types.hpp:41
stdair::StructAbstract::StructAbstract
StructAbstract()
Definition
StructAbstract.hpp:49
stdair::OptimisationNotificationStruct
Definition
OptimisationNotificationStruct.hpp:19
stdair::OptimisationNotificationStruct::getWTP
const WTP_T & getWTP() const
Definition
OptimisationNotificationStruct.hpp:83
stdair::OptimisationNotificationStruct::getStayDuration
const DayDuration_T & getStayDuration() const
Definition
OptimisationNotificationStruct.hpp:68
stdair::OptimisationNotificationStruct::getPartySize
const NbOfSeats_T & getPartySize() const
Definition
OptimisationNotificationStruct.hpp:53
stdair::OptimisationNotificationStruct::getOptimisationChannel
const ChannelLabel_T & getOptimisationChannel() const
Definition
OptimisationNotificationStruct.hpp:58
stdair::OptimisationNotificationStruct::getFrequentFlyerType
const FrequentFlyer_T & getFrequentFlyerType() const
Definition
OptimisationNotificationStruct.hpp:73
stdair::OptimisationNotificationStruct::getValueOfTime
const PriceValue_T & getValueOfTime() const
Definition
OptimisationNotificationStruct.hpp:88
stdair::OptimisationNotificationStruct::getPreferedDepartureDate
const Date_T & getPreferedDepartureDate() const
Definition
OptimisationNotificationStruct.hpp:38
stdair::OptimisationNotificationStruct::getDestination
const AirportCode_T & getDestination() const
Definition
OptimisationNotificationStruct.hpp:28
stdair::OptimisationNotificationStruct::getNotificationDateTime
const DateTime_T & getNotificationDateTime() const
Definition
OptimisationNotificationStruct.hpp:43
stdair::OptimisationNotificationStruct::describe
const std::string describe() const
Definition
OptimisationNotificationStruct.cpp:77
stdair::OptimisationNotificationStruct::getTripType
const TripType_T & getTripType() const
Definition
OptimisationNotificationStruct.hpp:63
stdair::OptimisationNotificationStruct::OptimisationNotificationStruct
OptimisationNotificationStruct(const AirportCode_T &iOrigin, const AirportCode_T &iDestination, const CityCode_T &iPOS, const Date_T &iDepartureDate, const DateTime_T &iNotificationDateTime, const CabinCode_T &iPreferredCabin, const NbOfSeats_T &iPartySize, const ChannelLabel_T &iChannel, const TripType_T &iTripType, const DayDuration_T &iStayDuration, const FrequentFlyer_T &iFrequentFlyerType, const Duration_T &iPreferredDepartureTime, const WTP_T &iWTP, const PriceValue_T &iValueOfTime)
Definition
OptimisationNotificationStruct.cpp:39
stdair::OptimisationNotificationStruct::getPOS
const CityCode_T & getPOS() const
Definition
OptimisationNotificationStruct.hpp:33
stdair::OptimisationNotificationStruct::~OptimisationNotificationStruct
~OptimisationNotificationStruct()
Definition
OptimisationNotificationStruct.cpp:64
stdair::OptimisationNotificationStruct::fromStream
void fromStream(std::istream &ioIn)
Definition
OptimisationNotificationStruct.cpp:73
stdair::OptimisationNotificationStruct::getPreferredCabin
const CabinCode_T & getPreferredCabin() const
Definition
OptimisationNotificationStruct.hpp:48
stdair::OptimisationNotificationStruct::toStream
void toStream(std::ostream &ioOut) const
Definition
OptimisationNotificationStruct.cpp:68
stdair::OptimisationNotificationStruct::getOrigin
const AirportCode_T & getOrigin() const
Definition
OptimisationNotificationStruct.hpp:23
stdair::OptimisationNotificationStruct::getPreferredDepartureTime
const Duration_T & getPreferredDepartureTime() const
Definition
OptimisationNotificationStruct.hpp:78
Generated for StdAir by
1.17.0