Questions tagged [repast-simphony]

Repast Simphony is a cross platform Java-based modeling system that runs under Microsoft Windows, Apple Mac OS X, and Linux. It supports the development of extremely flexible models of interacting agents for use on workstations and small computing clusters.

Repast Simphony is a tightly integrated, richly interactive, cross platform Java-based modeling system that runs under Microsoft Windows, Apple Mac OS X, and Linux. It supports the development of extremely flexible models of interacting agents for use on workstations and small computing clusters.

Repast Simphony models can be developed in several different forms including the ReLogo dialect of Logo, point-and-click flowcharts, Groovy, or Java, all of which can be fluidly interleaved. NetLogo models can also be imported.

119 questions
1
vote
1 answer

The type GridCell is not generic; it cannot be parameterized with arguments . While creating a list

I am novice in java and repast. I am trying to create a list of Grid cells (grid cells) of type gridcells (valuelayer cells) but I keep getting the error "The type GridCell is not generic; it cannot be parameterized with arguments " How do I fix…
Tannay
  • 17
  • 5
1
vote
1 answer

Mixing relational and boolean conditions in java if statements

How does combining boolean and non-boolean if statements in java work? Is there a particular way the conditional statements need to be written? For example, the code below gives me different results every time. Beetles are initialized as randomly…
Taylor Marie
  • 325
  • 1
  • 14
1
vote
1 answer

object removed from the context but not the display

I have a simple Agent in a simple context (geography package) which operates using latitude and longitude to represent space. The agent is supposed to die on the 10th iteration of the model. It is then removed from the context. On the 10th iteration…
Taylor Marie
  • 325
  • 1
  • 14
1
vote
1 answer

Is it possible to execute REPAST model immediately from the IDE

Is it possible to run my simulation directly without seeing the GUI? All I am interested in are console output data, so there is no need for me to interact with a GUI to play, pause or reset my simulation.
1
vote
1 answer

Adding the same object to context and a list

I have created a tree class and implemented a comparator: class SuitComp implements Comparator { @Override public int compare(Tree o1, Tree o2) { return Double.compare(o1.getSuit(), o2.getSuit()); } } class Tree { private…
1
vote
0 answers

error when installing Repast HPC 2.0

Has anyone tried Repast HPC 2.0. I am trying to install it on Mint 16 (64-bit) but got errors as below: mkdir -p ../include/repast_hpc mkdir -p ../include/relogo cp ../src/repast_hpc/*.h ../include/repast_hpc/ cp ../src/relogo/*.h…
Yvan
  • 35
  • 5
1
vote
1 answer

Assigning data layers to grid in Repast J

I am trying to write an ABM in Repast Java Suite and am using a 3D grid for that. Two questions about the grid: 1) I want to assign a functional value for each (x,y) combination in the grid- E.g. for each f(x,y)=x+y. So, when an agent is at point…
1
vote
2 answers

Java project that uses library throws NoClassDefFoundError when using project that uses the same library

I'm creating a Java library for using in other Java projects. The projects use Repast Symphony and my library does so too (so i'm afraid this error is being caused by some conflict). Everything builds fine, but when I run a the Repast simulation, it…
ecc
  • 1,409
  • 16
  • 37
1
vote
1 answer

Upgrade repast simphony version 1.2 to repast 2.0

I need your help. I'm running a repast simulation from another Java application. What I intend to do is to upgrade the repast version 1.2 to the repast version 2.0. How can I do this? I tried to replace the repast.simphony.bin_and_src.jar with the…
tom
  • 53
  • 4
1
vote
1 answer

repast simphony: count turtles matching a property

I'm programming a simulation using repast simphony groovy API. There's a method count(myTurtles) which allows me to count the number of agents (turtles) of a particular class myTurtle extends BaseTurtle. My question is: Is there any way to filter…
NotGaeL
  • 7,842
  • 3
  • 35
  • 64
0
votes
0 answers

AgentSet cannot be resolved to type in Repast Simphony model

I've installed Repast Simphony on Eclispe (centos 7.7) and I'm trying to run the Zombies demo but seeing errors like the following: AbstractGridFunction cannot be resolved to a type Heatbug.java /Heatbugs/src/repast/model/heatbugs line 58 Java…
Ed Hall
  • 11
0
votes
1 answer

How to stop simulation run after specific time NOT tick

all. Regardless of what my model does, I want to stop the simulation after running for a specific time (real clock time). For example, stop after 5 or 10 or 15 minutes. I tried stopping it after 5 minutes using the…
0
votes
0 answers

How do you run a Repast Browser Model on your own server?

I understand from here that you can use a browser to display a repast model by running it on local server. I would like to run a repast browser model on a Linux VPS server and allow public access via an URL. Is this possible at this moment? What are…
Qualmy
  • 105
  • 4
0
votes
1 answer

How can I find my visualization problem in Repast 2.7?

I created Disease Spread Simulator with Repast 2.7. When I try press Start Run I'm getting this error : java.lang.NullPointerException at repast.simphony.visualization.engine.DisplayProducer.setContext(DisplayProducer.java:35) at…
0
votes
1 answer

Repast: slow initialization reason

I have found it's very much slow to initialize my model. IT TAKES 40 SECONDS TO FINISH! my codes contains two major parts: 1) a CSV data reader will first run to load the data, which takes less than 1 second to finish reading and processing 35000+…
Jack
  • 1,131
  • 1
  • 8
  • 17