#include <stdair/basic/YieldRange.hpp>
Public Member Functions | |
YieldRange () | |
YieldRange (const YieldRange &) | |
YieldRange (const Yield_T iUpperYield) | |
YieldRange (const Yield_T iUpperYield, const Yield_T iAverageYield) | |
YieldRange (const Yield_T iUpperYield, const Yield_T iAverageYield, const Yield_T iLowerYield) | |
virtual | ~YieldRange () |
Yield_T | getUpperYield () const |
Yield_T | getAverageYield () const |
Yield_T | getLowerYield () const |
void | setUpperYield (const Yield_T iUpperYield) |
void | setAverageYield (const Yield_T iAverageYield) |
void | setLowerYield (const Yield_T iLowerYield) |
void | toStream (std::ostream &) const |
void | fromStream (std::istream &) |
const std::string | describe () const |
Class representing a range of yields.
Typically, bookings are priced according to rules (e.g., fare rules), leading to slight variations of revenues for a given product. The "yield range" captures the extent of revenues earned for a given product.
When no average and lower yields are defined, they are assumed to be equal to the upper yield.
Note that the lower yield is generally not defined, as it corresponds to the upper yield of the lower yield range.
Definition at line 23 of file YieldRange.hpp.
stdair::YieldRange::YieldRange | ( | ) |
Constructors.
Definition at line 13 of file YieldRange.cpp.
stdair::YieldRange::YieldRange | ( | const YieldRange & | iYieldRange | ) |
Definition at line 20 of file YieldRange.cpp.
stdair::YieldRange::YieldRange | ( | const Yield_T | iUpperYield | ) |
Definition at line 27 of file YieldRange.cpp.
Definition at line 33 of file YieldRange.cpp.
stdair::YieldRange::YieldRange | ( | const Yield_T | iUpperYield, |
const Yield_T | iAverageYield, | ||
const Yield_T | iLowerYield | ||
) |
Definition at line 40 of file YieldRange.cpp.
|
virtual |
Constructors.
Definition at line 48 of file YieldRange.cpp.
|
inline |
Getter for the upper yield of the range.
Definition at line 39 of file YieldRange.hpp.
|
inline |
Getter for the average yield of the range.
Definition at line 43 of file YieldRange.hpp.
|
inline |
Getter for the lower yield of the range.
Definition at line 47 of file YieldRange.hpp.
|
inline |
Setter for the upper yield of the range.
Definition at line 53 of file YieldRange.hpp.
|
inline |
Setter for the average yield of the range.
Definition at line 57 of file YieldRange.hpp.
|
inline |
Setter for the lower yield of the range.
Definition at line 61 of file YieldRange.hpp.
void stdair::YieldRange::toStream | ( | std::ostream & | ioOut | ) | const |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Reimplemented from stdair::StructAbstract.
Definition at line 52 of file YieldRange.cpp.
|
virtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented from stdair::StructAbstract.
Definition at line 58 of file YieldRange.cpp.
|
virtual |
Display of the structure.
Implements stdair::StructAbstract.
Definition at line 62 of file YieldRange.cpp.