Skip to main content
Version: 🚧 Alpha 🚧

Architecture of GAMA

GAMA is made of a number of Eclipse Java projects, some representing the core projects without which the platform cannot be run, others additional plugins adding functionalities or concepts to the platform.

Vocabulary: Each project is either designed as a plugin (containing an xml file plugin.xml) or as a feature (containing an xml file feature.xml).

  • A plugin can be seen as a module (or bundle in the OSGI architecture), which can be necessary (the GAMA platform can't run without it) or optional (providing new functionalities to the platform). This decomposition between several plugins ensures the cohesion between functional blocks, each plugin has to be as independent as possible.
  • A feature is a group of one or several modules (or plugins), which can be loaded. NB: Unlike a plugin, a feature does not include source code, but only metadata files such as build.properties and feature.xml.

To see how to create a plugin and a feature, please read this page.

The minimal configuration​

Here is the list of projects which have to be imported in order to run the GAMA platform, and to execute a simple model in GAML:

  • gama.core : Encapsulates the core of the modeling and simulation facilities offered by the platform: runtime, simulation, meta-model, data structures, simulation kernel, scheduling, etc. It contains the core runtime and many built-in GAML concepts.
  • gama.ui.application : Describes the graphical user interface entry point. The UI is now split into several plugins instead of being concentrated in a single monolithic UI bundle. The main UI-related plugins are:
    • gama.ui.shared
    • gama.ui.navigator
    • gama.ui.editor
    • gama.ui.viewers
    • gama.ui.experiment
    • gama.ui.display.java2d
    • gama.ui.display.opengl
  • gama.dependencies : Gathers all the external libraries upon which GAMA relies upon.
    • gaml.compiler : Contains the GAML compiler and language integration layer.
    • gama.ui.editor : Contains the current GAML Editor (syntax highlighting, code completion, editing support).
  • gama.annotations : Contains the annotations used in the Java source code to declare operators, statements, skills, species, types and documentation entries.
  • gama.processor : Is responsible for processing the annotations made in the Java source code and producing additions to GAML (Java, properties and documentation files), which are added into generated sources. These additions are loaded automatically when GAMA launches, allowing extensions made by developers in other plugins to be recognized when their plugin is added to the platform.
  • gama.headless : Enables running simulations in console mode, without the graphical user interface.
  • gama.library : Contains the distributed models, examples and tests shipped with GAMA.

Minimal configuration projects dependencies:

Minimal configuration projects dependencies

Optional Plugins​

Extension plugins present in the release version​

From this minimal configuration, it is possible to add some features. Here is the list of the extension plugins installed by default in the release version:

  • gama.extension.batch : Exploration and calibration methods for batch experiments
  • gama.extension.bdi : Architecture for using the Belief-Desire-Intention software model
  • gama.extension.database : Provides database manipulation tools, using SQL requests
  • gama.extension.fipa : Provides some operators for communication between agents, using the FIPA standards
  • gama.extension.image : Image type and image manipulation operators
  • gama.extension.maths : Solving differential equations, using Euler methods and Runge Kutta
  • gama.extension.network : Network communication between simulations and external programs
  • gama.extension.pedestrian : Skills for pedestrian movement modeling
  • gama.extension.physics : Physics engine, collision modelling
  • gama.extension.serialize : Serialization, save and restore of agents and simulations
  • gama.extension.sound : Use of sound in simulations
  • gama.extension.stats : Advanced statistics operators
  • gama.extension.traffic : Provides operators and skills for traffic simulation

The display back-ends are provided by dedicated UI plugins:

  • gama.ui.display.java2d : 2D visualization using Java2D
  • gama.ui.display.opengl : 3D visualization using OpenGL
  • gama.ui.display.opengl4 : The new 3D rendering engine based on the OpenGL 4.1 Core Profile (shader-based)

Community plugins not present in the release version​

Community-maintained plugins (R connector, Weka, Matlab, etc.) are developed in separate repositories, primarily under the gama-platform-plugin GitHub organization, and can be installed separately. See Using extensions.

Plugins not designated to be in the release version​

Other plugins will never be on the released version, and will never be loaded during the GAMA execution. They are just used in the developer version:

  • gama.documentation : Generates the documentation automatically in wiki form (and also a PDF file)
  • gama.dev : Development utilities (debugging, benchmarking helpers)

Features​

Below is the same section rewritten with the current feature names:

  • gama.feature.extension.sound : sound plugin
  • gama.feature.extension.stats : stats plugin
  • gama.feature.ui.experiment : gathers the experiment UI and display plugins (gama.ui.experiment, gama.ui.display.java2d, gama.ui.display.opengl)
  • simtools.graphlayout.feature : gathers core, dependencies, processor and graphanalysis plugins
  • gama.feature.core : gathers the core runtime plugins such as gama.core, gama.annotations, gama.processor, gaml.compiler, gama.headless, and the main base runtime modules
  • gama.feature.dependencies : a bundle of libraries and dependency plugins centered on gama.dependencies
  • gama.feature.extensions : gathers the main extension plugins such as database, fipa, maths, network, pedestrian, physics, serialize, stats and traffic
  • gama.feature.library : model library feature
  • idees.gama.features.weka : weka plugin
  • gama.product : gathers the current core, dependencies, library, UI and extension features

You may also want to mention the current UI-oriented features explicitly:

  • gama.feature.ui : gathers the base UI plugins (gama.ui.application, gama.ui.shared)
  • gama.feature.ui.dependencies : gathers the UI dependency layer
  • gama.feature.ui.editor : gathers the editor-oriented UI plugins (gama.ui.editor, gama.ui.navigator, gama.ui.viewers)
  • gama.feature.extension.image : image extension feature

Models​

Beside those plugins and features, a project dedicated to gather a bunch of examples is also in the git repository. It contains GAML code:

  • gama.library

Plugins overview​

Global architecture of GAMA (NB: the historical graph is kept below, but it reflects the older architecture and naming scheme, not the exact current gama.* / gama.feature.* structure)

Global architecture of GAMA