1 // Copyright (C) 2017-2019 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, or (at your option) any later version.
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 ABSTRACTRESOURCEMODEL_HXX
21 #define ABSTRACTRESOURCEMODEL_HXX
26 #include "ydfxwidgetsExport.hxx"
28 class YDFXWIDGETS_EXPORT AbstractResourceModel
32 AbstractResourceModel();
33 virtual ~AbstractResourceModel();
35 virtual bool getParallelizeStatus()const =0;
36 virtual void setParallelizeStatus(bool v)=0;
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;
42 virtual std::string getLocalDir()const =0;
43 virtual void setLocalDir(const std::string& v)=0;
45 virtual std::string getWckey()const =0;
46 virtual void setWckey(const std::string& v)=0;
48 virtual int getMaxDurationMinutes()const =0;
49 virtual void setMaxDurationMinutes(int v)=0;
51 virtual int getMaxDurationHours()const =0;
52 virtual void setMaxDurationHours(int v)=0;
53 std::string getMaxDuration()const ;
55 virtual unsigned int getNbprocs()const =0;
56 virtual void setNbprocs(unsigned int v)=0;
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;
62 virtual const std::list<std::string>& getInFiles()const =0;
63 virtual std::list<std::string>& getInFiles() =0;
65 virtual bool isMachineInteractive(const std::string& machine)const =0;
68 #endif // ABSTRACTRESOURCEMODEL_HXX