cs4ec / CS4EC_DSL

MIT License
1 stars 0 forks source link

Multiple run configurations at one time #23

Open thomasGodfrey opened 3 years ago

thomasGodfrey commented 3 years ago

Find a way to create multiple simulation instances in the modelling language (e.g. one with LFT, one without) to allow for comparison studies

szschaler commented 3 years ago

What's wrong with simply creating separate model roots in one model project or, indeed, multiple separate models?

On the Repast side, it doesn't really matter because you're not going to run the simulations at the same time (or at least not in the same Repast instance).

thomasGodfrey commented 3 years ago

I think to be honest I am not sure where to start with this. Currently, the workflow is that you edit a 'sandbox' model in the DSML which generates the relevant Java classes, and then you run a separate 'runner' model which copies the java classes into the general repast code, and starts running repast. My idea at the moment is to have multiple of these 'sandbox' models, and in the runner, have a way to select which sandbox you want to run. Does this sound sensible to you?

szschaler commented 3 years ago

The sandbox is MPS way of giving you somewhere to try out things quickly. In "production" use, the idea would be that you package your language as a plugin and install it into an MPS. Then you can create multiple models from it.

This is something that you would eventually need to support, but for the moment, there may be an easier solution: you could just create multiple "runner" model roots in the same sandbox that reference the relevant pieces of model and trigger the generation and Repast-running process from there.