13 OptimisationNotificationStruct::OptimisationNotificationStruct()
14 : _partySize (0), _stayDuration (0), _wtp (0.0), _valueOfTime (0.0) {
19 OptimisationNotificationStruct::
21 : _origin (iOptimisationNotification._origin),
22 _destination (iOptimisationNotification._destination),
23 _pos (iOptimisationNotification._pos),
24 _preferredDepartureDate (iOptimisationNotification._preferredDepartureDate),
25 _notificationDateTime (iOptimisationNotification._notificationDateTime),
26 _preferredCabin (iOptimisationNotification._preferredCabin),
27 _partySize (iOptimisationNotification._partySize),
28 _channel (iOptimisationNotification._channel),
29 _tripType (iOptimisationNotification._tripType),
30 _stayDuration (iOptimisationNotification._stayDuration),
31 _frequentFlyerType (iOptimisationNotification._frequentFlyerType),
32 _preferredDepartureTime (iOptimisationNotification._preferredDepartureTime),
33 _wtp (iOptimisationNotification._wtp),
34 _valueOfTime (iOptimisationNotification._valueOfTime) {
38 OptimisationNotificationStruct::
42 const Date_T& iDepartureDate,
53 : _origin (iOrigin), _destination (iDestination),
54 _pos (iPOS), _preferredDepartureDate (iDepartureDate),
55 _notificationDateTime (iNotificationDateTime),
56 _preferredCabin (iPreferredCabin), _partySize (iPartySize),
57 _channel (iChannel), _tripType (iTripType),
58 _stayDuration (iStayDuration), _frequentFlyerType (iFrequentFlyerType),
59 _preferredDepartureTime (iPreferredDepartureTime), _wtp (iWTP),
60 _valueOfTime (iValueOfTime) {
78 std::ostringstream oStr;
79 oStr <<
"At " << _notificationDateTime
80 <<
", for (" << _pos <<
") " << _origin <<
"-" << _destination
81 <<
" " << _preferredDepartureDate <<
" " << _preferredCabin
82 <<
" " << _partySize <<
" " << _channel <<
" " << _tripType
83 <<
" " << _stayDuration <<
" " << _frequentFlyerType
84 <<
" " << _preferredDepartureTime <<
" " << _wtp
85 <<
" " << _valueOfTime;
const std::string describe() const
LocationCode_T AirportCode_T
boost::posix_time::ptime DateTime_T
Handle on the StdAir library context.
boost::posix_time::time_duration Duration_T
LocationCode_T CityCode_T
void toStream(std::ostream &ioOut) const
std::string FrequentFlyer_T
~OptimisationNotificationStruct()
boost::gregorian::date Date_T
void fromStream(std::istream &ioIn)
std::string ChannelLabel_T