RMOL Logo Get Revenue Management Optimisation Library at SourceForge.net. Fast, secure and Free Open Source software downloads
Public Member Functions

RMOL::HistoricalBookingHolder Struct Reference

#include <rmol/bom/HistoricalBookingHolder.hpp>

Inheritance diagram for RMOL::HistoricalBookingHolder:
RMOL::StructAbstract

List of all members.

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)

Detailed Description

Holder of a HistoricalBookingList object (for memory allocation and recollection purposes).

Definition at line 24 of file HistoricalBookingHolder.hpp.


Constructor & Destructor Documentation

virtual RMOL::HistoricalBookingHolder::~HistoricalBookingHolder (  )  [virtual]

Destructor.

RMOL::HistoricalBookingHolder::HistoricalBookingHolder (  ) 

Constructor.
Protected to force the use of the Factory.


Member Function Documentation

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.

Parameters:
ostream& the output stream
Returns:
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.

Parameters:
istream& the input stream.

Definition at line 29 of file StructAbstract.hpp.

Referenced by operator>>().


The documentation for this struct was generated from the following file:
SourceForge Logo

Generated on Sat Aug 13 2011 11:59:34 for RMOL by Doxygen 1.7.1