------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Cheddar is a GNU GPL real-time scheduling analysis tool. -- This program provides services to automatically check schedulability and -- other performance criteria of real-time architecture models. -- -- Copyright (C) 2002-2020, Frank Singhoff, Alain Plantec, Jerome Legrand, -- Hai Nam Tran, Stephane Rubini -- -- The Cheddar project was started in 2002 by -- Frank Singhoff, Lab-STICC UMR 6285, Université de Bretagne Occidentale -- -- Cheddar has been published in the "Agence de Protection des Programmes/France" in 2008. -- Since 2008, Ellidiss technologies also contributes to the development of -- Cheddar and provides industrial support. -- -- The full list of contributors and sponsors can be found in AUTHORS.txt and SPONSORS.txt -- -- 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 2 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, write to the Free Software -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- -- -- Contact : cheddar@listes.univ-brest.fr -- ------------------------------------------------------------------------------ -- Last update : -- $Rev$ -- $Date$ -- $Author: singhoff $ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ with Gtkada.Builder; use Gtkada.Builder; with Glib; use Glib; with Gdk; use Gdk; with Gdk.Event; use Gdk.Event; with Gdk.GC; use Gdk.GC; with Gdk.Color; use Gdk.Color; with Gtk; use Gtk; with Gtk.Widget; use Gtk.Widget; with buffer_set; use buffer_set; with task_set; use task_set; with resource_set; use resource_set; with message_set; use message_set; with processor_set; use processor_set; with multiprocessor_services_interface; use multiprocessor_services_interface; use multiprocessor_services_interface.scheduling_result_per_processor_package; with Gtk.Drawing_Area; use Gtk.Drawing_Area; package graphical_editor.scheduling_simulation_draw_callbacks is package cb is new Gtk.Handlers.Return_Callback (Gtk.Drawing_Area.gtk_drawing_area_record, Boolean); use cb; ----------------- -- Constants that give in pixel the layout -- of all any graphical elements of the -- scheduling in the drawing area -- left_margin : constant gint := 20; right_margin : constant gint := 500; high_margin : constant gint := 20; interligne : constant gint := 50; timeunit_margin : constant gint := 20; type draw_scheduling_record is tagged record font : gdk_font; tasks : tasks_set; resources : resources_set; messages : messages_set; buffers : buffers_set; processors : processors_set; period : Natural; start_draw : Natural; sched : scheduling_table_ptr; white_gc : Gdk.GC.gdk_gc; black_gc : Gdk.GC.gdk_gc; red_color : gdk_color; blue_color : gdk_color; light_blue : gdk_color; orange_color : gdk_color; current_width : gint; current_height : gint; have_colors : Boolean := False; end record; type draw_scheduling_access is access all draw_scheduling_record'class; draw_scheduling : draw_scheduling_access := new draw_scheduling_record; function expose (w : access Gtk.Drawing_Area.gtk_drawing_area_record'class) return Boolean; procedure read_scheduling_duration_and_draw_scheduling (object : access gtkada_builder_record'class); procedure close_widget (object : access gtkada_builder_record'class); procedure call_customized_simulation; procedure call_uncustomized_simulation; end graphical_editor.scheduling_simulation_draw_callbacks;