DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
simulationsetupdialog.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3 // AND EFFORT DISPLACEMENT
4 // Copyright (c) 2012-2019 Francois Bastardie <fba@aqua.dtu.dk>
5 
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 
16 // You should have received a copy of the GNU General Public License along
17 // with this program; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // --------------------------------------------------------------------------
20 
21 /* --------------------------------------------------------------------------
22  * DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
23  * AND EFFORT DISPLACEMENT
24  * Copyright (c) 2012, 2013, 2014 Francois Bastardie <fba@aqua.dtu.dk>
25  *
26  * This program is free software; you can redistribute it and/or modify
27  * it under the terms of the GNU General Public License as published by
28  * the Free Software Foundation; either version 2 of the License, or
29  * (at your option) any later version.
30  *
31  * This program is distributed in the hope that it will be useful,
32  * but WITHOUT ANY WARRANTY; without even the implied warranty of
33  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34  * GNU General Public License for more details.
35  *
36  * You should have received a copy of the GNU General Public License along
37  * with this program; if not, write to the Free Software Foundation, Inc.,
38  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
39  * --------------------------------------------------------------------------
40  */
41 #ifndef SIMULATIONSETUPDIALOG_H
42 #define SIMULATIONSETUPDIALOG_H
43 
44 #include <QDialog>
45 
46 namespace Ui {
48 }
49 
50 class SimulationSetupDialog : public QDialog
51 {
52  Q_OBJECT
53 
54 public:
55  explicit SimulationSetupDialog(QWidget *parent = 0);
57 
58  void setOutDir(QString outdir);
59  QString getOutDir() const;
60 
61  void setSimulationSteps(int steps);
62  void setUseStaticPaths(int yesno);
63  void setPreexistingPathsShop(int yesno);
64  int getSimulationSteps() const;
65  int getUseStaticPaths() const;
66  int getPreexistingPathsShop() const;
67 
68  void setSimulationOutputName(QString name);
69  QString getSimulationOutputName() const;
70 
71  void setSimulationName(QString name);
72  QString getSimulationName() const;
73 
74  void setMoveVesselsOption(bool x);
75  bool getMoveVesselsOption() const;
76 
77  int getNumThreads();
78  void setNumThreads(int n);
79 
80  int getVerbosityLevel();
81  void setVerbosityLevel(int value);
82 
85 
86 
87 
88 private slots:
89  void on_verbosity_valueChanged(int arg1);
90 
91 
92  void on_threads_valueChanged(int arg1);
93 
94 private:
96 
97  void updateMessages();
98 };
99 
100 #endif // SIMULATIONSETUPDIALOG_H
~SimulationSetupDialog()
Definition: simulationsetupdialog.cpp:37
int getVesselMoveDisplayUpdateRate()
Definition: simulationsetupdialog.cpp:117
SimulationSetupDialog(QWidget *parent=0)
Definition: simulationsetupdialog.cpp:26
int getUseStaticPaths() const
Definition: simulationsetupdialog.cpp:70
QString getOutDir() const
Definition: simulationsetupdialog.cpp:59
Definition: dteditorwindow.h:32
QString getSimulationOutputName() const
Definition: simulationsetupdialog.cpp:81
void setSimulationName(QString name)
Definition: simulationsetupdialog.cpp:86
void setUseStaticPaths(int yesno)
Definition: simulationsetupdialog.cpp:64
void setPreexistingPathsShop(int yesno)
string outdir
Definition: main.cpp:425
int getVerbosityLevel()
Definition: simulationsetupdialog.cpp:127
void setOutDir(QString outdir)
Definition: simulationsetupdialog.cpp:53
void setNumThreads(int n)
Definition: simulationsetupdialog.cpp:111
std::pair< box, unsigned > value
Definition: diffusion.cpp:30
void setMoveVesselsOption(bool x)
Definition: simulationsetupdialog.cpp:96
void setSimulationOutputName(QString name)
Definition: simulationsetupdialog.cpp:76
QString getSimulationName() const
Definition: simulationsetupdialog.cpp:91
void setVesselMoveDisplayUpdateRate(int value)
Definition: simulationsetupdialog.cpp:122
void setSimulationSteps(int steps)
Definition: simulationsetupdialog.cpp:42
int getNumThreads()
Definition: simulationsetupdialog.cpp:106
Definition: ui_simulationsetupdialog.h:230
int getPreexistingPathsShop() const
bool getMoveVesselsOption() const
Definition: simulationsetupdialog.cpp:101
Definition: simulationsetupdialog.h:50
void setVerbosityLevel(int value)
Definition: simulationsetupdialog.cpp:132
int getSimulationSteps() const
Definition: simulationsetupdialog.cpp:48