--  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.Accurately;

private package Nomo.Interpreter.Rules_Base is

   use Numerics.Accurately;

   type Rule_Base is abstract tagged limited private;

   procedure Adjust (This : in out Rule_Base;
                     Rate : in Real_Accurately_0_To_1);
   pragma Inline (Adjust);

   function Is_Forget (This : in Rule_Base) return Boolean;
   pragma Inline (Is_Forget);

   function Is_Updatable (This : in Rule_Base) return Boolean;
   pragma Inline (Is_Updatable);

private

   type Rule_Base is abstract tagged limited record
      Expectancy_Factor : Real_Accurately_0_To_1;
      Id                : Positive;
      Relevance         : Real_Accurately_0_To_1;
      Is_Updatable      : Boolean;
   end record;

end Nomo.Interpreter.Rules_Base;
