{"action":"created","issue":{"url":"https://api.github.com/repos/gama-platform/gama/issues/1665","repository_url":"https://api.github.com/repos/gama-platform/gama","labels_url":"https://api.github.com/repos/gama-platform/gama/issues/1665/labels{/name}","comments_url":"https://api.github.com/repos/gama-platform/gama/issues/1665/comments","events_url":"https://api.github.com/repos/gama-platform/gama/issues/1665/events","html_url":"https://github.com/gama-platform/gama/issues/1665","id":146490893,"number":1665,"title":"Co-model with user interaction models doesn't allow interaction","user":{"login":"dphilippon","id":15722750,"avatar_url":"https://avatars.githubusercontent.com/u/15722750?v=3","gravatar_id":"","url":"https://api.github.com/users/dphilippon","html_url":"https://github.com/dphilippon","followers_url":"https://api.github.com/users/dphilippon/followers","following_url":"https://api.github.com/users/dphilippon/following{/other_user}","gists_url":"https://api.github.com/users/dphilippon/gists{/gist_id}","starred_url":"https://api.github.com/users/dphilippon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dphilippon/subscriptions","organizations_url":"https://api.github.com/users/dphilippon/orgs","repos_url":"https://api.github.com/users/dphilippon/repos","events_url":"https://api.github.com/users/dphilippon/events{/privacy}","received_events_url":"https://api.github.com/users/dphilippon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gama-platform/gama/labels/*%20Missing%20use%20case","name":"* Missing use case","color":"f7c6c7"},{"url":"https://api.github.com/repos/gama-platform/gama/labels/%3E%20Bug","name":"> Bug","color":"ff0000"},{"url":"https://api.github.com/repos/gama-platform/gama/labels/Affects%20Usability","name":"Affects Usability","color":"eb6420"},{"url":"https://api.github.com/repos/gama-platform/gama/labels/Concerns%20Interface","name":"Concerns Interface","color":"207de5"},{"url":"https://api.github.com/repos/gama-platform/gama/labels/Concerns%20Simulation","name":"Concerns Simulation","color":"207de5"},{"url":"https://api.github.com/repos/gama-platform/gama/labels/OS%20All","name":"OS All","color":"bfdadc"},{"url":"https://api.github.com/repos/gama-platform/gama/labels/Priority%20Medium","name":"Priority Medium","color":"fad8c7"},{"url":"https://api.github.com/repos/gama-platform/gama/labels/Version%20Git","name":"Version Git","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/gama-platform/gama/milestones/4","html_url":"https://github.com/gama-platform/gama/milestones/GAMA%201.7%20release","labels_url":"https://api.github.com/repos/gama-platform/gama/milestones/4/labels","id":1545493,"number":4,"title":"GAMA 1.7 release","description":"The final release of GAMA 1.7","creator":{"login":"AlexisDrogoul","id":579256,"avatar_url":"https://avatars.githubusercontent.com/u/579256?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexisDrogoul","html_url":"https://github.com/AlexisDrogoul","followers_url":"https://api.github.com/users/AlexisDrogoul/followers","following_url":"https://api.github.com/users/AlexisDrogoul/following{/other_user}","gists_url":"https://api.github.com/users/AlexisDrogoul/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexisDrogoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexisDrogoul/subscriptions","organizations_url":"https://api.github.com/users/AlexisDrogoul/orgs","repos_url":"https://api.github.com/users/AlexisDrogoul/repos","events_url":"https://api.github.com/users/AlexisDrogoul/events{/privacy}","received_events_url":"https://api.github.com/users/AlexisDrogoul/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":63,"state":"open","created_at":"2016-01-27T01:50:44Z","updated_at":"2016-04-07T03:59:04Z","due_on":"2016-03-14T17:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-07T02:34:54Z","updated_at":"2016-04-07T04:01:35Z","closed_at":null,"body":"Using co-model feature on a submodel with user interaction enable the possibility to interact with the user command, as the step doesn't even pause the model to make a choice. I think it would be great to stop all the models when a user interaction needs an interaction with the user."},"comment":{"url":"https://api.github.com/repos/gama-platform/gama/issues/comments/206687717","html_url":"https://github.com/gama-platform/gama/issues/1665#issuecomment-206687717","issue_url":"https://api.github.com/repos/gama-platform/gama/issues/1665","id":206687717,"user":{"login":"dphilippon","id":15722750,"avatar_url":"https://avatars.githubusercontent.com/u/15722750?v=3","gravatar_id":"","url":"https://api.github.com/users/dphilippon","html_url":"https://github.com/dphilippon","followers_url":"https://api.github.com/users/dphilippon/followers","following_url":"https://api.github.com/users/dphilippon/following{/other_user}","gists_url":"https://api.github.com/users/dphilippon/gists{/gist_id}","starred_url":"https://api.github.com/users/dphilippon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dphilippon/subscriptions","organizations_url":"https://api.github.com/users/dphilippon/orgs","repos_url":"https://api.github.com/users/dphilippon/repos","events_url":"https://api.github.com/users/dphilippon/events{/privacy}","received_events_url":"https://api.github.com/users/dphilippon/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T04:01:35Z","updated_at":"2016-04-07T04:01:35Z","body":"Example : \r\nThis model is the one asking to the user to write a message and display it in the console. (The experiment works)\r\n```\r\nmodel user\r\n\r\n\r\nglobal\r\n{\r\n\t\r\n\tinit\r\n\t{\r\n\t\tcreate user number:1;\r\n\t}\r\n}\r\n\r\nspecies user control:user_only {   \t\r\n   user_panel \"Default\" initial: true {\r\n   \ttransition to: \"Write\" when: cycle mod 20=0;\r\n   }\r\n   user_panel \"Write\"\r\n   {\r\n      user_command \"Activate\"  continue: true color: #blue{\r\n        user_input \"Target\" returns: message type: string<-\"None\";\r\n        write message;\r\n      }\r\n      transition to: \"Default\"; \r\n   }\r\n}\r\n\r\n\r\nexperiment anExp type:gui\r\n{\r\n\tfloat minimum_cycle_duration<-0.1#s;\r\n\toutput\r\n\t{\r\n\t}\r\n}\r\n```\r\n\r\nThis model is the co-model (but with only one model for the moment)\r\n```\r\nmodel comodel\r\nimport \"user.gaml\" as model_user\r\n\r\nglobal\r\n{\r\n\tbool activated<-true;\r\n\tinit\r\n\t{\r\n\t\tcreate model_user.anExp number:1 ;\r\n\t}\r\n\treflex update\r\n\t{\r\n\t\task first(model_user.anExp).simulation\r\n\t\t{\r\n\t\t\t\tdo _step_;\r\n\t\t}\r\n\t}\r\n\r\n}\r\n\r\nexperiment test type: gui\r\n{\r\n\tfloat minimum_cycle_duration<-0.1#s;\r\n}\r\n````\r\nNormally, we expect the co-model to do as the experiment in the micro-model, which means that the user interaction contained in the micro-model, once the panel appears, will stop the experiment until the value of the user_command is set. However, it just continues to do the step, and doesn't even allow to set the value, as it is updates every cycle. I know that the ask within the reflex in the co model forces the step to pass, but so does the step by step button. But in this case, when launching the experiment in the micro-model, even pressing the button doesn't pass to the next step. \r\nThat's why I was hoping to \"stop\" all the simulations once a user_panel appears, just like for the micro model."}}