dignea  1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
Replacement.h
1 //
2 // Created by amarrero on 22/4/21.
3 //
4 
5 #ifndef DIGNEA_REPLACEMENT_H
6 #define DIGNEA_REPLACEMENT_H
7 
8 #include <dignea/core/Solution.h>
9 
15 template <class S>
16 class Replacement {
17  public:
18  Replacement() = default;
19 
20  virtual ~Replacement() = default;
21 
22  public:
31  virtual vector<S> replace(vector<S> &, vector<S> &) = 0;
32 
42  virtual vector<S> replace(vector<S> &, const S &, const int &position) = 0;
43 
44  virtual std::string getName() const = 0;
45 };
46 
47 #endif // DIGNEA_REPLACEMENT_H
Replacement skeleton operator.
Definition: Replacement.h:16
virtual vector< S > replace(vector< S > &, const S &, const int &position)=0
Method to perform the replacement operation. This is a virtual method that must be implemented in the...
virtual vector< S > replace(vector< S > &, vector< S > &)=0
Method to perform the replacement operation. This is a virtual method that must be implemented in the...