]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
debug FindBest
authorsecher <secher>
Thu, 26 Apr 2007 09:26:52 +0000 (09:26 +0000)
committersecher <secher>
Thu, 26 Apr 2007 09:26:52 +0000 (09:26 +0000)
idl/SALOME_ContainerManager.idl
src/Container/SALOME_ContainerManager.cxx
src/Container/SALOME_ContainerManager.hxx
src/LifeCycleCORBA/LifeCycleCORBA.py
src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx

index 894701482f264e339f6b72461aa5caad8cdb32c5..20867310fda2e4e19307a9d8782c4813c8448262 100644 (file)
@@ -66,7 +66,7 @@ struct MachineParameters
     Container StartContainer( in MachineParameters params,
                              in ResPolicy policy);
 
-    string FindBest(in MachineList possibleComputers);
+    string FindFirst(in MachineList possibleComputers);
 
     MachineList GetFittingResources( in MachineParameters params,
                                     in string componentName )
index 61656b17956f8a733107fba55f84a3703ceec1ce..413934de5b20b87c713b5dd3afdeefcd1926be05 100644 (file)
@@ -334,9 +334,9 @@ GetFittingResources(const Engines::MachineParameters& params,
 
 char*
 SALOME_ContainerManager::
-FindBest(const Engines::MachineList& possibleComputers)
+FindFirst(const Engines::MachineList& possibleComputers)
 {
-  string theMachine=_ResManager->FindBest(possibleComputers);
+  string theMachine=_ResManager->FindFirst(possibleComputers);
   return CORBA::string_dup(theMachine.c_str());
 }
 
index 9573e06e3a38de088868a89596997402f5186ec4..a4f7dba701800524b5325cae2f5594bd614d5995 100644 (file)
@@ -70,7 +70,7 @@ public:
   GetFittingResources(const Engines::MachineParameters& params,
                      const char *componentName);
 
-  char* FindBest(const Engines::MachineList& possibleComputers);
+  char* FindFirst(const Engines::MachineList& possibleComputers);
 
   void Shutdown();
   void ShutdownContainers();
index e0a7ac0f3021132d087bb082685ea65b1ad21398..928c83ceaa62a49d9c50565046edc6cfe52bdf57 100644 (file)
@@ -159,7 +159,7 @@ class LifeCycleCORBA:
                     pass
                 pass
             if len(machinesOK)!=0:
-                bestMachine=self._contManager.FindBest(machinesOK)
+                bestMachine=self._contManager.FindFirst(machinesOK)
                 componentNameForNS= [CosNaming.NameComponent(bestMachine,"dir"),
                                      CosNaming.NameComponent(containerName,"dir"),
                                      CosNaming.NameComponent(componentName,"object")]
@@ -176,7 +176,7 @@ class LifeCycleCORBA:
             else:
                 return None
         else:
-            bestMachine=self._contManager.FindBest(listOfMachines)
+            bestMachine=self._contManager.FindFirst(listOfMachines)
             MESSAGE("Not implemented yet ...")
             return None
         pass
index 07250628a224ebb9c924c4ec6a578a899a9969a9..ace68d25bce4db897d0b30b3a1428bdad446405d 100644 (file)
@@ -422,7 +422,7 @@ _FindComponent(const Engines::MachineParameters& params,
   if(lghtOfmachinesOK != 0)
     {
       machinesOK->length(lghtOfmachinesOK);
-      CORBA::String_var bestMachine = _ContManager->FindBest(machinesOK);
+      CORBA::String_var bestMachine = _ContManager->FindFirst(machinesOK);
       CORBA::Object_var obj = _NS->ResolveComponent(bestMachine,
                                                    containerName,
                                                    componentName,