NetDEM v1.0
Loading...
Searching...
No Matches
contact_model_factory.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "contact_model.hpp"
4#include <string>
5#include <unordered_map>
6
7namespace netdem {
8
18public:
21 static std::unordered_map<std::string, ContactModel::Type> model_map;
22
37 static ContactModel *NewContactModel(std::string const &model_name,
38 nlohmann::json const &js);
39};
40
41} // namespace netdem
A factory class for creating contact models.
Definition contact_model_factory.hpp:17
static std::unordered_map< std::string, ContactModel::Type > model_map
Definition contact_model_factory.hpp:21
static ContactModel * NewContactModel(std::string const &model_name, nlohmann::json const &js)
Create a new instance of a contact model by name and configuration data.
Definition contact_model_factory.cpp:18
An abstract base class for contact models.
Definition contact_model.hpp:25
Definition bond_entry.hpp:7