$treeview $search $mathjax
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.
Definition at line 33 of file OnDDate.hpp.
typedef OnDDateKey stdair::OnDDate::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 44 of file OnDDate.hpp.
stdair::OnDDate::OnDDate | ( | const Key_T & | iKey | ) | [protected] |
Main constructor.
Definition at line 28 of file OnDDate.cpp.
stdair::OnDDate::~OnDDate | ( | ) | [protected, virtual] |
Destructor.
Definition at line 33 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 55 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 44 of file OnDDate.cpp.
References stdair::Inventory::getAirlineCode(), and getParent().
const stdair::Date_T stdair::OnDDate::getDate | ( | ) | const [inline] |
Get the boarding date.
Definition at line 70 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 75 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 80 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 94 of file OnDDate.hpp.
References _classPathDemandMap.
const CabinForecastMap_T& stdair::OnDDate::getTotalForecastMap | ( | ) | const [inline] |
Get the map of total forecast.
Definition at line 101 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 108 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 116 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 124 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 53 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 76 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 147 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 156 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 37 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 167 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::toString().
Referenced by toString().
void stdair::OnDDate::serialize | ( | Archive & | ar, | |
const unsigned int | iFileVersion | |||
) | [inline] |
Serialisation.
friend class FacBom [friend] |
Definition at line 34 of file OnDDate.hpp.
friend class FacCloneBom [friend] |
Definition at line 35 of file OnDDate.hpp.
friend class FacBomManager [friend] |
Definition at line 36 of file OnDDate.hpp.
friend class boost::serialization::access [friend] |
Definition at line 37 of file OnDDate.hpp.
Key_T stdair::OnDDate::_key [protected] |
Primary key (list of OnD string keys).
Definition at line 217 of file OnDDate.hpp.
Referenced by describeKey(), getDate(), getDestination(), getKey(), getNbOfSegments(), and getOrigin().
BomAbstract* stdair::OnDDate::_parent [protected] |
Pointer on the parent class (Inventory).
Definition at line 222 of file OnDDate.hpp.
Referenced by getParent().
HolderMap_T stdair::OnDDate::_holderMap [protected] |
Map holding the children (SegmentDate and LegDate objects).
Definition at line 227 of file OnDDate.hpp.
Referenced by getHolderMap().
O&D demand information.
Definition at line 232 of file OnDDate.hpp.
Referenced by getDemandInfoMap(), and setDemandInformation().
O&D cabin and associated class map.
Definition at line 237 of file OnDDate.hpp.
Referenced by getCabinClassPairList(), and setDemandInformation().
CabinForecastMap_T stdair::OnDDate::_cabinForecastMap [protected] |
O&D demand total forecast.
Definition at line 242 of file OnDDate.hpp.
Referenced by getTotalForecast(), getTotalForecastMap(), and setTotalForecast().