#include <rmol/bom/HistoricalBookingHolder.hpp>
Public Member Functions | |
| const short | getNumberOfFlights () const |
| const short | getNumberOfUncensoredData () const |
| const double | getNumberOfUncensoredBookings () const |
| const double | getUncensoredStandardDeviation (const double iMeanOfUncensoredBookings, const short iNumberOfUncensoredData) const |
| const double | getMeanDemand () const |
| const double | getStandardDeviation (const double) const |
| const std::vector< bool > | getListOfToBeUnconstrainedFlags () const |
| const double | getHistoricalBooking (const short i) const |
| const double | getUnconstrainedDemand (const short i) const |
| const double | getUnconstrainedDemandOnFirstElement () const |
| const double | calculateExpectedDemand (const double, const double, const short, const double) const |
| void | setUnconstrainedDemand (const double iExpectedDemand, const short i) |
| void | addHistoricalBooking (const HistoricalBooking iHistoricalBooking) |
| void | toStream (std::ostream &ioOut) const |
| const std::string | describe () const |
| void | display () const |
| virtual | ~HistoricalBookingHolder () |
| HistoricalBookingHolder () | |
| virtual void | fromStream (std::istream &ioIn) |
Holder of a HistoricalBookingList object (for memory allocation and recollection purposes).
Definition at line 24 of file HistoricalBookingHolder.hpp.
| virtual RMOL::HistoricalBookingHolder::~HistoricalBookingHolder | ( | ) | [virtual] |
Destructor.
| RMOL::HistoricalBookingHolder::HistoricalBookingHolder | ( | ) |
Constructor.
Protected to force the use of the Factory.
| const short RMOL::HistoricalBookingHolder::getNumberOfFlights | ( | ) | const |
Get number of flights.
| const short RMOL::HistoricalBookingHolder::getNumberOfUncensoredData | ( | ) | const |
Get number of uncensored booking data.
| const double RMOL::HistoricalBookingHolder::getNumberOfUncensoredBookings | ( | ) | const |
Get number of uncensored bookings.
| const double RMOL::HistoricalBookingHolder::getUncensoredStandardDeviation | ( | const double | iMeanOfUncensoredBookings, |
| const short | iNumberOfUncensoredData | ||
| ) | const |
Get standard deviation of uncensored bookings.
| const double RMOL::HistoricalBookingHolder::getMeanDemand | ( | ) | const |
Get mean of historical demand.
| const double RMOL::HistoricalBookingHolder::getStandardDeviation | ( | const double | ) | const |
Get standard deviation of demand.
| const std::vector<bool> RMOL::HistoricalBookingHolder::getListOfToBeUnconstrainedFlags | ( | ) | const |
Get the list of flags of need to be unconstrained.
| const double RMOL::HistoricalBookingHolder::getHistoricalBooking | ( | const short | i | ) | const |
Get the historical booking of the (i+1)-th flight.
| const double RMOL::HistoricalBookingHolder::getUnconstrainedDemand | ( | const short | i | ) | const |
Get the unconstraining demand of the (i+1)-th flight.
Referenced by getUnconstrainedDemandOnFirstElement().
| const double RMOL::HistoricalBookingHolder::getUnconstrainedDemandOnFirstElement | ( | ) | const [inline] |
Get the unconstraining demand of the first flight.
Definition at line 58 of file HistoricalBookingHolder.hpp.
References getUnconstrainedDemand().
| const double RMOL::HistoricalBookingHolder::calculateExpectedDemand | ( | const double | , |
| const double | , | ||
| const short | , | ||
| const double | |||
| ) | const |
Calculate the expected demand.
| void RMOL::HistoricalBookingHolder::setUnconstrainedDemand | ( | const double | iExpectedDemand, |
| const short | i | ||
| ) |
Set the expected historical demand of the (i+1)-th flight.
| void RMOL::HistoricalBookingHolder::addHistoricalBooking | ( | const HistoricalBooking | iHistoricalBooking | ) |
Add a HistoricalBooking object to the holder.
| void RMOL::HistoricalBookingHolder::toStream | ( | std::ostream & | ioOut | ) | const |
Dump a Business Object into an output stream.
| ostream& | the output stream |
Reimplemented from RMOL::StructAbstract.
| const std::string RMOL::HistoricalBookingHolder::describe | ( | ) | const [virtual] |
Give a description of the structure (for display purposes).
Implements RMOL::StructAbstract.
| void RMOL::HistoricalBookingHolder::display | ( | ) | const |
Display on standard output.
| virtual void RMOL::StructAbstract::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual, inherited] |
Read a Business Object from an input stream.
| istream& | the input stream. |
Definition at line 29 of file StructAbstract.hpp.
Referenced by operator>>().