]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Get classification
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Wed, 15 Apr 2020 05:36:16 +0000 (07:36 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Wed, 15 Apr 2020 05:36:16 +0000 (07:36 +0200)
src/daComposant/daCore/Aidsm.py
src/daComposant/daCore/BasicObjects.py

index 420eb76d7e0c176426dc8ae5d68376a7779fd53e..47df664fe763f98c0ff333e4681e8907acfac410 100644 (file)
@@ -593,6 +593,12 @@ class Aidsm(object):
             elif Concept == "AlgorithmRequiredParameters" and self.__adaoObject["AlgorithmParameters"] is not None:
                 return self.__adaoObject["AlgorithmParameters"].getAlgorithmRequiredParameters(noDetails)
                 #
+            elif Concept == "AlgorithmRequiredInputs" and self.__adaoObject["AlgorithmParameters"] is not None:
+                return self.__adaoObject["AlgorithmParameters"].getAlgorithmInputArguments()
+                #
+            elif Concept == "AlgorithmAttributes" and self.__adaoObject["AlgorithmParameters"] is not None:
+                return self.__adaoObject["AlgorithmParameters"].getAlgorithmAttributes()
+                #
             else:
                 raise ValueError("The requested key \"%s\" does not exists as an input or a stored variable."%Concept)
         else:
index d89f9b23fff5482b1c6d242f752bff46f0e09efa..dee9c53373b8d1a61c8af6bb76dafddce726b003 100644 (file)
@@ -1086,6 +1086,14 @@ class AlgorithmAndParameters(object):
         "Renvoie la liste des paramètres requis selon l'algorithme"
         return self.__algorithm.getRequiredParameters(noDetails)
 
+    def getAlgorithmInputArguments(self):
+        "Renvoie la liste des entrées requises selon l'algorithme"
+        return self.__algorithm.getInputArguments()
+
+    def getAlgorithmAttributes(self):
+        "Renvoie la liste des attributs selon l'algorithme"
+        return self.__algorithm.setAttributes()
+
     def setObserver(self, __V, __O, __I, __S):
         if self.__algorithm is None \
             or isinstance(self.__algorithm, dict) \