Commit Graph

650 Commits

Author SHA1 Message Date
matrevis 68d5f30f64 - Defaults to thread view.
- Enforcing resource policy the old way.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1016 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 00:29:11 +00:00
paolo 2b9942bbec - test-holt_widget: temporary added an extra holt_widget in container
- gui_builder: added an holt_widget in container
- Makefile.am: added holt_containr_window accordling 



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1015 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-05 23:54:16 +00:00
paolo 51ce976d65 - fixed redrawing bug
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1014 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-05 23:49:55 +00:00
paolo 3e35ed278f - added a container for holt_widget
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1013 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-05 23:48:56 +00:00
elvez 28d066fecd - Update wizards to use the correct(?) policy: rr_priority which was 2 is now 4
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1012 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-05 22:03:26 +00:00
tchernobog e39c6c1430 - Update POTFILES list (not including .glade files because
not everybody has gettext compiled with expat support)
- Update version numbers in configure.ac


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1011 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-05 09:38:31 +00:00
paolo 0dbb265126 - added gradients to holt_widget.cc
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1007 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-04 17:01:50 +00:00
paolo c9d9766092 - Modified colors gree, yellow, blue in simulation widget
- modified test-holt_widget accordling



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1006 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-04 14:23:42 +00:00
elvez 5242b37e13 - Temporary workaround for the "Second Bug", caused by a reset in the middle of a request editing operation which should be atomic. Though I think it should be fixed in the backend...
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1003 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-03 00:25:22 +00:00
tchernobog c10ed2f4fb - Add debug printout in SimulationWidget
- Add holt_widget.{cc,hh} to main executable sources


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1002 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 14:48:03 +00:00
tchernobog 64839353bb - Re-add Giovanni in the (hopefully) right places
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1001 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 14:12:55 +00:00
tchernobog 1646d19d4a - Remove Giovanni from credits to avoid potentially sarcastic comments
from the customer :-(


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1000 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 13:40:23 +00:00
tchernobog c0a89b1bd1 - Add standard file extension when needed (note: this doesn't
behaves exactly like the design says, since it doesn't allow for 
Serializer::get_filename_extension() to return a *list*
of space-separated extensions; rather, it assumes that a Serializer
will return just *one* extension)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@999 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 13:35:14 +00:00
tchernobog 40ab20a87a - Connect signals for saving and loading from file in the GUI
- Implement GuiBuilder::on_file_save_activate()
- TODO: manage more than one serializer
- TODO: append standard extension to filename if it isn't there


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@998 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 13:18:48 +00:00
tchernobog 77c91ebfec - Fix XMLSerializer to disable notifications to HistoryObservers
during the loading of a snapshot. This should fix a non-deterministic
sigsegv due to asyncronous callback mappings.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@997 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 12:46:47 +00:00
tchernobog 634499f6cf - Move environments in a more consistent location (they shan't be
installed anyway). To run a test with the textual version of sgpemv2,
start it with [wd : src/testsuite/scheduling-wizards].
(note: "wd" stands for "working directory")


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@996 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 12:10:51 +00:00
matrevis b4f8c61695 - Ported wizards, altough still missing the way
to copy them into the install destination directory
- Yaling in preferences treeviews
- Changing policy now resets history
- Corrected some detail in speed control widget


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@995 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 11:47:06 +00:00
tchernobog f003779a04 - Split SimulationController from GuiBuilder and put it in its own file
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@994 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 11:31:01 +00:00
tchernobog 5d837552c8 - Add check menu item to select simulation mode
- Connect also simulation menu items in SimulationController
- Fix typo in SchedulablesTreeWidget


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@993 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 11:12:23 +00:00
tchernobog 3df5d38041 - Make preferences window bigger. TODO: yalign = ALIGN_TOP into the left
column of the treeviews


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@992 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 09:38:16 +00:00
matrevis 30c09a58ba - Added an optimization to save cache when reached the end of the simulation
This optimization causes some trouble when using jumpto, but nothing terrible.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@991 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 02:07:19 +00:00
matrevis 47d4fe65b4 - Corrected get_front() issues.
- Widget tests are now working properly.



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@990 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 01:56:00 +00:00
elvez 4b3cce6bea - Correctly manage file extensions in load/save dialogs. I couldn`t find a way to automagically add the extension on file save. It`s just too much of an hassle to do it by hand, isn`t it?
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@989 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 01:01:37 +00:00
elvez f617c51a87 - Fixed bug causing crash on adding a resource after simulation is terminated. A workaround was used, it was caused by Simulation::get_front() returning a wrong value.
- Other minor improvements to the ResourceWidget

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@988 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-02 00:20:24 +00:00
matrevis d570314405 - Better Preferences management
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@987 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 23:28:23 +00:00
tchernobog 23e24e87e5 - Aesthetics
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@986 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 22:51:16 +00:00
tchernobog 6f2c9c3252 - Use smart_ptr for tooltips into schedulable_state_widget. Closes task #3.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@984 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 17:20:17 +00:00
tchernobog ad774067e1 - Add lottery and plain round robin cpu policies. I didn't test
them extensively, mind you. Closes task #14.
- Added documentation for each cpu policy
- Manage extra-exception into PythonCPUPolicy (when the .py
file doesn't contain a similarly named class)
- Update exception output in GuiBuilder to make it slightly
more descriptive


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@983 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 17:03:34 +00:00
tchernobog ff95a5364d - Allow the user to select the (CPU|Resource)Policy from
the GUI


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@982 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 13:17:53 +00:00
matrevis 689f1c108d - Udpdated test-holt-widget for resource policy support
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@981 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 12:49:16 +00:00
tchernobog 17b54f1bfe - Add policy description to configure_policy_dialog
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@980 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 12:08:26 +00:00
matrevis 0912042b50 - Added preferences load/save feature.
altough till lacking exception handling
  if no sgpem.cfg file is present, segmentation fault
  therefore no loading is ever done by now.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@979 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 00:58:12 +00:00
elvez 58cf50b500 - Added visualization of resources queue to resourceswidget. Task #28
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@978 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-01 00:23:39 +00:00
elvez eb9546a63c - Disabled all operations on schedulables from the GUI while the simulation is not stopped. Task #25
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@977 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-31 22:17:16 +00:00
tchernobog ba9b28b0c8 - Correctly set release time for candidate threads that try to
run and immediately block
- Use modulo to check the end of the time slice instead than a
simple equality


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@976 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-31 18:57:09 +00:00
tchernobog 5b7130a9a0 - Fix book-keeping of thread data fields
- (temp) Add debug printout into text simulation of 
a thread acquiring time and release time. Will be removed
just after scheduler is fixed.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@975 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-31 18:16:11 +00:00
tchernobog 1bc33d37ec - Fix one of two Scheduler's bugs. Now the state of the running thread
is update separately by the state of future or blocked ones at the
beginning of step_forward() (since else it didn't influence the state of
threads coming before it in the global thread list)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@974 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-31 17:15:41 +00:00
elvez 0c3ecf3bcb - Removed a level from the schedulables tree. Added details about subrequests
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@973 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-31 00:34:49 +00:00
tchernobog 323ab51210 - Fix sigsegv when editing an entity
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@972 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-31 00:31:14 +00:00
matrevis c797bf97ae - Improved resource policy power
- added tests for gap management
- added test for resource policy


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@971 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 23:59:10 +00:00
tchernobog 4f3e8f61df - Enable CPUPolicy configuration in the GUI through clicking on the
toolbar button about the "Scheduling policy". The same is true also
for a ResourcePolicy. These two features will also need a related
entry under the "Edit" menu. Closes task #15.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@970 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 23:37:11 +00:00
elvez 9af2008050 - Allow compilation of test which didn`t need massive updates (those from m0.1). Task #19
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@969 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 22:35:45 +00:00
matrevis 26755fd876 - Small fix to let the application work
using ResourcePoliciesGatekeeper


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@968 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 21:09:47 +00:00
elvez 685a6d84f0 - All dialogs created by SchedulablesTreeWidget are now inializated only when needed
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@967 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 15:54:47 +00:00
tchernobog a4bde96a7b - Manage exceptions into SimulationController.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@966 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 15:53:26 +00:00
elvez 3f314f6225 - Removed useless declaration from header file
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@965 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 15:32:33 +00:00
elvez 58838fabbc - More extensible exception checking in text_simulation
- Started doing initialization of glade dialogs in a lazy manner

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@964 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 15:31:25 +00:00
elvez 9d541e2751 - Added markup for threads, improved support for translation of hard-coded strings
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@963 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-30 00:14:44 +00:00
elvez cb59a30e06 - Added support for Return key-as-OK for dialogs
- Scrollbars on the SchedulablesTreeWidget only show up if needed
- Forced minimum height on the list view inside add-request dialog

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@962 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-29 22:24:02 +00:00
tchernobog 1f466f80d5 - Add newlines at the end of file to make new versions of m4 happy
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@961 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-08-29 09:12:54 +00:00