TraDemGen Logo  1.00.0
C++ Simulated Travel Demand Generation Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
TRADEMGEN::FacTRADEMGENServiceContext Class Reference

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

#include <trademgen/factory/FacTRADEMGENServiceContext.hpp>

+ Inheritance diagram for TRADEMGEN::FacTRADEMGENServiceContext:

List of all members.

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

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.


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