This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with Repast Simphony Groovy Network Simulation

 
C Sider
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic