Skip to content

diagrams

Baptiste Lesquoy edited this page Nov 22, 2026 · 2 revisions

Diagrams

Choose a representation

Use inline Mermaid for simple diagrams whose meaning is mainly relationships, sequence, decisions or flow. Keeping the source in the page makes it easy to review and revise with the surrounding explanation. GitHub renders Mermaid in wiki pages from fenced code blocks.

Use screenshots for evidence of the running interface, and use an image or another format for maps, detailed scientific figures, or visuals that Mermaid cannot express clearly. Do not turn interface screenshots into diagrams or replace a complex figure with a dense Mermaid block.

Choose the Mermaid diagram type that matches the relationship being explained, such as flowchart for a process or sequenceDiagram for interactions over time. Keep each diagram focused on one concept, label nodes in user-facing language, and put technical detail in the surrounding prose rather than making the diagram crowded. Add a short sentence before or after it describing what the reader should notice.

Shared Mermaid appearance

Keep the same visual language across pages. For custom-colored diagrams, use the following shared Mermaid frontmatter. Keep the palette unchanged and include only the layout section for the diagram type. It sets the shared GAMA palette for flowcharts and sequence diagrams. Do not create page-specific palettes or decorative styles. Mermaid supports this frontmatter configuration with the base theme; see Mermaid theme configuration.

---
config:
  flowchart:
    wrappingWidth: 220
    nodeSpacing: 22
    rankSpacing: 28
    padding: 10
    diagramPadding: 8
  look: classic
  fontFamily: "system-ui, sans-serif"
  theme: base
  themeVariables:
    fontFamily: "system-ui, sans-serif"
    fontSize: "14px"
    primaryColor: "#dbeafe"
    primaryTextColor: "#172b4d"
    primaryBorderColor: "#2563a6"
    lineColor: "#526780"
    secondaryColor: "#dcfce7"
    secondaryTextColor: "#14532d"
    secondaryBorderColor: "#39805a"
    tertiaryColor: "#fff1cc"
    tertiaryTextColor: "#713f12"
    tertiaryBorderColor: "#a66b16"
    clusterBkg: "#f1f5f9"
    clusterBorder: "#94a3b8"
    edgeLabelBackground: "#ffffff"
    actorBkg: "#dbeafe"
    actorBorder: "#2563a6"
    actorTextColor: "#172b4d"
    actorLineColor: "#94a3b8"
    signalColor: "#526780"
    signalTextColor: "#172b4d"
    activationBkgColor: "#dcfce7"
    activationBorderColor: "#39805a"
---
flowchart LR
  model["Model"] --> experiment["Experiment"]
  experiment --> simulation["Simulation"]
Loading

Use the renderer's default appearance when the shared configuration is unsupported. Keep labels short and wrap long labels with <br/>. Use 14 px text, reduce spacing rather than shrinking text further, and prefer several focused diagrams to a single wide chart. Use blue for ordinary elements, green for results or concrete implementations, and amber for decisions or optional paths. Apply these roles consistently with classDef; do not add gradients, shadows or page-specific palettes. For sequence diagrams, use actorMargin: 24, width: 120, height: 40, boxMargin: 6, messageMargin: 24, mirrorActors: false and wrap: true. For class diagrams, use nodeSpacing: 24, rankSpacing: 32 and padding: 8. Use Mermaid's frontmatter configuration rather than deprecated directives when custom settings are needed.

Render and review

