Salome HOME
0625ba120d5c96afee2376696c19bb8cfd12f50d
[modules/yacs.git] / src / ydfx_gui / SalomeResourceModel.hxx
1 // Copyright (C) 2017-2022  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 SALOMERESOURCEMODEL_HXX
21 #define SALOMERESOURCEMODEL_HXX
22
23 #include "AbstractResourceModel.hxx"
24
25
26 class YDFXWIDGETS_EXPORT SalomeResourceModel : public AbstractResourceModel
27 {
28 public:
29   SalomeResourceModel();
30   ~SalomeResourceModel();
31   virtual bool isMachineInteractive(const std::string& machine)const;
32   virtual std::vector< std::string > getFittingMachines()const;
33   virtual void setWantedMachine(const std::string& v);
34   virtual std::string getWantedMachine()const;
35   virtual void setNbprocs(unsigned int v);
36   virtual unsigned int getNbprocs()const;
37   virtual void setMaxDurationHours(int v);
38   virtual int getMaxDurationHours()const;
39   virtual void setMaxDurationMinutes(int v);
40   virtual int getMaxDurationMinutes()const;
41   virtual void setWckey(const std::string& v);
42   virtual std::string getWckey()const;
43   virtual void setLocalDir(const std::string& v);
44   virtual std::string getLocalDir()const;
45   virtual void setRemoteDir(const std::string& v);
46   virtual std::string getRemoteDir()const;
47   virtual std::string getDefaultRemoteDir(std::string machine)const;
48   virtual void setParallelizeStatus(bool v);
49   virtual bool getParallelizeStatus()const;
50   virtual const std::list<std::string>& getInFiles()const;
51   virtual std::list<std::string>& getInFiles();
52
53 private:
54   std::string _wantedMachine;
55   unsigned int _nbProcs;
56   int _hours;
57   int _minutes;
58   std::string _wcKey;
59   std::string _localDirectory;
60   std::string _remoteDirectory;
61   bool _parallelizeStatus;
62   std::list<std::string> _in_files;
63 };
64
65 #endif // SALOMERESOURCEMODEL_HXX