--  Copyright (2008-2013) Cédric Coussinet (cedric.coussinet@nomoseed.net)
--
--  This program is free software: you can redistribute it and/or modify
--  it under the terms of the GNU Affero General Public License as published
--  by the Free Software Foundation, either version 3 of the License, or
--  (at your option) any later version.
--
--  This program is distributed in the hope that it will be useful,
--  but WITHOUT ANY WARRANTY; without even the implied warranty of
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
--  GNU Affero General Public License for more details.

--  You should have received a copy of the GNU Affero General Public License
--  along with this program. If not, see <http://www.gnu.org/licenses/>

with Nomo.Numerics.Times;

private with Nomo.Interpreter.Types_Index.Ranges;

private with Nomo.Interpreter.Rewards_Clusters;

private with Nomo.Interpreter.Epistemic_Memory.Gen_Section;
pragma Elaborate_All(Nomo.Interpreter.Epistemic_Memory.Gen_Section);

private package Nomo.Interpreter.Epistemic_Memory.Rewarding is

   use Numerics.Times;

   procedure Assume (T : in Positive_Time);

   procedure Interpret;

private

   use Rewards_Clusters;
   use Types_Index.Ranges;

   package Rewarding_Epistemic_Memory is new Gen_Section (Rewards_Cluster,
                                                          Reward_Type_Index,
                                                          Has_Selection,
                                                          Assume,
                                                          Interpret,
                                                          Reinforce);

   procedure Assume (T : in Positive_Time) renames Rewarding_Epistemic_Memory.Assume;

   procedure Interpret renames Rewarding_Epistemic_Memory.Interpret;

end Nomo.Interpreter.Epistemic_Memory.Rewarding;
