Stochastic Loading Module
stochastic_model.h
1 #ifndef _STOCHASTIC_MODEL_H_
2 #define _STOCHASTIC_MODEL_H_
3 
4 #include <string>
5 #include "json_object.h"
6 
7 namespace stochastic {
8 
13  public:
17  StochasticModel() = default;
18 
22  virtual ~StochasticModel() {};
23 
27  StochasticModel(const StochasticModel&) = delete;
28 
32  StochasticModel& operator=(const StochasticModel&) = delete;
33 
38  std::string model_name() const { return model_name_; };
39 
49  virtual utilities::JsonObject generate(const std::string& event_name,
50  bool g_units = false) = 0;
51 
62  virtual bool generate(const std::string& event_name,
63  const std::string& output_location,
64  bool g_units = false) = 0;
65 
66  protected:
67  std::string model_name_ = "StochasticModel";
68 };
69 } // namespace stochastic
70 
71 #endif // _STOCHASTIC_MODEL_H_
virtual utilities::JsonObject generate(const std::string &event_name, bool g_units=false)=0
std::string model_name() const
StochasticModel & operator=(const StochasticModel &)=delete