From: rahuel Date: Tue, 2 Mar 2004 08:20:36 +0000 (+0000) Subject: Use of ContainersManager and ResourcesManager X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da425ed230e001e3080ec11ddf394422a75c6aa2;p=modules%2Fkernel.git Use of ContainersManager and ResourcesManager --- diff --git a/src/ContainersManager/TestContainersManager.py b/src/ContainersManager/TestContainersManager.py index f47edc1a0..b37f6fbad 100644 --- a/src/ContainersManager/TestContainersManager.py +++ b/src/ContainersManager/TestContainersManager.py @@ -225,8 +225,40 @@ AddComponent._get_instanceName() AddComponent._get_interfaceName() ListOfAddComponent = MyContainersMgr.FindComponents( DefaultParams , 'AddComponent' ) +i = 0 +while i < len( ListOfAddComponent ) : + print ListOfAddComponent[ i ]._get_instanceName(),ListOfAddComponent[ i ]._get_interfaceName() + i = i + 1 + +MyContainersMgr.FindOrLoad_Component( DefaultParams , "AddComponent" ) +ListOfAddComponent = MyContainersMgr.FindComponents( DefaultParams , 'AddComponent' ) +i = 0 +while i < len( ListOfAddComponent ) : + print ListOfAddComponent[ i ]._get_instanceName(),ListOfAddComponent[ i ]._get_interfaceName() + i = i + 1 FactoryServeSubComponent = MyContainersMgr.FindOrLoad_Component( DefaultParams , "SubComponent" ) +ListOfComponents = MyContainersMgr.FindComponents( DefaultParams , '' ) +i = 0 +while i < len( ListOfComponents ) : + print ListOfComponents[ i ]._get_instanceName(),ListOfComponents[ i ]._get_interfaceName() + i = i + 1 + +DefaultParams.ContainerName = 'SuperVisionContainer' +SuperVisionContainerAddComponent = MyContainersMgr.FindOrLoad_Component( DefaultParams , "AddComponent" ) +DefaultParams.ContainerName = '' +ListOfAddComponent = MyContainersMgr.FindComponents( DefaultParams , 'AddComponent' ) +i = 0 +while i < len( ListOfAddComponent ) : + print ListOfAddComponent[ i ]._get_instanceName(),ListOfAddComponent[ i ]._get_interfaceName() + i = i + 1 + + +ListOfComponents = MyContainersMgr.FindComponents( DefaultParams , '' ) +i = 0 +while i < len( ListOfComponents ) : + print ListOfComponents[ i ]._get_instanceName(),ListOfComponents[ i ]._get_interfaceName() + i = i + 1 from LifeCycleCORBA import * orb = CORBA.ORB_init([''], CORBA.ORB_ID)