#include <trademgen/bom/DemandStreamKey.hpp>
Public Member Functions | |
DemandStreamKey (const stdair::AirportCode_T &iOrigin, const stdair::AirportCode_T &iDestination, const stdair::Date_T &iPreferredDepartureDate, const stdair::CabinCode_T &iPreferredCabin) | |
DemandStreamKey (const DemandStreamKey &) | |
~DemandStreamKey () | |
const stdair::AirportCode_T & | getOrigin () const |
const stdair::AirportCode_T & | getDestination () const |
const stdair::Date_T & | getPreferredDepartureDate () const |
const stdair::CabinCode_T & | getPreferredCabin () const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
const std::string | toString () const |
Key of a given demand-stream, made of a pair of required airports/cities (origin and destination), a preferred departure date and a preferred cabin. Those attributes correspond to a the travel requirements of a simulated traveller.
Definition at line 20 of file DemandStreamKey.hpp.
TRADEMGEN::DemandStreamKey::DemandStreamKey | ( | const stdair::AirportCode_T & | iOrigin, |
const stdair::AirportCode_T & | iDestination, | ||
const stdair::Date_T & | iPreferredDepartureDate, | ||
const stdair::CabinCode_T & | iPreferredCabin | ||
) |
Constructor.
Definition at line 25 of file DemandStreamKey.cpp.
TRADEMGEN::DemandStreamKey::DemandStreamKey | ( | const DemandStreamKey & | iKey | ) |
Default copy constructor.
Definition at line 35 of file DemandStreamKey.cpp.
TRADEMGEN::DemandStreamKey::~DemandStreamKey | ( | ) |
Destructor.
Definition at line 42 of file DemandStreamKey.cpp.
|
inline |
Get the origin.
Definition at line 43 of file DemandStreamKey.hpp.
Referenced by TRADEMGEN::DemandStream::generateNextRequest(), and TRADEMGEN::DemandStream::getOrigin().
|
inline |
Get the destination.
Definition at line 48 of file DemandStreamKey.hpp.
Referenced by TRADEMGEN::DemandStream::generateNextRequest(), and TRADEMGEN::DemandStream::getDestination().
|
inline |
Get the preferred departure date.
Definition at line 53 of file DemandStreamKey.hpp.
Referenced by TRADEMGEN::DemandStream::generateNextRequest(), TRADEMGEN::DemandStream::generateTimeOfRequestPoissonProcess(), TRADEMGEN::DemandStream::generateTimeOfRequestStatisticsOrder(), and TRADEMGEN::DemandStream::getPreferredDepartureDate().
|
inline |
Get the preferred cabin.
Definition at line 58 of file DemandStreamKey.hpp.
Referenced by TRADEMGEN::DemandStream::generateNextRequest(), and TRADEMGEN::DemandStream::getPreferredCabin().
void TRADEMGEN::DemandStreamKey::toStream | ( | std::ostream & | ioOut | ) | const |
Dump a Business Object Key into an output stream.
ostream& | the output stream. |
Definition at line 46 of file DemandStreamKey.cpp.
References toString().
void TRADEMGEN::DemandStreamKey::fromStream | ( | std::istream & | ioIn | ) |
Read a Business Object Key from an input stream.
istream& | the input stream. |
Definition at line 51 of file DemandStreamKey.cpp.
const std::string TRADEMGEN::DemandStreamKey::toString | ( | ) | const |
Get the serialised version of the Business Object Key.
That string is unique, at the level of a given Business Object, when among children of a given parent Business Object.
For instance, "H" and "K" allow to differentiate among two marketing classes for the same segment-stream.
Definition at line 55 of file DemandStreamKey.cpp.
Referenced by TRADEMGEN::DemandStream::describeKey(), TRADEMGEN::DemandStream::display(), toStream(), and TRADEMGEN::DemandStream::toString().