Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / idl / yacsgui.idl
1 #ifndef __YACSGUI_IDL__
2 #define __YACSGUI_IDL__
3
4 #include "SALOME_Component.idl"
5 #include "SALOMEDS.idl"
6 #include "SALOME_Exception.idl"
7
8   // SALOME Engine interface for execution in a SALOME Container
9
10 module YACS_ORB
11 {
12   enum executionMode { CONTINUE, STEPBYSTEP, STOPBEFORENODES };
13
14   typedef sequence<string> stringArray;
15   typedef sequence<long> longArray;
16
17   interface Observer
18   {
19     void notifyObserver(in long numid , in string event);
20   };
21
22   interface ProcExec
23   {
24     long getNodeState(in long numid);
25     string getXMLState(in long numid);
26     string getInPortValue(in long nodeNumid, in string portName);
27     string getOutPortValue(in long nodeNumid, in string portName);
28     string getErrorDetails(in long nodeNumid);
29     string getErrorReport(in long nodeNumid);
30     string getContainerLog(in long nodeNumid);
31     long getExecutorState();
32     void getIds(out longArray numids,out stringArray names);
33     longArray getNumIds();
34     stringArray getNames();
35
36     void Run();
37     void RunFromState(in string xmlfile);
38     void addObserver(in Observer obs,in long numid, in string event);
39     void setExecMode(in executionMode mode);
40     void setListOfBreakPoints(in stringArray listOfBreakPoints);
41     stringArray getTasksToLoad();
42     boolean setStepsToExecute(in stringArray listToExecute);
43     boolean resumeCurrentBreakPoint();
44     boolean isNotFinished();
45     void stopExecution();
46     boolean saveState(in string xmlFile);
47     void setStopOnError(in boolean dumpRequested, in string xmlFile);
48     void unsetStopOnError();
49   };
50
51   interface YACS_Gen : Engines::Component, SALOMEDS::Driver
52   {
53     ProcExec LoadProc(in string xmlFile);
54     string convertSupervFile(in string xmlFile);
55   };
56
57 };
58
59 #endif