#include <HomogeneousPoolContainer.hxx>
Public Member Functions | |
void | attachOnCloning () const |
void | dettachOnCloning () const |
bool | isAttachedOnCloning () const |
void | setAttachOnCloningStatus (bool val) const |
virtual void | setSizeOfPool (int sz)=0 |
virtual int | getSizeOfPool () const =0 |
virtual std::size_t | getNumberOfFreePlace () const =0 |
virtual void | allocateFor (const std::vector< const Task * > &nodes)=0 |
virtual void | release (const Task *node)=0 |
Public Member Functions inherited from YACS::ENGINE::Container | |
virtual std::string | getKind () const =0 |
virtual std::string | getDiscreminantStrOfThis (const Task *askingNode) const |
virtual bool | isAlreadyStarted (const Task *askingNode) const =0 |
virtual void | start (const Task *askingNode)=0 throw (Exception) |
virtual std::string | getPlacementId (const Task *askingNode) const =0 |
virtual std::string | getFullPlacementId (const Task *askingNode) const =0 |
virtual void | lock ()=0 |
virtual void | unLock ()=0 |
virtual Container * | clone () const =0 |
WARNING ! clone behaviour MUST be in coherence with what is returned by isAttachedOnCloning() method More... | |
virtual Container * | cloneAlways () const =0 |
virtual bool | isSupportingRTODefNbOfComp () const |
virtual void | checkCapabilityToDealWith (const ComponentInstance *inst) const =0 throw (Exception) |
virtual void | setProperty (const std::string &name, const std::string &value)=0 |
virtual std::string | getProperty (const std::string &name) const =0 |
virtual void | clearProperties ()=0 |
virtual void | addComponentName (const std::string &name)=0 |
virtual std::map< std::string, std::string > | getProperties () const =0 |
virtual std::map< std::string, std::string > | getResourceProperties (const std::string &name) const =0 |
virtual void | setProperties (const std::map< std::string, std::string > &properties) |
std::string | getName () const |
void | setName (std::string name) |
WARNING ! name is used in edition to identify different containers, it is not the runtime name of the container More... | |
void | setProc (Proc *proc) |
Proc * | getProc () |
virtual void | shutdown (int level)=0 |
Public Member Functions inherited from YACS::ENGINE::RefCounter | |
unsigned int | getRefCnt () const |
void | incrRef () const |
bool | decrRef () |
Static Public Attributes | |
static const char | SIZE_OF_POOL_KEY [] ="SizeOfPool" |
static const char | INITIALIZE_SCRIPT_KEY [] ="InitializeScriptKey" |
Static Public Attributes inherited from YACS::ENGINE::Container | |
static const char | KIND_ENTRY [] ="container_kind" |
static const char | AOC_ENTRY [] ="attached_on_cloning" |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
static unsigned int | _totalCnt =0 |
Protected Member Functions | |
HomogeneousPoolContainer () | |
virtual | ~HomogeneousPoolContainer () |
Protected Member Functions inherited from YACS::ENGINE::Container | |
Container () | |
virtual | ~Container () |
Protected Member Functions inherited from YACS::ENGINE::RefCounter | |
RefCounter () | |
RefCounter (const RefCounter &other) | |
virtual | ~RefCounter () |
Additional Inherited Members | |
Protected Attributes inherited from YACS::ENGINE::Container | |
std::string | _name |
bool | _isAttachedOnCloning |
Proc * | _proc |
This is an abstract class, that represents a set of fixed number of worker "kernelcontainers" homegenous in the sense that can be used indifferently each other. But each of those worker pool can be used once at a time.
Definition at line 37 of file HomogeneousPoolContainer.hxx.
|
protected |
Definition at line 57 of file HomogeneousPoolContainer.cxx.
References YACS::ENGINE::Container::_isAttachedOnCloning.
|
protectedvirtual |
Definition at line 62 of file HomogeneousPoolContainer.cxx.
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer.
Referenced by YACS::ENGINE::Executor::FilterTasksConsideringContainers().
|
virtual |
By calling this method the current container 'this' is not destined to be deeply copied on clone call.
Reimplemented from YACS::ENGINE::Container.
Definition at line 29 of file HomogeneousPoolContainer.cxx.
References YACS::ENGINE::Container::_isAttachedOnCloning.
|
virtual |
By calling this method the current container 'this' will be deeply copied on clone call.
Reimplemented from YACS::ENGINE::Container.
Definition at line 43 of file HomogeneousPoolContainer.cxx.
References YACS::ENGINE::Container::_isAttachedOnCloning.
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer.
Referenced by YACS::ENGINE::Executor::FilterTasksConsideringContainers().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer.
Referenced by FormHPContainer::FillPanel().
|
virtual |
By definition an HomogeneousPoolContainer instance is attached on cloning.
Reimplemented from YACS::ENGINE::Container.
Definition at line 52 of file HomogeneousPoolContainer.cxx.
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer.
Referenced by YACS::ENGINE::Executor::functionForTaskExecution().
|
virtual |
If val is equal to true the current container 'this' is not destined to be deeply copied on clone call. If val is equal to false the current container 'this' is destined to be deeply copied on clone call.
Reimplemented from YACS::ENGINE::Container.
Definition at line 34 of file HomogeneousPoolContainer.cxx.
References YACS::ENGINE::Container::_isAttachedOnCloning.
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer.
|
static |
Definition at line 51 of file HomogeneousPoolContainer.hxx.
Referenced by YACS::ENGINE::PythonEntry::commonRemoteLoadPart3(), FormHPContainer::FillPanel(), YACS::ENGINE::SalomeHPContainer::getProperties(), YACS::ENGINE::SalomeHPContainer::getProperty(), YACS::containertypeParser::initializescriptkey(), FormHPContainer::onApply(), YACS::ENGINE::SalomeHPContainer::setProperty(), and YACS::ENGINE::VisitorSaveSchema::writeContainers().
|
static |
Definition at line 50 of file HomogeneousPoolContainer.hxx.
Referenced by YACS::ENGINE::SalomeHPContainer::getProperties(), YACS::ENGINE::SalomeHPContainer::getProperty(), FormHPContainer::onModifySzOfPool(), and YACS::ENGINE::SalomeHPContainer::setProperty().