Class representing the actual attributes for an airline flight-date. More...
#include <stdair/bom/OnDDate.hpp>
Public Types | |
typedef OnDDateKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const AirlineCode_T & | getAirlineCode () const |
const stdair::Date_T | getDate () const |
const stdair::AirportCode_T | getOrigin () const |
const stdair::AirportCode_T | getDestination () const |
const HolderMap_T & | getHolderMap () const |
const StringDemandStructMap_T & | getDemandInfoMap () const |
const CabinForecastMap_T & | getTotalForecastMap () const |
const WTPDemandPair_T & | getTotalForecast (const CabinCode_T &iCC) const |
const CabinClassPairList_T & | getCabinClassPairList (const std::string &iStr) const |
const short | getNbOfSegments () const |
void | setDemandInformation (const CabinClassPairList_T &, const YieldDemandPair_T &) |
void | setTotalForecast (const CabinCode_T &, const WTPDemandPair_T &) |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Protected Member Functions | |
OnDDate (const Key_T &) | |
virtual | ~OnDDate () |
Friends | |
class | FacBom |
class | FacCloneBom |
class | FacBomManager |
class | boost::serialization::access |
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.
|
protected |
Main constructor.
Definition at line 28 of file OnDDate.cpp.
|
protectedvirtual |
Destructor.
Definition at line 33 of file OnDDate.cpp.
|
inline |
|
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().
|
inline |
Get the boarding date.
Definition at line 70 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::getDate().
|
inline |
Get the origin.
Definition at line 75 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::getOrigin().
|
inline |
Get the destination.
Definition at line 80 of file OnDDate.hpp.
References _key, and stdair::OnDDateKey::getDestination().
|
inline |
|
inline |
Get the map of demand information.
Definition at line 94 of file OnDDate.hpp.
References _classPathDemandMap.
|
inline |
Get the map of total forecast.
Definition at line 101 of file OnDDate.hpp.
References _cabinForecastMap.
|
inline |
Get the total forecast for a given cabin.
Definition at line 108 of file OnDDate.hpp.
References _cabinForecastMap.
|
inline |
Get the cabin-class pair out of a string.
Definition at line 116 of file OnDDate.hpp.
References _stringCabinClassPairListMap.
|
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.
|
inlinevirtual |
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().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 156 of file OnDDate.hpp.
|
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().
|
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 | ||
) |
Serialisation.
|
friend |
Definition at line 34 of file OnDDate.hpp.
|
friend |
Definition at line 35 of file OnDDate.hpp.
|
friend |
Definition at line 36 of file OnDDate.hpp.
|
friend |
Definition at line 37 of file OnDDate.hpp.
|
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().
|
protected |
Pointer on the parent class (Inventory).
Definition at line 222 of file OnDDate.hpp.
Referenced by getParent().
|
protected |
Map holding the children (SegmentDate and LegDate objects).
Definition at line 227 of file OnDDate.hpp.
Referenced by getHolderMap().
|
protected |
O&D demand information.
Definition at line 232 of file OnDDate.hpp.
Referenced by getDemandInfoMap(), and setDemandInformation().
|
protected |
O&D cabin and associated class map.
Definition at line 237 of file OnDDate.hpp.
Referenced by getCabinClassPairList(), and setDemandInformation().
|
protected |
O&D demand total forecast.
Definition at line 242 of file OnDDate.hpp.
Referenced by getTotalForecast(), getTotalForecastMap(), and setTotalForecast().