Line data Source code
1 : #pragma once 2 : 3 : #include "Dynamic/Policy/RewardFunction/RewardFunction.hpp" 4 : 5 : namespace Dynamic { 6 : class RewardFunctionDifference: public RewardFunction { 7 : double w; 8 : 9 : public: 10 : RewardFunctionDifference(double greediness = 0.0); 11 1 : virtual ~RewardFunctionDifference() = default; 12 : 13 : virtual Reward operator()(const Env::Env &env, const Env::Vehicle &vehicle) override; 14 : 15 : static RewardFunctionDifference INSTANCE; 16 : }; 17 : } // namespace Dynamic