-----------------------------------------------------------------------
--                MAST Graphical Periodic Task Editor                --
--     Modelling and Analysis Suite for Real-Time Applications       --
--                                                                   --
--                       Copyright (C) 2001-2014                     --
--                 Universidad de Cantabria, SPAIN                   --
--                                                                   --
-- Authors: Michael Gonzalez       mgh@unican.es                     --
--                                                                   --
-- This program is free software; you can redistribute it and/or     --
-- modify it under the terms of the GNU 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 --
-- General Public License for more details.                          --
--                                                                   --
-- You should have received a copy of the GNU General Public         --
-- License along with this program; if not, see                      --
-- <http://www.gnu.org/licenses/>.                                   --
--                                                                   --
-----------------------------------------------------------------------

with Var_Strings; use Var_Strings;
with Mast;

package Results_Table is

   Name_Col  : constant:=0;
   B_Col     : constant:=1;
   D_Col     : constant:=2;
   R_Col     : constant:=3;
   Slack_Col  : constant:=4;
   Background_Col : constant:=5;

   procedure Initialize;

   procedure Add_New_Result(Name : String; B, D, R: Mast.Time; Slack : Float);

   procedure Get_Result(Row : Positive; Name, B, D, R, Slack : out Var_String);

   function Num_Results return Natural;

   procedure Set_System_Slack(Slack : Float);

   procedure Set_System_Utilization(Utilization : Float);

   Incorrect_Row : exception;

end Results_Table;
