Graph generators [message #528769] |
Wed, 21 April 2010 13:24  |
Eclipse User |
|
|
|
A quick note about the graph generators since there was some interest on the STEM call today.
If you get the latest code from SVN (or the weekly integration build), the "New graph" wizard (available in the toolbar) now has the function needed to create the Lattice graph. Specify the xSize, ySize and the edges to create. Then drag the new graph into your model.
To make the graph show up in the Map when you run the simulation, you need to do two things.
1. Create a disease model for say 'human' and drag into the model
2. Create a Population Initializer (the little man with an 'I' next to it in the toolbar). Leave the population as 'human' and specify the number if individuals you want. Leave the location blank (this will make it global). Drag it into your model.
Now you should see the Lattice show up in the Map.
|
|
|
|
|
Re: Graph generators [message #530212 is a reply to message #529424] |
Wed, 28 April 2010 16:44   |
Eclipse User |
|
|
|
To try and answer Matthias questions:
- It would be a nice feature if one could visualize the lattice graph in the map view without running a scenario.
Yes, this is a limitation. The way the map works right now is that will only display the polygons that has labels matching the ones specified in the drop downs. So if you select a disease model and then a population, it will only display regions having disease model labels matching the population.
- in my specific case (generating a graph using the standard values of the wizard: 10 by 10 grid) the map view displayed only a straight line, maybe you can give me a hint what to consider.
Hmmm, I have not seen that behavior before. You might want to double check that your graph was created correctly. In the Project Explorer, open your model, then open the graph and then Nodes. You should have a list like "LAT_SQR_0_0, LAT_SQR_0_1 etc.". If you still can't get it to work can you zip up your STEM project and send to me so I can take a look?
- when one has performed changes on e.g. a model and then right click on the model, there is no option that says "save"
That looks like a limitation in the Eclipse RCP. Save is available using Ctrl+S or under the File menu
- the right-click option "rename" is not working properly, at least I wasn't able to save the changes.
Rename is a new feature and it is possible that there are still bugs. I assume you used the popup menu function with the option that has an image like "A->B" next to it? What is the problem you're experiencing? Can you open a defect? It is possible we still have defects in this part of the code.
Regards,
/ Stefan
Matthias
|
|
|
|
|
|
Re: Graph generators [message #563806 is a reply to message #563782] |
Tue, 25 May 2010 14:02  |
Eclipse User |
|
|
|
Hi Matthias,
when it comes to importing arbitrary networks from file, all the "infrastructure" components are available in STEM right now (extension points, wizards etc.) but currently no import from external files has been implemented.
Perhaps you can help is figure out (and even implement!) a first example. What type of files would you like to be able to import?
|
|
|
Powered by
FUDForum. Page generated in 0.25767 seconds