#include <rmol/bom/HistoricalDataHolder.hpp>
Public Member Functions | |
const double | getNumberOfHistoricalData () const |
const double & | getHistoricalData (const short i) const |
const double | getMean () const |
const double | getStandardDeviation (const double &iMean) const |
void | addHistoricalData (const double iHistoricalData) |
void | toStream (std::ostream &ioOut) const |
const std::string | describe () const |
void | display () const |
virtual | ~HistoricalDataHolder () |
HistoricalDataHolder () | |
HistoricalDataHolder (const HistoricalDataHolder &) | |
virtual void | fromStream (std::istream &ioIn) |
HistoricalDataHolder [Usage example] Forecast remaining demand 10 days before departure for flight 2009/09/02 AD101 NCE->CDG Y. HistoricalDataHolder will be the Vector of [45;60;58] if the remaining demand 10days before departure of the following similar flights: 2009/08/05 AD101 NCE->CDG Y: 45 2009/08/12 AD101 NCE->CDG Y: 60 2009/08/19 AD101 NCE->CDG Y: 58
Definition at line 23 of file HistoricalDataHolder.hpp.
RMOL::HistoricalDataHolder::~HistoricalDataHolder | ( | ) | [virtual] |
Destructors.
Definition at line 25 of file HistoricalDataHolder.cpp.
RMOL::HistoricalDataHolder::HistoricalDataHolder | ( | ) |
Constructors.
Definition at line 21 of file HistoricalDataHolder.cpp.
RMOL::HistoricalDataHolder::HistoricalDataHolder | ( | const HistoricalDataHolder & | ) |
const double RMOL::HistoricalDataHolder::getNumberOfHistoricalData | ( | ) | const [inline] |
Get the number of historical data.
Definition at line 28 of file HistoricalDataHolder.hpp.
Referenced by getMean(), and toStream().
const double& RMOL::HistoricalDataHolder::getHistoricalData | ( | const short | i | ) | const [inline] |
Get the historical data.
Definition at line 33 of file HistoricalDataHolder.hpp.
Referenced by getMean(), and toStream().
const double RMOL::HistoricalDataHolder::getMean | ( | ) | const |
Get the mean of the data
Definition at line 30 of file HistoricalDataHolder.cpp.
References getHistoricalData(), and getNumberOfHistoricalData().
const double RMOL::HistoricalDataHolder::getStandardDeviation | ( | const double & | iMean | ) | const |
Get the standard deviation of the data
Definition at line 46 of file HistoricalDataHolder.cpp.
void RMOL::HistoricalDataHolder::addHistoricalData | ( | const double | iHistoricalData | ) | [inline] |
Add historical data to the holder.
Definition at line 44 of file HistoricalDataHolder.hpp.
void RMOL::HistoricalDataHolder::toStream | ( | std::ostream & | ioOut | ) | const |
Dump a Business Object into an output stream.
ostream& | the output stream |
Reimplemented from RMOL::StructAbstract.
Definition at line 64 of file HistoricalDataHolder.cpp.
References getHistoricalData(), and getNumberOfHistoricalData().
Referenced by display().
const std::string RMOL::HistoricalDataHolder::describe | ( | ) | const [virtual] |
Give a description of the structure (for display purposes).
Implements RMOL::StructAbstract.
Definition at line 77 of file HistoricalDataHolder.cpp.
void RMOL::HistoricalDataHolder::display | ( | ) | const |
Display on standard output.
Definition at line 85 of file HistoricalDataHolder.cpp.
References toStream().
Referenced by RMOL::HistoricalDataHolderHolder::toStream().
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>>().
Generated on Fri Jul 30 21:53:40 2010 for RMOL by Doxygen 1.6.1