TraDemGen Logo  1.00.2
C++ Simulated Travel Demand Generation Library
TRADEMGEN::FacTRADEMGENServiceContext Class Reference

Factory for creating the TraDemGen service context instance. More...

#include <trademgen/factory/FacTRADEMGENServiceContext.hpp>

+ Inheritance diagram for TRADEMGEN::FacTRADEMGENServiceContext:

Public Member Functions

 ~FacTRADEMGENServiceContext ()
 
TRADEMGEN_ServiceContextcreate (const stdair::RandomSeed_T &)
 

Static Public Member Functions

static FacTRADEMGENServiceContextinstance ()
 

Protected Member Functions

 FacTRADEMGENServiceContext ()
 

Detailed Description

Factory for creating the TraDemGen service context instance.

Definition at line 21 of file FacTRADEMGENServiceContext.hpp.

Constructor & Destructor Documentation

TRADEMGEN::FacTRADEMGENServiceContext::~FacTRADEMGENServiceContext ( )

Destructor.

The Destruction put the _instance to NULL in order to be clean for the next FacTRADEMGENServiceContext::instance().

Definition at line 17 of file FacTRADEMGENServiceContext.cpp.

TRADEMGEN::FacTRADEMGENServiceContext::FacTRADEMGENServiceContext ( )
inlineprotected

Default Constructor.

This constructor is protected in order to ensure the singleton pattern.

Definition at line 57 of file FacTRADEMGENServiceContext.hpp.

Referenced by instance().

Member Function Documentation

FacTRADEMGENServiceContext & TRADEMGEN::FacTRADEMGENServiceContext::instance ( )
static

Provide the unique instance.

The singleton is instantiated when first used.

Returns
FacTRADEMGENServiceContext&

Definition at line 22 of file FacTRADEMGENServiceContext.cpp.

References create(), and FacTRADEMGENServiceContext().

Referenced by TRADEMGEN::TRADEMGEN_Service::~TRADEMGEN_Service().

TRADEMGEN_ServiceContext & TRADEMGEN::FacTRADEMGENServiceContext::create ( const stdair::RandomSeed_T &  iRandomSeed)

Create a new TRADEMGEN_ServiceContext object.

This new object is added to the list of instantiated objects.

Parameters
conststdair::RandomSeed_T& Seed for the random generation.
Returns
TRADEMGEN_ServiceContext& The newly created object.

Definition at line 35 of file FacTRADEMGENServiceContext.cpp.

Referenced by instance(), and TRADEMGEN::TRADEMGEN_Service::~TRADEMGEN_Service().


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