gama.old icon indicating copy to clipboard operation
gama.old copied to clipboard

[Feature request] Inspector or visualization of the scheduler

Open chapuisk opened this issue 3 years ago • 2 comments

Is your request related to a problem? Please describe. When you have few agents, each having reflexes, it can be difficult to get the big scheduling picture, i.e. what is the scheduling order of agents, what are the reflexes triggered over which conditions...

Describe the improvement you'd like Having a display or a specific inspector of the scheduler, to help understand scheduling of the simulation for a typical step

Describe alternatives you've considered A way of access programmatically the scheduler in gaml

chapuisk avatar Sep 06 '22 09:09 chapuisk

Can you provide a sketch of what you'd like to see ? And/or what you'd like to access besides what you can already do with the schedules: facet (https://github.com/gama-platform/gama/tree/GAMA_1.8.2/msi.gama.models/models/GAML%20Syntax/Scheduler) ?

AlexisDrogoul avatar Sep 09 '22 07:09 AlexisDrogoul

Here is a quick sketch of an hypothetical model with species A and B and a grid. The idea is mainly graphical, following any activity diagram, and because it is always sequential, should be quite linear (except for reflexes with conditions, but no need to depict them)

Screen Shot 2022-09-12 at 15 09 27

The main question is to be able to track executions of agent and reflexes, when no scheduling have been explicitly define; because for now, the only way to go, is to use "write" in each reflexes of each species and grid. Moreover, when one wants to change scheduling, the outcome is not clear - for instance, when schedules facet of global is used and other species are not unschedules there is strange behavior (a coming issue). Anyway, having access to an attribute of the model that returns the list of agent or species scheduled could be great (read only).

chapuisk avatar Sep 12 '22 13:09 chapuisk