Check new or materially changed diagrams in the target GitHub wiki renderer. Confirm that the syntax renders, labels remain legible, connections communicate the intended direction, and the diagram fits the page at normal reading width. Check light and dark appearance if both are available. If parsing fails, verify the renderer's Mermaid version and supported syntax before changing the diagram or introducing a workaround. GitHub's diagram documentation describes an info diagram for checking the Mermaid version. Leave rendering unresolved when the target renderer cannot be checked.

  1. About GAMA
  2. What's new (Changelog)
  3. Migration Guide (2025-06 → 2026-11)
  1. Installation and Launching
    1. Installation
    2. Launching GAMA
    3. Updating GAMA
    4. Installing Plugins
  2. Workspace, Projects and Models
    1. Navigating in the Workspace
    2. Changing Workspace
    3. Importing Models
  3. Editing Models
    1. GAML Editor (Generalities)
    2. GAML Editor Tools
    3. Validation of Models
  4. Running Experiments
    1. Launching Experiments
    2. Experiments User interface
    3. Controls of experiments
    4. Parameters view
    5. Inspectors and monitors
    6. Displays
    7. Batch Specific UI
    8. Errors View
    9. Experiment agent: GAML controls and status
    10. Interactive console
  5. Running Headless
    1. Getting Started
    2. Headless Legacy
    3. Headless Batch
  6. Exporting models and projects
    1. Playable models (.gamx)
    2. Editable project archives (.gamp)
  7. Preferences
  8. gama platform agent
  9. Troubleshooting
  1. Introduction
    1. Start with GAML
    2. Organization of a Model
    3. Basic programming concepts in GAML
  2. Manipulate basic Species
  3. Global Species
    1. Regular Species
    2. Defining Actions and Behaviors
    3. Interaction between Agents
    4. Attaching Skills
    5. Inheritance
  4. Defining Advanced Species
    1. Grid Species
    2. Graph Species
    3. Mirror Species
    4. Multi-Level Architecture
  5. Defining GUI Experiment
    1. Defining Parameters
    2. Defining Displays Generalities
    3. Defining Charts
    4. Defining Monitors and Inspectors
    5. Defining Export files
    6. Defining User Interaction
  6. Classes and Objects
    1. Class Definition and Instantiation
    2. Attributes and Actions
    3. Inheritance
    4. Virtual Classes
    5. Advanced Features
  7. Exploring Models
    1. Run Several Simulations
    2. Batch Experiments
    3. Exploration Methods
  8. Optimizing Models
    1. Runtime Concepts
    2. Analyzing code performance
    3. Optimizing Models
  9. Multi-Paradigm Modeling
    1. Control Architecture
    2. Defining Differential Equations
  1. Manipulate OSM Data
  2. Cleaning OSM Data
  3. Diffusion
  4. Using Database
  5. Using Dataframes
  6. Using FIPA ACL
  7. Using BDI with BEN
  8. Using Driving Skill
  9. Manipulate dates
  10. Manipulate lights
  11. Using comodel
  12. Save and restore Simulations
  13. Using network
  14. Writing Unit Tests
  15. Ensure model's reproducibility
  16. Going further with extensions
    1. Calling R
    2. Using Graphical Editor
    3. Using Git from GAMA
  1. Built-in Species
  2. Built-in Skills
  3. Built-in Architecture
  4. Statements
  5. Data Type
  6. File Type
  7. Stats Extension
  8. Sound Extension
  9. BDI Extension
  10. FIPA Skill
  11. Expressions
    1. Literals
    2. Units and Constants
    3. Pseudo Variables
    4. Variables And Attributes
    5. Operators (Definition)
    6. Operators [A-A]
    7. Operators [B-C]
    8. Operators [D-H]
    9. Operators [I-M]
    10. Operators [N-R]
    11. Operators [S-Z]
  12. Exhaustive list of GAMA Keywords
  1. Installing the development version
  2. Introduction to GAMA Java API
    1. Architecture of GAMA
    2. IScope
  3. Developing Extensions
    1. Developing Plugins
    2. Developing Skills
    3. Developing Statements
    4. Developing Operators
    5. Developing Types
    6. Developing Species
    7. Developing Control Architectures
    8. Index of annotations
  4. Using GAMA flags
  5. Export plugin : Technical Documentation
  6. Creating a release of GAMA
  7. Documentation generation
  8. Desktop startup and deferred initialization

  1. Predator Prey
  2. Road Traffic
  3. Incremental Model
  4. Luneray's flu
  5. BDI Agents
  6. Forager RL
  7. SIR Analysis

  1. Team
  2. Projects using GAMA
  3. Scientific References
  4. Training Sessions

Resources

  1. Videos
  2. Conferences
  3. Pedagogical materials

Clone this wiki locally