title: accessing command line arguments for headless NetLogo in the Matlab extension
body: <p>I'm running the matlab extension for netlogo in headless(non-gui) mode.  I've downloded the extension source and am trying to access the command line arguments from the java code in the extension.  The command line arguments are stored in LabInterface.Settings.  I would like to be able to access that object in the java code of the extension.  I've been working on this for a couple of days but have had not success.  It seems the extension process is designed to create primitives to be used inside netlogo.  These primitives have knowledge of the different netlogo objects but there is no way for the extension java code to access it.  I would appreciate any help.</p>
  
  <p>I would like to be able to run multiple netlogo-matlab analyses with varying parameters, in batch mode accross multiple machines, perhaps a flux cluster. I need to run in headless because of the batch nature. Sometimes the runs will be on the same machine, sometimes split accross multiple machines, flux or condor. I know a similar functionality exist in netlogo for running varying parameters in a single session. Is there some way to split these accross multiple machines? </p>
  
  <p>Currently, I create a series of setup files for netlogo. Each setup file represents the paramenters that vary for that run. Then I submit each netlogo - setup file combination as a single run. Each run can be farmed out to a seperate machine or processor. Adding the matlab extension complicates this. The matlab extension connects it's server to port 9999. With multiple servers running they all get attached to port 9999 and this causes problems. I was hoping to get information from the setup-file name to create independent port numbers tied to the setup file names. This way I could create a unique socket for each setup file, and hence a unique server connection for each netlogo run.</p>