1 // Copyright (C) 2009-2010 EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #ifndef __DEVIATION_GEN__
23 #define __DEVIATION_GEN__
25 #include "SALOME_Component.idl"
26 #include "SALOMEDS.idl"
27 #include "SALOME_Exception.idl"
29 module GENERICSOLVER_ORB
32 typedef sequence<double> Point;
33 typedef SALOMEDS::ID ID;
34 typedef sequence<string> VarList;
36 interface DEVIATION_Gen : Engines::Component, SALOMEDS::Driver
40 * @brief Initialize the component with the deterministic variables and the lists of
41 * probabilistic variables.
43 * The Init method prepares the component for a series of computation with
44 * the method Exec. It extracts the deterministic data from Salome study and
45 * stores this data along with the lists of input and output variables to
46 * identify them in future calls to Exec.
48 * @param inputVarList a list of strings containing the names of the input
49 * variables in the same order as in subsequent calls to Exec.
50 * @param outputVarList a list of strings containing the names of the output
51 * variables in the same order as they should be returned
52 * in subsequent calls to Exec.
53 * @param studyID the identifier of the study containing the deterministic data
54 * @param entry the identifier of the deterministic case within the study
56 void Init(in VarList inputVarList, in VarList outputVarList, in long studyID, in ID entry)
57 raises (SALOME::SALOME_Exception);
60 * @brief Execute a computation with a given sample of variables.
62 * The Exec method realizes the computation with some parameters (within
63 * inPoint) corresponding to the variables set previously with the method
64 * Init. The result is put in outPoint in the order specified by
65 * outputVarList of Init method.
67 * @param inPoint a vector of floating point values to be evaluated
68 * @param outPoint the result of the computation as a vector of floating point values
70 void Exec(in Point inPoint, out Point outPoint)
71 raises (SALOME::SALOME_Exception);
74 * @brief Cleanup everything that was previously set
76 * The Finalize method is in charge of cleaning everything that what set hitherto.
80 raises (SALOME::SALOME_Exception);