#include <trademgen/basic/RandomGenerationContext.hpp>
Public Member Functions | |
const stdair::Count_T & | getNumberOfRequestsGeneratedSoFar () const |
const stdair::Probability_T & | getCumulativeProbabilitySoFar () const |
void | setNumberOfRequestsGeneratedSoFar (const stdair::Count_T &iCount) |
void | setCumulativeProbabilitySoFar (const stdair::Probability_T &iProb) |
RandomGenerationContext () | |
RandomGenerationContext (const RandomGenerationContext &) | |
~RandomGenerationContext () | |
void | incrementGeneratedRequestsCounter () |
void | reset () |
const std::string | describe () const |
Structure holding the context necessary for demand random generation.
Definition at line 20 of file RandomGenerationContext.hpp.
Default constructor.
Definition at line 13 of file RandomGenerationContext.cpp.
Default constructors.
Definition at line 20 of file RandomGenerationContext.cpp.
Destructor.
Definition at line 26 of file RandomGenerationContext.cpp.
const stdair::Count_T& TRADEMGEN::RandomGenerationContext::getNumberOfRequestsGeneratedSoFar | ( | ) | const [inline] |
Get the number of requests generated so far.
Definition at line 26 of file RandomGenerationContext.hpp.
Referenced by TRADEMGEN::DemandStream::generateTimeOfRequestStatisticsOrder(), TRADEMGEN::DemandStream::getNumberOfRequestsGeneratedSoFar(), and TRADEMGEN::DemandStream::stillHavingRequestsToBeGenerated().
const stdair::Probability_T& TRADEMGEN::RandomGenerationContext::getCumulativeProbabilitySoFar | ( | ) | const [inline] |
Get the cumulative probability in arrival pattern for last request generated so far (needed for sequential generation).
Definition at line 34 of file RandomGenerationContext.hpp.
Referenced by TRADEMGEN::DemandStream::generateTimeOfRequestStatisticsOrder().
void TRADEMGEN::RandomGenerationContext::setNumberOfRequestsGeneratedSoFar | ( | const stdair::Count_T & | iCount | ) | [inline] |
Set the number of requests generated so far.
Definition at line 43 of file RandomGenerationContext.hpp.
Referenced by TRADEMGEN::DemandStream::setNumberOfRequestsGeneratedSoFar().
void TRADEMGEN::RandomGenerationContext::setCumulativeProbabilitySoFar | ( | const stdair::Probability_T & | iProb | ) | [inline] |
Set the cumulative probability in arrival pattern for last request generated so far (needed for sequential generation).
Definition at line 51 of file RandomGenerationContext.hpp.
Referenced by TRADEMGEN::DemandStream::generateTimeOfRequestStatisticsOrder().
Increment counter of requests generated so far.
Definition at line 38 of file RandomGenerationContext.cpp.
Referenced by TRADEMGEN::DemandStream::incrementGeneratedRequestsCounter().
Reset the counters.
Definition at line 43 of file RandomGenerationContext.cpp.
Referenced by TRADEMGEN::DemandStream::reset().
const std::string TRADEMGEN::RandomGenerationContext::describe | ( | ) | const |
Give a description of the structure (for display purposes).
Definition at line 30 of file RandomGenerationContext.cpp.