title: Scala NetLogo Extension API: access globals / model parameters
body: <p>I am building a Scala extension for one of my models. I would like to utilize Scala as much as possible. I have been reading the <a href="http://ccl.northwestern.edu/netlogo/docs/scaladoc/org/nlogo/index.html" rel="nofollow noreferrer">API reference</a>.</p>
  
  <p>I am wondering if it is possible to access global variables using the Extension API. Has someone achieved this?</p>
  
  <p>I have been able to set breed, turtle variables, however, I'm starting to think that (by design) an extension cannot access global variables since this inherently highly-couples the extension with the model. </p>
  
  <p>If it is the case that it is possible, please provide the class in which globals can be referenced by name. </p>
  
  <p>If it is not possible, is there a workaround? I could create another breed which contains all globals or passing the globals as parameters, however, those solutions are last resorts. </p>