#include <rmol/factory/FacBucket.hpp>
Public Types | |
typedef std::vector < BomAbstract * > | BomPool_T |
Public Member Functions | |
virtual | ~FacBucket () |
Bucket & | create (const FldYieldRange &) |
Bucket & | create (const FldYieldRange &, Demand &) |
void | clean () |
Static Public Member Functions | |
static FacBucket & | instance () |
static void | createDemandLink (Bucket &, Demand &) |
Protected Member Functions | |
FacBucket () | |
Protected Attributes | |
BomPool_T | _pool |
Factory for Bucket.
Definition at line 18 of file FacBucket.hpp.
typedef std::vector<BomAbstract*> RMOL::FacBomAbstract::BomPool_T [inherited] |
Define the list (pool) of Bom objects.
Definition at line 20 of file FacBomAbstract.hpp.
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().
FacBucket & RMOL::FacBucket::instance | ( | ) | [static] |
Provide the unique instance.
The singleton is instantiated when first used
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.
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.
Definition at line 46 of file FacBucket.cpp.
References RMOL::FacBomAbstract::_pool, and createDemandLink().
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().
BomPool_T RMOL::FacBomAbstract::_pool [protected, inherited] |
List of instantiated Business Objects
Definition at line 34 of file FacBomAbstract.hpp.
Referenced by RMOL::FacBomAbstract::clean(), RMOL::FacStudyStatManager::create(), RMOL::FacPartialSumHolderHolder::create(), RMOL::FacPartialSumHolder::create(), RMOL::FacOverbooking::create(), RMOL::FacDemand::create(), RMOL::FacBucketHolder::create(), and create().
Generated on Fri Jul 30 21:43:02 2010 for RMOL by Doxygen 1.6.2-20100208