RMOL Logo Get Revenue Management Optimisation Library at SourceForge.net. Fast, secure and Free Open Source software downloads

RMOL::FacDemand Class Reference

#include <rmol/factory/FacDemand.hpp>

Inheritance diagram for RMOL::FacDemand:

RMOL::FacBomAbstract

List of all members.

Public Types

typedef std::vector
< BomAbstract * > 
BomPool_T

Public Member Functions

virtual ~FacDemand ()
Demandcreate (const FldDistributionParameters &, const FldYieldRange &)
void clean ()

Static Public Member Functions

static FacDemandinstance ()

Protected Member Functions

 FacDemand ()

Protected Attributes

BomPool_T _pool


Detailed Description

Factory for Demand.

Definition at line 18 of file FacDemand.hpp.


Member Typedef Documentation

typedef std::vector<BomAbstract*> RMOL::FacBomAbstract::BomPool_T [inherited]

Define the list (pool) of Bom objects.

Definition at line 20 of file FacBomAbstract.hpp.


Constructor & Destructor Documentation

RMOL::FacDemand::~FacDemand (  )  [virtual]

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

Definition at line 16 of file FacDemand.cpp.

RMOL::FacDemand::FacDemand (  )  [inline, protected]

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

Definition at line 40 of file FacDemand.hpp.

Referenced by instance().


Member Function Documentation

FacDemand & RMOL::FacDemand::instance (  )  [static]

Provide the unique instance.
The singleton is instantiated when first used

Returns:
FacDemand&

Definition at line 21 of file FacDemand.cpp.

References FacDemand().

Referenced by RMOL::Optimiser::heuristicOptimisationByEmsrB(), and RMOL::FileMgr::readAndProcessInputFile().

Demand & RMOL::FacDemand::create ( const FldDistributionParameters iDistributionParameters,
const FldYieldRange iYieldRange 
)

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

Returns:
Demand& The newly created object.

Definition at line 34 of file FacDemand.cpp.

References RMOL::FacBomAbstract::_pool.

Referenced by RMOL::Optimiser::heuristicOptimisationByEmsrB(), and RMOL::FileMgr::readAndProcessInputFile().

void RMOL::FacBomAbstract::clean (  )  [inherited]

Destroyed all the object instantiated by this factory.

Definition at line 18 of file FacBomAbstract.cpp.

References RMOL::FacBomAbstract::_pool.

Referenced by RMOL::FacBomAbstract::~FacBomAbstract().


Member Data Documentation

BomPool_T RMOL::FacBomAbstract::_pool [protected, inherited]


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

Generated on Sun Jun 14 23:34:04 2009 for RMOL by Doxygen 1.5.8