8 #ifndef SWOOSE_MOCK_QMCALCULATOR_H
9 #define SWOOSE_MOCK_QMCALCULATOR_H
22 namespace SettingsNames {
23 static constexpr
const char* mockIntSettingKey =
"mock_int_setting";
24 static constexpr
const char* mockStringSettingKey =
"mock_string_setting";
33 _fields.push_back(SettingsNames::mockIntSettingKey, std::move(mockIntSetting));
37 _fields.push_back(SettingsNames::mockStringSettingKey, std::move(mockStringSetting));
41 _fields.push_back(Utils::SettingsNames::spinMultiplicity, std::move(spinMultiplicity));
45 _fields.push_back(Utils::SettingsNames::molecularCharge, std::move(molecularCharge));
49 _fields.push_back(Utils::SettingsNames::method, std::move(method));
58 static constexpr
const char* model =
"MOCK-QM";
74 std::unique_ptr<Utils::AtomCollection>
getStructure()
const override;
113 std::string
name()
const override;
128 std::shared_ptr<Core::State>
getState()
const final;
133 void loadState(std::shared_ptr<Core::State> state)
final;
170 void applySettings();
172 std::unique_ptr<Utils::Settings> settings_;
182 std::string stringSetting_;
188 #endif // SWOOSE_MOCK_QMCALCULATOR_H
Utils::PropertyList possibleProperties() const override
Returns the list of the possible properties to calculate analytically. By some method analytical hess...
Definition: MockQmCalculator.cpp:69
const Utils::PositionCollection & getPositions() const override
Getter for the coordinates of the underlying AtomCollection.
Definition: MockQmCalculator.cpp:57
Mock class for a QM calculator to use in QM/MM tests.
Definition: MockQmCalculator.h:56
bool allowsPythonGILRelease() const override
Whether the calculator has no underlying Python code and can therefore release the global interpreter...
Definition: MockQmCalculator.h:162
std::unique_ptr< Utils::AtomCollection > getStructure() const override
Gets the molecular structure as a std::unique_ptr<AtomCollection>.
Definition: MockQmCalculator.cpp:49
Utils::Results & results() override
Accessor for the saved instance of Results.
Definition: MockQmCalculator.cpp:123
bool supportsMethodFamily(const std::string &methodFamily) const override
Whether the calculator supports a method family.
Definition: MockQmCalculator.cpp:17
Utils::Settings & settings() override
Accessor for the settings.
Definition: MockQmCalculator.cpp:107
const Utils::Results & calculate(std::string description) override
The main function running calculations (dummy).
Definition: MockQmCalculator.cpp:73
std::shared_ptr< Core::State > getState() const final
Implements Core::StateHandableObject::getState().
Definition: MockQmCalculator.cpp:111
~MockQmCalculator() final=default
Default Destructor.
MockQmCalculator()
Default Constructor.
Definition: MockQmCalculator.cpp:21
std::string getCalculationDirectory() const
Getter for the calculation directory.
Mocks the settings for the mock QM calculator.
Definition: MockQmCalculator.h:28
void setRequiredProperties(const Utils::PropertyList &requiredProperties) override
Sets the properties to calculate.
Definition: MockQmCalculator.cpp:61
std::string name() const override
Getter for the name of the Calculator.
Definition: MockQmCalculator.cpp:13
std::string getFileNameBase() const
Getter for the file name base string.
void loadState(std::shared_ptr< Core::State > state) final
Implements Core::StateHandableObject::loadState().
Definition: MockQmCalculator.cpp:115
void setStructure(const Utils::AtomCollection &structure) override
Changes the molecular structure to calculate.
Definition: MockQmCalculator.cpp:44
void modifyPositions(Utils::PositionCollection newPositions) override
Allows to modify the positions of the underlying AtomCollection.
Definition: MockQmCalculator.cpp:53
Utils::PropertyList getRequiredProperties() const override
Getter for the properties to calculate.
Definition: MockQmCalculator.cpp:65
void setDefaultValue(std::string def)
void setDefaultValue(int def)