#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.
TRADEMGEN::RandomGenerationContext::RandomGenerationContext | ( | ) |
Default constructor.
Definition at line 13 of file RandomGenerationContext.cpp.
TRADEMGEN::RandomGenerationContext::RandomGenerationContext | ( | const RandomGenerationContext & | iRGC | ) |
Default constructors.
Definition at line 20 of file RandomGenerationContext.cpp.
TRADEMGEN::RandomGenerationContext::~RandomGenerationContext | ( | ) |
Destructor.
Definition at line 26 of file RandomGenerationContext.cpp.
|
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().
|
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().
|
inline |
Set the number of requests generated so far.
Definition at line 43 of file RandomGenerationContext.hpp.
Referenced by TRADEMGEN::DemandStream::setNumberOfRequestsGeneratedSoFar().
|
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().
void TRADEMGEN::RandomGenerationContext::incrementGeneratedRequestsCounter | ( | ) |
Increment counter of requests generated so far.
Definition at line 38 of file RandomGenerationContext.cpp.
Referenced by TRADEMGEN::DemandStream::incrementGeneratedRequestsCounter().
void TRADEMGEN::RandomGenerationContext::reset | ( | ) |
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.