BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
SimulationOptionsItem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Support/Data/SimulationOptionsItem.h
6 //! @brief Defines class SimulationOptionsItem
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_SUPPORT_DATA_SIMULATIONOPTIONSITEM_H
16 #define BORNAGAIN_GUI_SUPPORT_DATA_SIMULATIONOPTIONSITEM_H
17 
18 class QXmlStreamWriter;
19 class QXmlStreamReader;
20 
21 //! The SimulationOptionsItem class holds simulation status (run policy, number of threads,
22 //! integration flag). Used in SimulationView to define job settings. When job is started,
23 //! item is copied to the job.
24 
26 public:
27  explicit SimulationOptionsItem();
28 
29  void setNumberOfThreads(unsigned n);
30  unsigned numberOfThreads() const;
31 
33  bool runImmediately() const;
34  bool runInBackground() const;
35 
36  void setUseMonteCarloIntegration(unsigned numberOfPoints);
37  void setUseAnalytical();
38  bool useMonteCarloIntegration() const;
39  bool useAnalytical() const;
40 
41  unsigned numberOfMonteCarloPoints() const;
42 
44  bool useAverageMaterials() const;
45 
47  bool includeSpecularPeak() const;
48 
49  void writeContentTo(QXmlStreamWriter* writer) const;
50  void readContentFrom(QXmlStreamReader* reader);
51 
52 private:
59 };
60 
61 #endif // BORNAGAIN_GUI_SUPPORT_DATA_SIMULATIONOPTIONSITEM_H
The SimulationOptionsItem class holds simulation status (run policy, number of threads,...
void setRunImmediately(bool runImmediately)
void setUseAverageMaterials(bool useAverageMaterials)
unsigned numberOfThreads() const
void writeContentTo(QXmlStreamWriter *writer) const
void setNumberOfThreads(unsigned n)
void setIncludeSpecularPeak(bool includeSpecularPeak)
void readContentFrom(QXmlStreamReader *reader)
void setUseMonteCarloIntegration(unsigned numberOfPoints)
unsigned numberOfMonteCarloPoints() const