Class representing the actual attributes for an airline flight-date. More...
#include <stdair/bom/OnDDate.hpp>
Class representing the actual attributes for an airline flight-date.
typedef OnDDateKey stdair::OnDDate::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 43 of file OnDDate.hpp.
stdair::OnDDate::OnDDate | ( | const Key_T & | iKey | ) | [protected] |
Main constructor.
Definition at line 29 of file OnDDate.cpp.
stdair::OnDDate::~OnDDate | ( | ) | [protected, virtual] |
Destructor.
Definition at line 34 of file OnDDate.cpp.
const Key_T& stdair::OnDDate::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::OnDDate::getParent | ( | ) | const [inline] |
Get the parent object.
Definition at line 54 of file OnDDate.hpp.
References _parent.
Referenced by getAirlineCode().
const AirlineCode_T & stdair::OnDDate::getAirlineCode | ( | ) | const |
Get the airline code (key of the parent object).
Definition at line 45 of file OnDDate.cpp.
References getParent(), and stdair::Inventory::getAirlineCode().
const stdair::Date_T stdair::OnDDate::getDate | ( | ) | const [inline] |
Get the boarding date.
Definition at line 69 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::getDate().
const stdair::AirportCode_T stdair::OnDDate::getOrigin | ( | ) | const [inline] |
Get the origin.
Definition at line 74 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::getOrigin().
const stdair::AirportCode_T stdair::OnDDate::getDestination | ( | ) | const [inline] |
Get the destination.
Definition at line 79 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::getDestination().
const HolderMap_T& stdair::OnDDate::getHolderMap | ( | ) | const [inline] |
const StringDemandStructMap_T& stdair::OnDDate::getDemandInfoMap | ( | ) | const [inline] |
Get the map of demand information.
Definition at line 93 of file OnDDate.hpp.
References _classPathDemandMap.
const CabinForecastMap_T& stdair::OnDDate::getTotalForecastMap | ( | ) | const [inline] |
Get the map of total forecast.
Definition at line 100 of file OnDDate.hpp.
References _cabinForecastMap.
const WTPDemandPair_T& stdair::OnDDate::getTotalForecast | ( | const CabinCode_T & | iCC | ) | const [inline] |
Get the total forecast for a given cabin.
Definition at line 107 of file OnDDate.hpp.
References _cabinForecastMap.
const CabinClassPairList_T& stdair::OnDDate::getCabinClassPairList | ( | const std::string & | iStr | ) | const [inline] |
Get the cabin-class pair out of a string.
Definition at line 115 of file OnDDate.hpp.
References _stringCabinClassPairListMap.
const short stdair::OnDDate::getNbOfSegments | ( | ) | const [inline] |
Get the number of segments of the O&D.
Definition at line 123 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::getNbOfSegments().
void stdair::OnDDate::setDemandInformation | ( | const CabinClassPairList_T & | iCabinClassPairList, |
const YieldDemandPair_T & | iYieldDemandPair | ||
) |
Set demand information.
Definition at line 54 of file OnDDate.cpp.
References _classPathDemandMap, and _stringCabinClassPairListMap.
void stdair::OnDDate::setTotalForecast | ( | const CabinCode_T & | iCabinCode, |
const WTPDemandPair_T & | iWTPDemandPair | ||
) |
Set forecast information per cabin.
Definition at line 77 of file OnDDate.cpp.
References _cabinForecastMap.
void stdair::OnDDate::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 146 of file OnDDate.hpp.
References toString().
void stdair::OnDDate::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 155 of file OnDDate.hpp.
std::string stdair::OnDDate::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 38 of file OnDDate.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::OnDDate::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 166 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::toString().
Referenced by toString().
void stdair::OnDDate::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
Serialisation.
friend class FacBom [friend] |
Definition at line 34 of file OnDDate.hpp.
friend class FacBomManager [friend] |
Definition at line 35 of file OnDDate.hpp.
friend class boost::serialization::access [friend] |
Definition at line 36 of file OnDDate.hpp.
Key_T stdair::OnDDate::_key [protected] |
Primary key (list of OnD string keys).
Definition at line 216 of file OnDDate.hpp.
Referenced by getKey(), getDate(), getOrigin(), getDestination(), getNbOfSegments(), and describeKey().
BomAbstract* stdair::OnDDate::_parent [protected] |
Pointer on the parent class (Inventory).
Definition at line 221 of file OnDDate.hpp.
Referenced by getParent().
HolderMap_T stdair::OnDDate::_holderMap [protected] |
Map holding the children (SegmentDate and LegDate objects).
Definition at line 226 of file OnDDate.hpp.
Referenced by getHolderMap().
O&D demand information.
Definition at line 231 of file OnDDate.hpp.
Referenced by setDemandInformation(), and getDemandInfoMap().
O&D cabin and associated class map.
Definition at line 236 of file OnDDate.hpp.
Referenced by setDemandInformation(), and getCabinClassPairList().
CabinForecastMap_T stdair::OnDDate::_cabinForecastMap [protected] |
O&D demand total forecast.
Definition at line 241 of file OnDDate.hpp.
Referenced by setTotalForecast(), getTotalForecastMap(), and getTotalForecast().