{"action":"created","issue":{"url":"https://api.github.com/repos/NetLogo/NetLogo/issues/657","labels_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/657/labels{/name}","comments_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/657/comments","events_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/657/events","html_url":"https://github.com/NetLogo/NetLogo/issues/657","id":46153569,"number":657,"title":"Add support for a behaviorspace-experiment-name primitive","user":{"login":"TheBizzle","id":912890,"avatar_url":"https://avatars.githubusercontent.com/u/912890?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBizzle","html_url":"https://github.com/TheBizzle","followers_url":"https://api.github.com/users/TheBizzle/followers","following_url":"https://api.github.com/users/TheBizzle/following{/other_user}","gists_url":"https://api.github.com/users/TheBizzle/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBizzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBizzle/subscriptions","organizations_url":"https://api.github.com/users/TheBizzle/orgs","repos_url":"https://api.github.com/users/TheBizzle/repos","events_url":"https://api.github.com/users/TheBizzle/events{/privacy}","received_events_url":"https://api.github.com/users/TheBizzle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NetLogo/NetLogo/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":{"login":"frankduncan","id":5125316,"avatar_url":"https://avatars.githubusercontent.com/u/5125316?v=3","gravatar_id":"","url":"https://api.github.com/users/frankduncan","html_url":"https://github.com/frankduncan","followers_url":"https://api.github.com/users/frankduncan/followers","following_url":"https://api.github.com/users/frankduncan/following{/other_user}","gists_url":"https://api.github.com/users/frankduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/frankduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankduncan/subscriptions","organizations_url":"https://api.github.com/users/frankduncan/orgs","repos_url":"https://api.github.com/users/frankduncan/repos","events_url":"https://api.github.com/users/frankduncan/events{/privacy}","received_events_url":"https://api.github.com/users/frankduncan/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NetLogo/NetLogo/milestones/19","html_url":"https://github.com/NetLogo/NetLogo/milestones/5.2.0","labels_url":"https://api.github.com/repos/NetLogo/NetLogo/milestones/19/labels","id":949256,"number":19,"title":"5.2.0","description":"Release 5.2.0 of NetLogo","creator":{"login":"frankduncan","id":5125316,"avatar_url":"https://avatars.githubusercontent.com/u/5125316?v=3","gravatar_id":"","url":"https://api.github.com/users/frankduncan","html_url":"https://github.com/frankduncan","followers_url":"https://api.github.com/users/frankduncan/followers","following_url":"https://api.github.com/users/frankduncan/following{/other_user}","gists_url":"https://api.github.com/users/frankduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/frankduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankduncan/subscriptions","organizations_url":"https://api.github.com/users/frankduncan/orgs","repos_url":"https://api.github.com/users/frankduncan/repos","events_url":"https://api.github.com/users/frankduncan/events{/privacy}","received_events_url":"https://api.github.com/users/frankduncan/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":8,"state":"open","created_at":"2015-01-23T23:02:26Z","updated_at":"2015-03-18T22:34:02Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-10-17T23:11:38Z","updated_at":"2015-03-19T02:15:29Z","closed_at":null,"body":"From @alan-isaac:\r\n\r\n> Wouldn't it be nice for NetLogo to provide access to the name of the currently running BehaviorSpace experiment (not just the run number)?\r\n\r\nThis doesn't look very difficult to implement.  `AbstractWorkspace._behaviorSpaceRunNumber` current holds the run number.  I gets initialized by `org.nlogo.lab.gui.Supervisor`, which has a `protocol` member that happens to hold the name of the BehaviorSpace run.\r\n\r\nOne solution would just be to add another variable to `AbstractWorkspace` and store the name in there.  Another might be to create some small container class BehaviorSpace settings that lives outside of the `org.nlogo.lab` package, and then store one of those in `AbstractWorkspace` for the BehaviorSpace primitives to grab their values out of.\r\n"},"comment":{"url":"https://api.github.com/repos/NetLogo/NetLogo/issues/comments/83267479","html_url":"https://github.com/NetLogo/NetLogo/issues/657#issuecomment-83267479","issue_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/657","id":83267479,"user":{"login":"SethTisue","id":161079,"avatar_url":"https://avatars.githubusercontent.com/u/161079?v=3","gravatar_id":"","url":"https://api.github.com/users/SethTisue","html_url":"https://github.com/SethTisue","followers_url":"https://api.github.com/users/SethTisue/followers","following_url":"https://api.github.com/users/SethTisue/following{/other_user}","gists_url":"https://api.github.com/users/SethTisue/gists{/gist_id}","starred_url":"https://api.github.com/users/SethTisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SethTisue/subscriptions","organizations_url":"https://api.github.com/users/SethTisue/orgs","repos_url":"https://api.github.com/users/SethTisue/repos","events_url":"https://api.github.com/users/SethTisue/events{/privacy}","received_events_url":"https://api.github.com/users/SethTisue/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T02:15:29Z","updated_at":"2015-03-19T02:15:29Z","body":"One other possibility would be to add a `behaviorspace?` primitive, and then have `behaviorspace-experiment-name` and `behaviorspace-run-number` signal runtime errors if you don't check the boolean first. For something closer to the language core and likely to affect model correctness, that would be the most NetLogo-ish approach, IMO. For this, it's hard to get too worked up about it one way or the other."}}