TraDemGen Logo  0.2.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:

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

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.

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines