Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Spatiotemporal Epidemiological Modeler (STEM) » Graph generators
Graph generators [message #528769] Wed, 21 April 2010 17:24 Go to next message
Stefan Edlund is currently offline Stefan EdlundFriend
Messages: 127
Registered: July 2009
Location: IBM
Senior Member
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 #529424 is a reply to message #528769] Sun, 25 April 2010 08:28 Go to previous messageGo to next message
Matthias Filter is currently offline Matthias FilterFriend
Messages: 75
Registered: July 2009
Member
Hi,

I tried to test the new graph generator feature using the weekly integration build and have some suggestions:
- It would be a nice feature if one could visualize the lattice graph in the map view without running a scenario.
- 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.
Some other things I noticed during the testing:
- when one has performed changes on e.g. a model and then right click on the model, there is no option that says "save"
- the right-click option "rename" is not working properly, at least I wasn't able to save the changes.

Matthias
Re: Graph generators [message #529688 is a reply to message #529424] Mon, 26 April 2010 18:47 Go to previous messageGo to next message
Werner Keil is currently offline Werner KeilFriend
Messages: 1087
Registered: July 2009
Senior Member
We had some good experience with Graphviz in our Eclipse RCP project, but I
know, there's frameworks like GEF which should be used preferably by Eclipse
projects.

Werner
Re: Graph generators [message #530212 is a reply to message #529424] Wed, 28 April 2010 20:44 Go to previous messageGo to next message
Stefan Edlund is currently offline Stefan EdlundFriend
Messages: 127
Registered: July 2009
Location: IBM
Senior Member
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 #535581 is a reply to message #530212] Mon, 24 May 2010 17:30 Go to previous messageGo to next message
Matthias Filter is currently offline Matthias FilterFriend
Messages: 75
Registered: July 2009
Member
Concerning the rename option issue: It's the popup menu function as you correctly identified. I get an "unhandled event loop exception" error each time I start to type something into the editor - I put the exception stack trace into the defect I will generate on this.

Concerning the strange visualization behaviour - I will send the project to you via email.

The missing save-option in the popup menu function is not critical at all, just a nice to have feature.

Concerning the graph generation feature in general: Have you made progress in respect to an import of arbitrary network structures from a file? This would really be a big milestone in my opinion as this would open the way for those that want to run epidemiological model simulations that are not linked to GIS information.

Kind regards,

Matthias

Re: Graph generators [message #535810 is a reply to message #535581] Tue, 25 May 2010 18:01 Go to previous messageGo to next message
Stefan Edlund is currently offline Stefan EdlundFriend
Messages: 127
Registered: July 2009
Location: IBM
Senior Member
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?

Re: Graph generators [message #563782 is a reply to message #530212] Mon, 24 May 2010 17:30 Go to previous messageGo to next message
Matthias Filter is currently offline Matthias FilterFriend
Messages: 75
Registered: July 2009
Member
Concerning the rename option issue: It's the popup menu function as you correctly identified. I get an "unhandled event loop exception" error each time I start to type something into the editor - I put the exception stack trace into the defect I will generate on this.

Concerning the strange visualization behaviour - I will send the project to you via email.

The missing save-option in the popup menu function is not critical at all, just a nice to have feature.

Concerning the graph generation feature in general: Have you made progress in respect to an import of arbitrary network structures from a file? This would really be a big milestone in my opinion as this would open the way for those that want to run epidemiological model simulations that are not linked to GIS information.

Kind regards,

Matthias
Re: Graph generators [message #563806 is a reply to message #563782] Tue, 25 May 2010 18:02 Go to previous message
Stefan Edlund is currently offline Stefan EdlundFriend
Messages: 127
Registered: July 2009
Location: IBM
Senior Member
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?
Previous Topic:External File Implemented for Creating New Infectors and Inoculators
Next Topic:Government agencies and free mapping tools
Goto Forum:
  


Current Time: Fri Apr 26 03:55:04 GMT 2024

Powered by FUDForum. Page generated in 0.04112 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top