BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The SimulationOptionsItem class holds simulation status (run policy, number of threads, integration flag). Used in SimulationView to define job settings. When job is started, item is copied to the job.
Definition at line 25 of file SimulationOptionsItem.h.
Public Member Functions | |
SimulationOptionsItem () | |
bool | includeSpecularPeak () const |
unsigned | numberOfMonteCarloPoints () const |
unsigned | numberOfThreads () const |
void | readContentFrom (QXmlStreamReader *reader) |
bool | runImmediately () const |
bool | runInBackground () const |
void | setIncludeSpecularPeak (bool includeSpecularPeak) |
void | setNumberOfThreads (unsigned n) |
void | setRunImmediately (bool runImmediately) |
void | setUseAnalytical () |
void | setUseAverageMaterials (bool useAverageMaterials) |
void | setUseMonteCarloIntegration (unsigned numberOfPoints) |
bool | useAnalytical () const |
bool | useAverageMaterials () const |
bool | useMonteCarloIntegration () const |
void | writeContentTo (QXmlStreamWriter *writer) const |
Private Attributes | |
bool | m_computationMethodAnalytical |
bool | m_includeSpecularPeak |
unsigned | m_numberOfMonteCarloPoints |
unsigned | m_numberOfThreads |
bool | m_runImmediately |
bool | m_useAverageMaterials |
|
explicit |
Definition at line 37 of file SimulationOptionsItem.cpp.
References m_computationMethodAnalytical, m_includeSpecularPeak, m_numberOfMonteCarloPoints, m_numberOfThreads, m_runImmediately, and m_useAverageMaterials.
bool SimulationOptionsItem::includeSpecularPeak | ( | ) | const |
Definition at line 113 of file SimulationOptionsItem.cpp.
References m_includeSpecularPeak.
Referenced by setIncludeSpecularPeak().
unsigned SimulationOptionsItem::numberOfMonteCarloPoints | ( | ) | const |
Definition at line 93 of file SimulationOptionsItem.cpp.
References m_numberOfMonteCarloPoints.
unsigned SimulationOptionsItem::numberOfThreads | ( | ) | const |
Definition at line 47 of file SimulationOptionsItem.cpp.
References m_numberOfThreads.
void SimulationOptionsItem::readContentFrom | ( | QXmlStreamReader * | reader | ) |
Definition at line 130 of file SimulationOptionsItem.cpp.
References m_computationMethodAnalytical, m_includeSpecularPeak, m_numberOfMonteCarloPoints, m_numberOfThreads, m_runImmediately, m_useAverageMaterials, GUI::Session::XML::readBoolAttribute(), GUI::Session::XML::readUIntAttribute(), DeserializationException::tooNew(), DeserializationException::tooOld(), and GUI::Session::XML::Version().
Referenced by JobItem::readNonSessionItems(), and ProjectDocument::readProject().
bool SimulationOptionsItem::runImmediately | ( | ) | const |
Definition at line 57 of file SimulationOptionsItem.cpp.
References m_runImmediately.
Referenced by JobItem::runImmediately(), runInBackground(), setRunImmediately(), and SimulationView::writeOptionsToUI().
bool SimulationOptionsItem::runInBackground | ( | ) | const |
Definition at line 62 of file SimulationOptionsItem.cpp.
References runImmediately().
Referenced by JobItem::runInBackground().
void SimulationOptionsItem::setIncludeSpecularPeak | ( | bool | includeSpecularPeak | ) |
Definition at line 108 of file SimulationOptionsItem.cpp.
References includeSpecularPeak(), and m_includeSpecularPeak.
Referenced by SimulationView::readOptionsFromUI().
void SimulationOptionsItem::setNumberOfThreads | ( | unsigned | n | ) |
Definition at line 52 of file SimulationOptionsItem.cpp.
References m_numberOfThreads.
Referenced by SimulationView::readOptionsFromUI().
void SimulationOptionsItem::setRunImmediately | ( | bool | runImmediately | ) |
Definition at line 67 of file SimulationOptionsItem.cpp.
References m_runImmediately, and runImmediately().
Referenced by SimulationView::readOptionsFromUI().
void SimulationOptionsItem::setUseAnalytical | ( | ) |
Definition at line 78 of file SimulationOptionsItem.cpp.
References m_computationMethodAnalytical.
Referenced by SimulationView::readOptionsFromUI().
void SimulationOptionsItem::setUseAverageMaterials | ( | bool | useAverageMaterials | ) |
Definition at line 98 of file SimulationOptionsItem.cpp.
References m_useAverageMaterials, and useAverageMaterials().
Referenced by SimulationView::readOptionsFromUI().
void SimulationOptionsItem::setUseMonteCarloIntegration | ( | unsigned | numberOfPoints | ) |
Definition at line 72 of file SimulationOptionsItem.cpp.
References m_computationMethodAnalytical, and m_numberOfMonteCarloPoints.
Referenced by GUI::Transform::FromCore::itemizeOptions(), and SimulationView::readOptionsFromUI().
bool SimulationOptionsItem::useAnalytical | ( | ) | const |
Definition at line 88 of file SimulationOptionsItem.cpp.
References m_computationMethodAnalytical.
Referenced by useMonteCarloIntegration(), and SimulationView::writeOptionsToUI().
bool SimulationOptionsItem::useAverageMaterials | ( | ) | const |
Definition at line 103 of file SimulationOptionsItem.cpp.
References m_useAverageMaterials.
Referenced by setUseAverageMaterials(), and SimulationView::writeOptionsToUI().
bool SimulationOptionsItem::useMonteCarloIntegration | ( | ) | const |
Definition at line 83 of file SimulationOptionsItem.cpp.
References useAnalytical().
void SimulationOptionsItem::writeContentTo | ( | QXmlStreamWriter * | writer | ) | const |
Definition at line 118 of file SimulationOptionsItem.cpp.
References m_computationMethodAnalytical, m_includeSpecularPeak, m_numberOfMonteCarloPoints, m_numberOfThreads, m_runImmediately, m_useAverageMaterials, GUI::Session::XML::Version(), and GUI::Session::XML::writeAttribute().
Referenced by JobItem::writeNonSessionItems(), and ProjectDocument::writeTo().
|
private |
Definition at line 55 of file SimulationOptionsItem.h.
Referenced by SimulationOptionsItem(), readContentFrom(), setUseAnalytical(), setUseMonteCarloIntegration(), useAnalytical(), and writeContentTo().
|
private |
Definition at line 58 of file SimulationOptionsItem.h.
Referenced by SimulationOptionsItem(), includeSpecularPeak(), readContentFrom(), setIncludeSpecularPeak(), and writeContentTo().
|
private |
Definition at line 56 of file SimulationOptionsItem.h.
Referenced by SimulationOptionsItem(), numberOfMonteCarloPoints(), readContentFrom(), setUseMonteCarloIntegration(), and writeContentTo().
|
private |
Definition at line 54 of file SimulationOptionsItem.h.
Referenced by SimulationOptionsItem(), numberOfThreads(), readContentFrom(), setNumberOfThreads(), and writeContentTo().
|
private |
Definition at line 53 of file SimulationOptionsItem.h.
Referenced by SimulationOptionsItem(), readContentFrom(), runImmediately(), setRunImmediately(), and writeContentTo().
|
private |
Definition at line 57 of file SimulationOptionsItem.h.
Referenced by SimulationOptionsItem(), readContentFrom(), setUseAverageMaterials(), useAverageMaterials(), and writeContentTo().