Skip navigation.
Home

Technical Notes

Reading NetCDF variables to Repast models

1. Introduction

Flex interacting with a Repast simulation model

1. Introduction

This article mainly introduces the steps on how to interact with a REPAST Simphony model using Flex, and gives a gaming example.

We've already dicussed that to run a simulation purely programmatically with fine control, you need to create a class that extends repast.simphony.engine.environment.AbstractRunner and modify to suit your needs. So calling REPAST from Flex, you also need Java as a bridge. Here we use a webservice as this bridge. It's similar to Flex with REPAST.

JavaFX interacting with a Repast simulation model

1. Introduction

This article mainly introduces the steps on how to interact with a REPAST Simphony model using JavaFX, and gives a gaming example.

We've already dicussed that to run a simulation purely programmatically with fine control, you need to create a class that extends repast.simphony.engine.environment.AbstractRunner and modify to suit your needs. So calling REPAST from JavaFX, you also need Java as a bridge. Here we use a webservice as this bridge.

Programmatic Interaction with a Repast simulation model

1. Introduction

This article mainly introduces the steps on how to interact with a REPAST Simphony model, and gives a gaming example.

To run a simulation purely programmatically with fine control, you need to create a class that extends repast.simphony.engine.environment.AbstractRunner and modify to suit your needs. The runner class can then be used to initialize, step, run, pause, stop and reset the model. This approach uses components from the GUI which is totally user driven and the Batch run which is completely self-contained with no user-interaction.

Cloud Based Monte Carlo Simulations (of Repast models)

1 Introduction

As we have already introduced, Parameter sweep application is a class of application in which the same code is run multiple times using unique sets of input parameter values. This includes varying one parameter over a range of values or varying multiple parameters over a large multidimensional space. Examples of parameter sweep applications are Monte Carlo simulations or parameter space searches.

In this paper, we present a distributed implementation of a network based Monte Carlo Simulation application by using Offspring on Enterprise Clouds.

Cloud Based Parameter Sweeping of a Repast Simulation Model - Batch Mode

1 Introduction

We have already introduced how to use Aneka Design Explorer GUI for Repast Simphony Parameter Sweeping Application Model. It creates each parameter sweeping run as a task, and distributes them to several slave nodes, then gets all the results back in one master node. However, sometimes users may prefer to use batch mode Design Explorer since they maybe have more complicated computing and wish the application running background.

Synchronizing Two Model Using Ptolemy II

1. Introduction

We have two models written in different programming language, here we use the Ptolemy II to integrate the two models, and control the synchronous running between them.

2. Add model file

Copy the source code of the Repast Simphony model to the Ptolemy II root directory

Copy the source code of the python model to Ptolemy II root directory.(The python source code importing problem you can read the “Adding External JARS to Ptolemy II Environment” doc)

3. Create interaction model

Adding External JARs to Ptolemy II Environment

1. Introduction

We want to use the Ptolemy II to integrate two models (one is Repast S model written in java, the other is python model written in python), and control these two models running synchronously.

2. Integration Issues

Invoking Repast Simphony Model in a Java Application

1. Introduction

The simulation model created in the Repast Simphony just can be built as an jar file. You should install it, and start it from a bat file. We can’t directly control the step running of the model, and can’t get the property information of the model directly. Here we introduce how to create a java application, and in this application invoke the Repast Simphony Model, control its step running, get properties and set properties.

2. Problems in invoking Repast S model in another Java Application

Latest image

Syndicate content