• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with Repast Simphony Groovy Network Simulation

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm trying to simulate a network using Repast Simphony, which is a java and groovy IDE (inside eclipse) to visualise a network for the purpose of analysing virus propagation.
My first step I created the nodes:



And now I want to link them together.

I've found an example in NetLogo which gives me this code:





and I imported it over to Repast and it turned into this:


AverageNodeDegree is a variable that I can set, as is numberOfNodes.

The question I have is trying to work this code and rewrite it so that Repast understands it. I'm not quite sure how to do that as the syntax is different.

Any help anyone has or any knowledge of repast or groovy would be really really helpful.

Thanks in advance
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic