TraDemGen Logo  1.00.9
C++ Simulated Travel Demand Generation Library
Loading...
Searching...
No Matches
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

◆ RandomGenerationContext() [1/2]

TRADEMGEN::RandomGenerationContext::RandomGenerationContext ( )

Default constructor.

Definition at line 13 of file RandomGenerationContext.cpp.

◆ RandomGenerationContext() [2/2]

TRADEMGEN::RandomGenerationContext::RandomGenerationContext ( const RandomGenerationContext & iRGC)

Default constructors.

Definition at line 19 of file RandomGenerationContext.cpp.

◆ ~RandomGenerationContext()

TRADEMGEN::RandomGenerationContext::~RandomGenerationContext ( )

Destructor.

Definition at line 26 of file RandomGenerationContext.cpp.

Member Function Documentation

◆ getNumberOfRequestsGeneratedSoFar()

const stdair::Count_T & TRADEMGEN::RandomGenerationContext::getNumberOfRequestsGeneratedSoFar ( ) const
inline

◆ getCumulativeProbabilitySoFar()

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

◆ setNumberOfRequestsGeneratedSoFar()

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

◆ setCumulativeProbabilitySoFar()

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

◆ incrementGeneratedRequestsCounter()

void TRADEMGEN::RandomGenerationContext::incrementGeneratedRequestsCounter ( )

Increment counter of requests generated so far.

Definition at line 38 of file RandomGenerationContext.cpp.

Referenced by TRADEMGEN::DemandStream::incrementGeneratedRequestsCounter().

◆ reset()

void TRADEMGEN::RandomGenerationContext::reset ( )

Reset the counters.

Definition at line 43 of file RandomGenerationContext.cpp.

Referenced by TRADEMGEN::DemandStream::reset().

◆ describe()

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

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

Definition at line 30 of file RandomGenerationContext.cpp.


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