1 // Copyright (C) 2006-2013 CEA/DEN, 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
20 #ifndef __YACSGUI_IDL__
21 #define __YACSGUI_IDL__
23 #include "SALOME_Component.idl"
24 #include "SALOMEDS.idl"
25 #include "SALOME_Exception.idl"
27 // SALOME Engine interface for execution in a SALOME Container
31 enum executionMode { CONTINUE, STEPBYSTEP, STOPBEFORENODES };
33 typedef sequence<string> stringArray;
34 typedef sequence<long> longArray;
38 void notifyObserver(in long numid , in string event);
43 long getNodeState(in long numid);
44 string getXMLState(in long numid);
45 string getInPortValue(in long nodeNumid, in string portName);
46 string setInPortValue(in string nodeName, in string portName, in string value);
47 string getOutPortValue(in long nodeNumid, in string portName);
48 string getErrorDetails(in long nodeNumid);
49 string getErrorReport(in long nodeNumid);
50 string getContainerLog(in long nodeNumid);
51 void shutdownProc(in long level);
52 long getExecutorState();
53 void getIds(out longArray numids,out stringArray names);
54 longArray getNumIds();
55 stringArray getNames();
58 void RunFromState(in string xmlfile);
59 void RestartFromState(in string xmlfile);
60 void addObserver(in Observer obs,in long numid, in string event);
61 void setExecMode(in executionMode mode);
62 void setListOfBreakPoints(in stringArray listOfBreakPoints);
63 stringArray getTasksToLoad();
64 boolean setStepsToExecute(in stringArray listToExecute);
65 boolean resumeCurrentBreakPoint();
66 boolean isNotFinished();
68 boolean saveState(in string xmlFile);
69 void setStopOnError(in boolean dumpRequested, in string xmlFile);
70 void unsetStopOnError();
73 interface YACS_Gen : Engines::EngineComponent, SALOMEDS::Driver
75 ProcExec LoadProc(in string xmlFile);
76 string convertSupervFile(in string xmlFile);