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

RMOL::FacBucket Class Reference

#include <rmol/factory/FacBucket.hpp>

Inheritance diagram for RMOL::FacBucket:
RMOL::FacBomAbstract

List of all members.

Public Types

typedef std::vector
< BomAbstract * > 
BomPool_T

Public Member Functions

virtual ~FacBucket ()
Bucketcreate (const FldYieldRange &)
Bucketcreate (const FldYieldRange &, Demand &)
void clean ()

Static Public Member Functions

static FacBucketinstance ()
static void createDemandLink (Bucket &, Demand &)

Protected Member Functions

 FacBucket ()

Protected Attributes

BomPool_T _pool

Detailed Description

Factory for Bucket.

Definition at line 18 of file FacBucket.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::FacBucket::~FacBucket (  )  [virtual]

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

Definition at line 16 of file FacBucket.cpp.

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

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

Definition at line 48 of file FacBucket.hpp.

Referenced by instance().


Member Function Documentation

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

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

Returns:
FacBucket&

Definition at line 21 of file FacBucket.cpp.

References FacBucket().

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

Bucket & RMOL::FacBucket::create ( const FldYieldRange iYieldRange  ) 

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

Returns:
Bucket& The newly created object.

Definition at line 33 of file FacBucket.cpp.

References RMOL::FacBomAbstract::_pool.

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

Bucket & RMOL::FacBucket::create ( const FldYieldRange iYieldRange,
Demand iDemand 
)

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

Returns:
Bucket& The newly created object.

Definition at line 46 of file FacBucket.cpp.

References RMOL::FacBomAbstract::_pool, and createDemandLink().

void RMOL::FacBucket::createDemandLink ( Bucket ioBucket,
Demand iDemand 
) [static]

Create the link between a Bucket (parent) and a Demand (child).

Definition at line 63 of file FacBucket.cpp.

References RMOL::Bucket::setDemand().

Referenced by create().

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 Fri Jul 30 22:23:21 2010 for RMOL by Doxygen 1.6.1