#include <PlayGround.hxx>


Public Member Functions | |
| const PlayGround * | getPlayGround () const |
| int | getSpaceSize () const |
| void | stashPart (int nbCoresStashed, double weightOfRemain, YACS::BASES::AutoRefCnt< PartDefinition > &pdStashed, YACS::BASES::AutoRefCnt< PartDefinition > &pdRemain) const |
| std::vector< std::size_t > | computeWorkerIdsCovered (int nbCoresPerComp) const |
| virtual std::string | printSelf () const =0 |
| virtual std::vector< bool > | getCoresOn () const =0 |
| virtual PartDefinition * | copy () const =0 |
| virtual int | getNumberOfCoresConsumed () const =0 |
Public Member Functions inherited from YACS::ENGINE::RefCounter | |
| unsigned int | getRefCnt () const |
| void | incrRef () const |
| bool | decrRef () const |
Static Public Member Functions | |
| static YACS::BASES::AutoRefCnt< PartDefinition > | BuildFrom (const PlayGround *pg, const std::vector< int > &coreIds) |
Protected Member Functions | |
| PartDefinition (const PlayGround *pg) | |
| PartDefinition (const PartDefinition &other) | |
| virtual | ~PartDefinition () |
Protected Member Functions inherited from YACS::ENGINE::RefCounter | |
| RefCounter () | |
| RefCounter (const RefCounter &other) | |
| virtual | ~RefCounter () |
Private Attributes | |
| YACS::BASES::AutoConstRefCnt< PlayGround > | _pg |
Additional Inherited Members | |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
| static unsigned int | _totalCnt =0 |
Protected Attributes inherited from YACS::ENGINE::RefCounter | |
| unsigned int | _cnt |
Definition at line 118 of file PlayGround.hxx.
|
protected |
Definition at line 590 of file PlayGround.cxx.
References _pg.
|
protected |
Definition at line 595 of file PlayGround.cxx.
|
protectedvirtual |
Definition at line 599 of file PlayGround.cxx.
|
static |
Definition at line 612 of file PlayGround.cxx.
References YACS::ENGINE::PlayGround::getNumberOfCoresAvailable(), and yacsorb.CORBAEngineTest::i.
Referenced by YACS::ENGINE::PlayGround::partition(), and stashPart().
| std::vector< std::size_t > PartDefinition::computeWorkerIdsCovered | ( | int | nbCoresPerComp | ) | const |
you must garantee coherence between PlayGround::deduceMachineFrom, PlayGround::getNumberOfWorkers, and PartDefinition::computeWorkerIdsCovered
Definition at line 677 of file PlayGround.cxx.
References _pg, and getCoresOn().
|
pure virtual |
|
pure virtual |
Implemented in YACS::ENGINE::ContigPartDefinition, YACS::ENGINE::NonContigPartDefinition, and YACS::ENGINE::AllPartDefinition.
Referenced by computeWorkerIdsCovered(), YACS::ENGINE::PlayGround::partition(), and stashPart().
|
pure virtual |
|
inline |
Definition at line 127 of file PlayGround.hxx.
Referenced by YACS::ENGINE::PlayGround::partition(), YACS::ENGINE::ForkBlocPoint::partitionRegardingDPL(), and stashPart().
|
inline |
Definition at line 128 of file PlayGround.hxx.
Referenced by YACS::ENGINE::NonContigPartDefinition::checkOKIds(), YACS::ENGINE::ContigPartDefinition::ContigPartDefinition(), YACS::ENGINE::ContigPartDefinition::getCoresOn(), YACS::ENGINE::NonContigPartDefinition::getCoresOn(), YACS::ENGINE::AllPartDefinition::getCoresOn(), and YACS::ENGINE::AllPartDefinition::getNumberOfCoresConsumed().
|
pure virtual |
| void PartDefinition::stashPart | ( | int | nbCoresStashed, |
| double | weightOfRemain, | ||
| YACS::BASES::AutoRefCnt< PartDefinition > & | pdStashed, | ||
| YACS::BASES::AutoRefCnt< PartDefinition > & | pdRemain | ||
| ) | const |
Definition at line 639 of file PlayGround.cxx.
References BuildFrom(), YACS::ENGINE::PlayGround::BuildVectOfIdsFromVecBool(), getCoresOn(), and getPlayGround().
|
private |
Definition at line 136 of file PlayGround.hxx.
Referenced by computeWorkerIdsCovered(), and PartDefinition().