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));
54 static constexpr
const char* model =
"MOCK-QM";
70 std::unique_ptr<Utils::AtomCollection>
getStructure()
const override;
109 std::string
name()
const override;
124 std::shared_ptr<Core::State>
getState()
const final;
129 void loadState(std::shared_ptr<Core::State> state)
final;
159 void applySettings();
161 std::unique_ptr<Utils::Settings> settings_;
171 std::string stringSetting_;
177 #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:71
const Utils::PositionCollection & getPositions() const override
Getter for the coordinates of the underlying AtomCollection.
Definition: MockQmCalculator.cpp:59
Mock class for a QM calculator to use in QM/MM tests.
Definition: MockQmCalculator.h:52
std::unique_ptr< Utils::AtomCollection > getStructure() const override
Gets the molecular structure as a std::unique_ptr<AtomCollection>.
Definition: MockQmCalculator.cpp:51
Utils::Results & results() override
Accessor for the saved instance of Results.
Definition: MockQmCalculator.cpp:117
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:101
const Utils::Results & calculate(std::string description) override
The main function running calculations (dummy).
Definition: MockQmCalculator.cpp:75
std::shared_ptr< Core::State > getState() const final
Implements Core::StateHandableObject::getState().
Definition: MockQmCalculator.cpp:105
~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:63
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:109
void setStructure(const Utils::AtomCollection &structure) override
Changes the molecular structure to calculate.
Definition: MockQmCalculator.cpp:46
void modifyPositions(Utils::PositionCollection newPositions) override
Allows to modify the positions of the underlying AtomCollection.
Definition: MockQmCalculator.cpp:55
Utils::PropertyList getRequiredProperties() const override
Getter for the properties to calculate.
Definition: MockQmCalculator.cpp:67
void setDefaultValue(std::string def)
void setDefaultValue(int def)