From da425ed230e001e3080ec11ddf394422a75c6aa2 Mon Sep 17 00:00:00 2001 From: rahuel Date: Tue, 2 Mar 2004 08:20:36 +0000 Subject: [PATCH] Use of ContainersManager and ResourcesManager --- .../TestContainersManager.py | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) 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) -- 2.39.2