README.md 2.4 KB
Newer Older
ThibautDemare's avatar
ThibautDemare committed
1
# Presentation
Thibaut Démare's avatar
Thibaut Démare committed
2

ThibautDemare's avatar
ThibautDemare committed
3
This is the repository of the DALSim project (Dynamic Graphs and Agents for Logistics Simulations).
4

ThibautDemare's avatar
ThibautDemare committed
5
You can find a wiki (in french) here: [https://git.litislab.fr/tdemare/DALSim/wikis/home](https://git.litislab.fr/tdemare/DALSim/wikis/home)
6

ThibautDemare's avatar
ThibautDemare committed
7
# Install
8

ThibautDemare's avatar
ThibautDemare committed
9 10 11 12 13 14 15
## Stable version

In order to execute the simulation of this model, you need a special build of the [GAMA Platform](https://gama-platform.github.io/) which includes the plugins developed in parallel of this work.

You can find the release of the GAMA Platform here (and choose the last one):

[https://git.litislab.fr/tdemare/DALSim/tags/](https://git.litislab.fr/tdemare/DALSim/tags/)
16 17 18 19 20 21 22

Once you started the platform, you just need to import this repository as a project. 

Then, you can execute a simulation !

If you need to use the developer version, you must follow these instructions:

ThibautDemare's avatar
ThibautDemare committed
23
## Developper version
24 25

The first step consists to instal the "Git" version of GAMA following this tutorial:
ThibautDemare's avatar
ThibautDemare committed
26

27 28 29
- https://github.com/gama-platform/gama/wiki/InstallingGitVersion

Then, you need to download the following repositories and to import them into Eclipse as projects:
ThibautDemare's avatar
ThibautDemare committed
30

31 32 33 34 35
- https://github.com/graphstream/gs-gama
- https://git.litislab.fr/tdemare/TransportOrganizerPlugin
- https://git.litislab.fr/tdemare/MovingOnNetworkPlugin
- https://git.litislab.fr/tdemare/AnalyseNetworkPlugin

ThibautDemare's avatar
ThibautDemare committed
36 37
These four plugins are configured to work with the Graphstream library (version 1.3). So you need to add the library to these plugins. To do so, download "gs-core" and gs-algo" here:

38 39 40 41 42 43
- https://data.graphstream-project.org/pub/1.x/nightly-build/last/gs-algo-1.3-SNAPSHOT-last.jar
- https://data.graphstream-project.org/pub/1.x/nightly-build/last/gs-core-1.3-SNAPSHOT-last.jar

Then, in Eclipse, for each plugin, do a right click on a project (the project containing the source code and not the feature), then go in properties > Java Build Path > Libraries > Add External Jars > select both gs-core and gs-algo  > Apply and Close.

After that, you need to include the plugins to GAMA following the section Addition of a feature to the product" of this tutorial:
44

ThibautDemare's avatar
ThibautDemare committed
45
- https://github.com/gama-platform/gama/wiki/DevelopingPlugins
46

ThibautDemare's avatar
ThibautDemare committed
47
At this point, you are able to start GAMA (according to the method described here: https://github.com/gama-platform/gama/wiki/InstallingGitVersion) which will ask you to choose a workspace. Once started, you can import to your workspace the GAMA model of this current repository.