StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
stdair::FareFamily Class Reference

Class representing the actual attributes for a family fare. More...

#include <stdair/bom/FareFamily.hpp>

+ Inheritance diagram for stdair::FareFamily:

Public Types

typedef FareFamilyKey Key_T
 

Public Member Functions

const Key_TgetKey () const
 
BomAbstract *const getParent () const
 
const FamilyCode_TgetFamilyCode () const
 
const HolderMap_TgetHolderMap () const
 
const FRAT5Curve_TgetFrat5Curve () const
 
const FFDisutilityCurve_TgetDisutilityCurve () const
 
const MeanValue_TgetMean () const
 
const StdDevValue_TgetStdDev () const
 
const MeanStdDevPairVector_TgetMeanStdDev () const
 
void setFrat5Curve (const FRAT5Curve_T &iFRAT5Curve)
 
void setDisutilityCurve (const FFDisutilityCurve_T &iDisutilityCurve)
 
void setMean (const MeanValue_T &iMean)
 
void setStdDev (const StdDevValue_T &iStdDev)
 
void setMeanStdDev (const MeanStdDevPairVector_T &iMeanStdDev)
 
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)
 

Public Attributes

Key_T _key
 
BomAbstract_parent
 
HolderMap_T _holderMap
 
FRAT5Curve_T _frat5Curve
 
FFDisutilityCurve_T _disutilityCurve
 
MeanValue_T _mean
 
StdDevValue_T _stdDev
 
MeanStdDevPairVector_T _meanStdDev
 

Protected Member Functions

 FareFamily (const Key_T &)
 
virtual ~FareFamily ()
 

Friends

template<typename BOM >
class FacBom
 
template<typename BOM >
class FacCloneBom
 
class FacBomManager
 
class boost::serialization::access
 

Detailed Description

Class representing the actual attributes for a family fare.

Definition at line 28 of file FareFamily.hpp.

Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 39 of file FareFamily.hpp.

Constructor & Destructor Documentation

stdair::FareFamily::FareFamily ( const Key_T iKey)
protected

Constructor.

Definition at line 32 of file FareFamily.cpp.

stdair::FareFamily::~FareFamily ( )
protectedvirtual

Destructor.

Definition at line 36 of file FareFamily.cpp.

Member Function Documentation

const Key_T& stdair::FareFamily::getKey ( ) const
inline

Get the family fare key.

Definition at line 45 of file FareFamily.hpp.

References _key.

BomAbstract* const stdair::FareFamily::getParent ( ) const
inline

Get the parent object.

Definition at line 50 of file FareFamily.hpp.

References _parent.

const FamilyCode_T& stdair::FareFamily::getFamilyCode ( ) const
inline

Get the family fare code (part of the primary key).

Definition at line 55 of file FareFamily.hpp.

References _key, and stdair::FareFamilyKey::getFamilyCode().

const HolderMap_T& stdair::FareFamily::getHolderMap ( ) const
inline

Get the map of children holders.

Definition at line 60 of file FareFamily.hpp.

References _holderMap.

const FRAT5Curve_T& stdair::FareFamily::getFrat5Curve ( ) const
inline

Get the FRAT5 Curve.

Definition at line 65 of file FareFamily.hpp.

References _frat5Curve.

const FFDisutilityCurve_T& stdair::FareFamily::getDisutilityCurve ( ) const
inline

Get the Disutility Curve.

Definition at line 70 of file FareFamily.hpp.

References _disutilityCurve.

const MeanValue_T& stdair::FareFamily::getMean ( ) const
inline

Demand distribution.

Definition at line 75 of file FareFamily.hpp.

References _mean.

const StdDevValue_T& stdair::FareFamily::getStdDev ( ) const
inline

Definition at line 76 of file FareFamily.hpp.

References _stdDev.

const MeanStdDevPairVector_T& stdair::FareFamily::getMeanStdDev ( ) const
inline

Demand distribution.

Definition at line 79 of file FareFamily.hpp.

References _meanStdDev.

void stdair::FareFamily::setFrat5Curve ( const FRAT5Curve_T iFRAT5Curve)
inline

FRAT5 Curve.

Definition at line 85 of file FareFamily.hpp.

References _frat5Curve.

void stdair::FareFamily::setDisutilityCurve ( const FFDisutilityCurve_T iDisutilityCurve)
inline

Disutility Curve.

Definition at line 90 of file FareFamily.hpp.

References _disutilityCurve.

void stdair::FareFamily::setMean ( const MeanValue_T iMean)
inline

Demand distribution.

Definition at line 95 of file FareFamily.hpp.

References _mean.

void stdair::FareFamily::setStdDev ( const StdDevValue_T iStdDev)
inline

Definition at line 96 of file FareFamily.hpp.

References _stdDev.

void stdair::FareFamily::setMeanStdDev ( const MeanStdDevPairVector_T iMeanStdDev)
inline

Demand distribution.

Definition at line 99 of file FareFamily.hpp.

References _meanStdDev.

void stdair::FareFamily::toStream ( std::ostream &  ioOut) const
inlinevirtual

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Implements stdair::BomAbstract.

Definition at line 111 of file FareFamily.hpp.

References toString().

void stdair::FareFamily::fromStream ( std::istream &  ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 120 of file FareFamily.hpp.

std::string stdair::FareFamily::toString ( ) const
virtual

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 40 of file FareFamily.cpp.

References describeKey().

Referenced by toStream().

const std::string stdair::FareFamily::describeKey ( ) const
inline

Get a string describing the key.

Definition at line 131 of file FareFamily.hpp.

References _key, and stdair::FareFamilyKey::toString().

Referenced by toString().

template<class Archive >
void stdair::FareFamily::serialize ( Archive &  ar,
const unsigned int  iFileVersion 
)

Serialisation.

Definition at line 62 of file FareFamily.cpp.

References _key.

Friends And Related Function Documentation

template<typename BOM >
friend class FacBom
friend

Definition at line 29 of file FareFamily.hpp.

template<typename BOM >
friend class FacCloneBom
friend

Definition at line 30 of file FareFamily.hpp.

friend class FacBomManager
friend

Definition at line 31 of file FareFamily.hpp.

friend class boost::serialization::access
friend

Definition at line 32 of file FareFamily.hpp.

Member Data Documentation

Key_T stdair::FareFamily::_key

Primary key (fare family code).

Definition at line 184 of file FareFamily.hpp.

Referenced by describeKey(), getFamilyCode(), getKey(), and serialize().

BomAbstract* stdair::FareFamily::_parent

Pointer on the parent class (SegmentCabin).

Definition at line 189 of file FareFamily.hpp.

Referenced by getParent().

HolderMap_T stdair::FareFamily::_holderMap

Map holding the children (BookingClass objects).

Definition at line 194 of file FareFamily.hpp.

Referenced by getHolderMap().

FRAT5Curve_T stdair::FareFamily::_frat5Curve

The associated FRAT5 curve.

Definition at line 199 of file FareFamily.hpp.

Referenced by getFrat5Curve(), and setFrat5Curve().

FFDisutilityCurve_T stdair::FareFamily::_disutilityCurve

The associated disutility for the next higher fare family.

Definition at line 204 of file FareFamily.hpp.

Referenced by getDisutilityCurve(), and setDisutilityCurve().

MeanValue_T stdair::FareFamily::_mean

Demand distribution forecast.

Definition at line 207 of file FareFamily.hpp.

Referenced by getMean(), and setMean().

StdDevValue_T stdair::FareFamily::_stdDev

Definition at line 208 of file FareFamily.hpp.

Referenced by getStdDev(), and setStdDev().

MeanStdDevPairVector_T stdair::FareFamily::_meanStdDev

Achievable demand distribution forecast.

Definition at line 213 of file FareFamily.hpp.

Referenced by getMeanStdDev(), and setMeanStdDev().


The documentation for this class was generated from the following files: