#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 throw (Exception) |
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 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 | 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 | |
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 35 of file Container.cxx.
|
protectedvirtual |
Definition at line 39 of file Container.cxx.
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
Referenced by YACS::ENGINE::SalomeHPComponent::setContainer(), and YACS::ENGINE::SalomeComponent::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 62 of file Container.cxx.
References _isAttachedOnCloning.
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
Referenced by YACS::ENGINE::ComponentInstance::setContainer().
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
|
pure virtual |
WARNING ! clone behaviour MUST be in coherence with what is returned by isAttachedOnCloning() method
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
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::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
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 70 of file Container.cxx.
References _isAttachedOnCloning.
|
virtual |
Reimplemented in YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainerTmpForHP.
Definition at line 43 of file Container.cxx.
Referenced by YACS::ENGINE::SalomeContainerTools::getNotNullContainerName().
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
Referenced by YACS::ENGINE::Executor::ComputePlacement().
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
|
inline |
Definition at line 75 of file Container.hxx.
Referenced by YACS::HMI::SchemaDirContainersItem::addComponentItem(), YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), YACS::HMI::GuiEditor::CreateComponentInstance(), YACS::HMI::EditionComponent::fillContainerPanel(), YACS::HMI::EditionScript::fillContainerPanel(), YACS::HMI::EditionSalomeNode::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(), and YACS::ENGINE::VisitorSaveSchema::writeComponentInstances().
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
Referenced by YACS::ENGINE::SalomePythonComponent::getStringValueToExportInInterp().
|
inline |
Definition at line 79 of file Container.hxx.
Referenced by YACS::ENGINE::SalomeContainerTools::CreateComponentInstance().
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
Referenced by FormContainerBase::FillPanel(), FormAdvParamContainer::FillPanel(), YACS::HMI::SubjectContainerBase::getProperties(), YACS::HMI::CommandAddContainerBase::localExecute(), YACS::HMI::CommandSetContainerProperties::localExecute(), 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(), and FormAdvParamContainer::onModifyWorkDir().
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
Referenced by FormContainer::onModifyType().
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
Referenced by FormAdvParamContainer::updateResource().
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
Referenced by YACS::ENGINE::SalomeContainerTools::GetFullPlacementId(), YACS::ENGINE::SalomeContainerTools::GetPlacementId(), YACS::ENGINE::SalomePythonComponent::isLoaded(), YACS::ENGINE::ServerNode::load(), YACS::ENGINE::DistributedPythonNode::load(), YACS::ENGINE::CppComponent::load(), and YACS::ENGINE::SalomeContainerTools::LoadComponent().
|
virtual |
Reimplemented in YACS::ENGINE::HomogeneousPoolContainer.
Definition at line 75 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 84 of file Container.cxx.
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
|
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 54 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 77 of file Container.hxx.
Referenced by YACS::ENGINE::Proc::createContainer(), YACS::servertypeParser< T >::loadcontainer(), and YACS::HMI::CommandAddContainerBase::localExecute().
|
inline |
Definition at line 78 of file Container.hxx.
Referenced by YACS::ENGINE::Proc::createContainer(), and YACS::HMI::CommandAddContainerBase::localExecute().
|
virtual |
Definition at line 89 of file Container.cxx.
References setProperty().
Referenced by YACS::HMI::CommandAddContainerBase::localExecute(), YACS::HMI::CommandSetContainerProperties::localExecute(), and YACS::HMI::CommandSetContainerProperties::localReverse().
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in YACS::ENGINE::CppContainer, YACS::ENGINE::SalomeHPContainer, and YACS::ENGINE::SalomeContainer.
|
mutableprotected |
Definition at line 85 of file Container.hxx.
Referenced by YACS::ENGINE::HomogeneousPoolContainer::attachOnCloning(), attachOnCloning(), YACS::ENGINE::SalomeContainer::clone(), YACS::ENGINE::CppContainer::clone(), YACS::ENGINE::HomogeneousPoolContainer::dettachOnCloning(), dettachOnCloning(), YACS::ENGINE::SalomeContainer::getProperty(), YACS::ENGINE::HomogeneousPoolContainer::HomogeneousPoolContainer(), isAttachedOnCloning(), YACS::ENGINE::HomogeneousPoolContainer::setAttachOnCloningStatus(), and setAttachOnCloningStatus().
|
protected |
Definition at line 84 of file Container.hxx.
Referenced by YACS::ENGINE::SalomeContainer::shutdown().
|
protected |
Definition at line 86 of file Container.hxx.
|
static |
Definition at line 82 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 81 of file Container.hxx.
Referenced by YACS::proctypeParser< T >::container(), and YACS::ENGINE::VisitorSaveSchema::writeContainers().