Salome HOME
4aa415bf4054b4415422dcc30749a4ef8f734ea0
[modules/yacs.git] / src / ydfx_gui / AbstractResourceModel.hxx
1 // Copyright (C) 2017-2023  CEA/DEN, EDF R&D
2 //
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, or (at your option) any later version.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef ABSTRACTRESOURCEMODEL_HXX
21 #define ABSTRACTRESOURCEMODEL_HXX
22
23 #include <string>
24 #include <vector>
25 #include <list>
26 #include "ydfxwidgetsExport.hxx"
27
28 class YDFXWIDGETS_EXPORT AbstractResourceModel
29 {
30 public:
31
32   AbstractResourceModel();
33   virtual ~AbstractResourceModel();
34
35   virtual bool getParallelizeStatus()const =0;
36   virtual void setParallelizeStatus(bool v)=0;
37
38   virtual std::string getRemoteDir()const =0;
39   virtual std::string getDefaultRemoteDir(std::string machine)const =0;
40   virtual void setRemoteDir(const std::string& v)=0;
41
42   virtual std::string getLocalDir()const =0;
43   virtual void setLocalDir(const std::string& v)=0;
44
45   virtual std::string getWckey()const =0;
46   virtual void setWckey(const std::string& v)=0;
47
48   virtual int getMaxDurationMinutes()const =0;
49   virtual void setMaxDurationMinutes(int v)=0;
50
51   virtual int getMaxDurationHours()const =0;
52   virtual void setMaxDurationHours(int v)=0;
53   std::string getMaxDuration()const ;
54
55   virtual unsigned int getNbprocs()const =0;
56   virtual void setNbprocs(unsigned int v)=0;
57
58   virtual std::string getWantedMachine()const =0;
59   virtual void setWantedMachine(const std::string& v)=0;
60   virtual std::vector<std::string> getFittingMachines()const =0;
61
62   virtual const std::list<std::string>& getInFiles()const =0;
63   virtual std::list<std::string>& getInFiles() =0;
64
65   virtual bool isMachineInteractive(const std::string& machine)const =0;
66 };
67
68 #endif // ABSTRACTRESOURCEMODEL_HXX