TraDemGen Logo  1.00.2
C++ Simulated Travel Demand Generation Library
TRADEMGEN::RandomGenerationContext Struct Reference

#include <trademgen/basic/RandomGenerationContext.hpp>

+ Inheritance diagram for TRADEMGEN::RandomGenerationContext:

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
 

Detailed Description

Structure holding the context necessary for demand random generation.

Definition at line 20 of file RandomGenerationContext.hpp.

Constructor & Destructor Documentation

TRADEMGEN::RandomGenerationContext::RandomGenerationContext ( )

Default constructor.

Definition at line 13 of file RandomGenerationContext.cpp.

Referenced by setCumulativeProbabilitySoFar().

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.

Referenced by setCumulativeProbabilitySoFar().

Member Function Documentation

const stdair::Count_T& TRADEMGEN::RandomGenerationContext::getNumberOfRequestsGeneratedSoFar ( ) const
inline
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.

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.

References describe(), incrementGeneratedRequestsCounter(), RandomGenerationContext(), reset(), and ~RandomGenerationContext().

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 setCumulativeProbabilitySoFar().

void TRADEMGEN::RandomGenerationContext::reset ( )

Reset the counters.

Definition at line 43 of file RandomGenerationContext.cpp.

Referenced by TRADEMGEN::DemandStream::reset(), and setCumulativeProbabilitySoFar().

const std::string TRADEMGEN::RandomGenerationContext::describe ( ) const

Give a description of the structure (for display purposes).

Definition at line 30 of file RandomGenerationContext.cpp.

Referenced by setCumulativeProbabilitySoFar().


The documentation for this struct was generated from the following files: