From: Jean-Philippe ARGAUD Date: Wed, 15 Apr 2020 05:36:16 +0000 (+0200) Subject: Get classification X-Git-Tag: V9_5_0b~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b94b7f8d1992c3d8a00c921efe574b9d1f547e07;p=modules%2Fadao.git Get classification --- diff --git a/src/daComposant/daCore/Aidsm.py b/src/daComposant/daCore/Aidsm.py index 420eb76..47df664 100644 --- a/src/daComposant/daCore/Aidsm.py +++ b/src/daComposant/daCore/Aidsm.py @@ -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: diff --git a/src/daComposant/daCore/BasicObjects.py b/src/daComposant/daCore/BasicObjects.py index d89f9b2..dee9c53 100644 --- a/src/daComposant/daCore/BasicObjects.py +++ b/src/daComposant/daCore/BasicObjects.py @@ -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) \