#include <Container.hxx>


Public Member Functions | |
| 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 |
| virtual void | start (const Task *askingNode, const std::string &resource_name, const std::string &container_name) |
| virtual bool | canAcceptImposedResource () |
| virtual bool | isUsingPythonCache () |
| virtual void | usePythonCache (bool v) |
| virtual std::string | getPlacementId (const Task *askingNode) const =0 |
| virtual std::string | getFullPlacementId (const Task *askingNode) const =0 |
| virtual void | setAttachOnCloningStatus (bool val) const |
| virtual void | attachOnCloning () const |
| virtual void | dettachOnCloning () const |
| virtual bool | isAttachedOnCloning () const |
| 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 |
| 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) |
| virtual 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 () const |
Static Public Attributes | |
| static const char | KIND_ENTRY [] ="container_kind" |
| static const char | AOC_ENTRY [] ="attached_on_cloning" |
| static const char | USE_PYCACHE_PROPERTY [] ="use_py_cache" |
Static Public Attributes inherited from YACS::ENGINE::RefCounter | |
| static unsigned int | _totalCnt =0 |
Protected Member Functions | |
| Container () | |
| virtual | ~Container () |
Protected Member Functions inherited from YACS::ENGINE::RefCounter | |
| RefCounter () | |
| RefCounter (const RefCounter &other) | |
| virtual | ~RefCounter () |
Protected Attributes | |
| std::string | _name |
| bool | _isAttachedOnCloning |
| Proc * | _proc |
Protected Attributes inherited from YACS::ENGINE::RefCounter | |
| unsigned int | _cnt |
This is an abstract class, that represents an abstract process in which ComponentInstances can be launched and run. An instance of this will be mapped to one and only one physical container (except in the foreach context)
Definition at line 41 of file Container.hxx.
|
protected |
Definition at line 37 of file Container.cxx.
|
protectedvirtual |
Definition at line 41 of file Container.cxx.
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::ENGINE::SalomeComponent::setContainer(), and YACS::ENGINE::SalomeHPComponent::setContainer().
|
virtual |
By calling this method the current container 'this' is not destined to be deeply copied on clone call.
Reimplemented in YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 76 of file Container.cxx.
References _isAttachedOnCloning.
|
virtual |
Reimplemented in YACS::ENGINE::SalomeContainer.
Definition at line 59 of file Container.cxx.
Referenced by YACS::ENGINE::PythonNode::canAcceptImposedResource(), and YACS::ENGINE::PyFuncNode::canAcceptImposedResource().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::ENGINE::ComponentInstance::setContainer().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
|
pure virtual |
WARNING ! clone behaviour MUST be in coherence with what is returned by isAttachedOnCloning() method
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), YACS::ENGINE::ComponentInstance::ComponentInstance(), YACS::ENGINE::ComposedNode::performDuplicationOfPlacement(), and YACS::ENGINE::InlineNode::performDuplicationOfPlacement().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::HMI::SubjectServiceNode::setComponent().
|
virtual |
By calling this method the current container 'this' will be deeply copied on clone call.
Reimplemented in YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 84 of file Container.cxx.
References _isAttachedOnCloning.
|
virtual |
Reimplemented in YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainerTmpForHP.
Definition at line 45 of file Container.cxx.
Referenced by YACS::ENGINE::SalomeContainerTools::getNotNullContainerName().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::ENGINE::Executor::ComputePlacement().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
|
inlinevirtual |
Definition at line 81 of file Container.hxx.
Referenced by YACS::HMI::SchemaDirContainersItem::addComponentItem(), YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), YACS::HMI::GuiEditor::CreateComponentInstance(), YACS::HMI::EditionComponent::fillContainerPanel(), YACS::HMI::EditionSalomeNode::fillContainerPanel(), YACS::HMI::EditionScript::fillContainerPanel(), FormContainerBase::FillPanel(), YACS::HMI::SubjectContainerBase::getName(), YACS::ENGINE::SalomeContainerTools::getNotNullContainerName(), YACS::HMI::CommandAssociateComponentToContainer::localExecute(), YACS::HMI::CommandAssociateServiceToComponent::localExecute(), YACS::HMI::SubjectNode::registerUndoDestroy(), YACS::ENGINE::Proc::removeContainer(), YACS::HMI::SubjectServiceNode::setComponent(), YACS::HMI::SubjectComponent::setContainer(), YACS::ENGINE::Executor::traceExec(), YACS::ENGINE::Proc::updateContainersAndComponents(), YACS::ENGINE::VisitorSaveSchema::visitInlineFuncNode(), YACS::ENGINE::VisitorSaveSchema::visitInlineNode(), YACS::ENGINE::WlmTask::WlmTask(), and YACS::ENGINE::VisitorSaveSchema::writeComponentInstances().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::ENGINE::SalomePythonComponent::getStringValueToExportInInterp().
|
inline |
Definition at line 85 of file Container.hxx.
References driver_internal::_proc.
Referenced by YACS::ENGINE::SalomeContainerToolsBase::CreateComponentInstance().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by FormAdvParamContainer::FillPanel(), FormContainerBase::FillPanel(), YACS::HMI::SubjectContainerBase::getProperties(), FormAdvParamContainer::onModifyClock(), FormAdvParamContainer::onModifyCompoList(), FormAdvParamContainer::onModifyCompos(), FormAdvParamContainer::onModifyContName(), FormAdvParamContainer::onModifyHostName(), FormAdvParamContainer::onModifyIsMPI(), FormAdvParamContainer::onModifyMem(), FormAdvParamContainer::onModifyNodes(), FormAdvParamContainer::onModifyOS(), FormAdvParamContainer::onModifyParLib(), FormAdvParamContainer::onModifyPolicy(), FormAdvParamContainer::onModifyProcPar(), FormAdvParamContainer::onModifyProcRes(), FormAdvParamContainer::onModifyProcs(), FormAdvParamContainer::onModifyResource(), FormAdvParamContainer::onModifyResourceList(), FormAdvParamContainer::onModifyResourceName(), FormHPContainer::onModifySzOfPool(), FormAdvParamContainer::onModifyUsePyCache(), and FormAdvParamContainer::onModifyWorkDir().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::ENGINE::WlmTask::isAccepted(), isUsingPythonCache(), YACS::ENGINE::PythonEntry::loadRemoteContext(), FormContainer::onModifyType(), and YACS::ENGINE::WlmTask::WlmTask().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by FormAdvParamContainer::updateResource().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::ENGINE::SalomeContainerToolsBase::GetFullPlacementId(), YACS::ENGINE::SalomeContainerToolsBase::GetPlacementId(), YACS::ENGINE::SalomePythonComponent::isLoaded(), YACS::ENGINE::ServerNode::load(), YACS::ENGINE::DistributedPythonNode::load(), YACS::ENGINE::CppComponent::load(), YACS::ENGINE::SalomeContainerToolsBase::LoadComponent(), and YACS::ENGINE::PythonEntry::loadRemoteContainer().
|
virtual |
Reimplemented in YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 89 of file Container.cxx.
References _isAttachedOnCloning.
Referenced by FormContainer::FillPanel(), YACS::ENGINE::DeploymentTreeOnHeap::getAllCTDefContainers(), YACS::ENGINE::DeploymentTreeOnHeap::getAllRTODefContainers(), YACS::ENGINE::DeploymentTreeOnHeap::getNumberOfCTDefContainer(), and FormContainer::onModifyAOC().
|
virtual |
This method informs about the capability of the container to deal with CT an unpredictably number of components. By default : True
Definition at line 98 of file Container.cxx.
|
virtual |
Definition at line 109 of file Container.cxx.
References getProperty(), and USE_PYCACHE_PROPERTY.
Referenced by FormAdvParamContainer::FillPanel(), YACS::ENGINE::PythonNode::isUsingPythonCache(), and FormAdvParamContainer::onModifyUsePyCache().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
|
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 in YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 68 of file Container.cxx.
References _isAttachedOnCloning.
Referenced by FormContainer::onModifyAOC(), and YACS::ENGINE::SalomeContainer::setProperty().
|
inline |
WARNING ! name is used in edition to identify different containers, it is not the runtime name of the container
Definition at line 83 of file Container.hxx.
Referenced by YACS::ENGINE::Proc::createContainer(), YACS::servertypeParser< T >::loadcontainer(), YACS::HMI::CommandRenameContainer::localExecute(), YACS::HMI::CommandAddContainerBase::localExecute(), and YACS::HMI::CommandRenameContainer::localReverse().
|
inline |
Definition at line 84 of file Container.hxx.
References driver_internal::_proc.
Referenced by YACS::ENGINE::Proc::createContainer(), and YACS::HMI::CommandAddContainerBase::localExecute().
|
virtual |
Definition at line 103 of file Container.cxx.
References setProperty().
Referenced by YACS::HMI::CommandAddContainerBase::localExecute().
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in YACS::ENGINE::SalomeContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::CppContainer.
Referenced by YACS::ENGINE::ServerNode::load(), YACS::ENGINE::CppComponent::load(), YACS::ENGINE::SalomePythonComponent::load(), YACS::ENGINE::SalomeContainerToolsBase::LoadComponent(), YACS::ENGINE::PythonEntry::loadRemoteContainer(), and start().
|
virtual |
Reimplemented in YACS::ENGINE::SalomeContainer.
Definition at line 52 of file Container.cxx.
References start().
|
pure virtual |
Implemented in YACS::ENGINE::SalomeHPContainer, YACS::ENGINE::SalomeContainer, and YACS::ENGINE::CppContainer.
|
virtual |
Definition at line 125 of file Container.cxx.
References setProperty(), and USE_PYCACHE_PROPERTY.
Referenced by FormAdvParamContainer::onModifyUsePyCache().
|
mutableprotected |
Definition at line 92 of file Container.hxx.
Referenced by attachOnCloning(), YACS::ENGINE::HomogeneousPoolContainer::attachOnCloning(), YACS::ENGINE::CppContainer::clone(), YACS::ENGINE::SalomeContainer::clone(), dettachOnCloning(), YACS::ENGINE::HomogeneousPoolContainer::dettachOnCloning(), YACS::ENGINE::SalomeContainer::getProperty(), YACS::ENGINE::HomogeneousPoolContainer::HomogeneousPoolContainer(), isAttachedOnCloning(), setAttachOnCloningStatus(), and YACS::ENGINE::HomogeneousPoolContainer::setAttachOnCloningStatus().
|
protected |
Definition at line 91 of file Container.hxx.
Referenced by YACS::ENGINE::SalomeContainer::shutdown().
|
protected |
Definition at line 93 of file Container.hxx.
|
static |
Definition at line 88 of file Container.hxx.
Referenced by YACS::ENGINE::SalomeContainer::getProperty(), YACS::ENGINE::SalomeHPContainer::getProperty(), FormContainer::onModifyAOC(), YACS::ENGINE::SalomeContainer::setProperty(), YACS::ENGINE::SalomeHPContainer::setProperty(), and YACS::ENGINE::VisitorSaveSchema::writeContainers().
|
static |
Definition at line 87 of file Container.hxx.
Referenced by YACS::proctypeParser< T >::container(), and YACS::ENGINE::VisitorSaveSchema::writeContainers().
|
static |
Definition at line 89 of file Container.hxx.
Referenced by isUsingPythonCache(), and usePythonCache().