mirror of
https://github.com/gama-platform/gama.git
synced 2026-07-09 18:21:00 +00:00
Page:
CodeExamples
Pages
3D_Graph
3D_shapefile_loading
ASCII_File_to_DEM_Representation
Accessing_Fields
Agent_Based_Clustering
AnalysingCodePerformance
Anisotropic_Diffusion_Simple_Field
AntsForaging.gaml
AntsForaging
Boids_3D_Motion
CallingR
Casting_Images
Changelog
City_Evacuation
CleaningGISData
CodeExamples
Community
Computation_of_the_shortest_path_on_a_Grid_of_Cells
ContinuousFieldofVision.gaml
ContinuousMove
Contour_Lines_Import
CreatingAReleaseOfGama
Creating_color_and_sort_cubes_by_color
DEM_Generator
DXF_to_Agents_Model
Developing Plugins
DifferentialEquations
Directed_Graph_Model
Drive_Random
ESRI_ASCII_to_grid_model
Ensure model reproducibility
Eroding_Volcano
Exhaustive list of GAMA Keywords
FallingObjects
Flow_on_Terrain
GEOJSON_File_Loading
G__BlankPage
G__GraphicalEditor
G__GraphicalEditorTutorial
GamlReferences
GetGamaDevCodeUsingEclipsePlugin
Graph_Generation
Graph_Generation_using_Agents
Headless mode for dummies
HeadlessBatch
HeadlessLegacy
HeadlessServer
HeadlessTutorial
Home
HydrologicaModel
Image_Manipulation
Image_Vectorisation
Index
InstallingDevVersion
Introduction To Gama Java API
K_Nearest_Neighbors
Life
MODAVI
MondrianCity
Movement_of_an_agent_on_different_paths
Movement_on_a_Graph_created_by_Polygons
Movement_on_a_Grid_of_Cells
Movement_on_a_Grid_of_Cells_
Moving3D
Moving_3D_Object
NetlogoTrafficmodel2
ODE_LotkaVolterra
OSM_file_to_Agents
Pedagogical Materials
PlayPool
PreviousConferences
Resources_TrainingVideos
RunningHeadless
SIRAnalysis
SIRAnalysis_step1
SIRAnalysis_step2
SIRAnalysis_step3
SIRAnalysis_step4
SIRAnalysis_step5
SIRAnalysis_step6
SIRAnalysis_step7
SIR_Split_in_Agents_Multiple_Strains
Save and restore simulations
Segregation_Agents
Series
Shapefile_to_Agents
Simple_Intersection
Simple_Traffic_Model
Soccer_Game
SpatialGraph3d
Stochastic_Differential_Equations
Strahler
Sugarscape
Team
Traffic_and_Pollution
TreesAndSeasons
UserResources
Using extensions
UsingGamaFlags
Wander
Waterflowgridelevation
Writing_Tests
comparison_ABM_EBM_SIR
developingGAMA
generate_pedestrian_paths
pedestrian_complex_environment
pedestrian_simple_environment
stairs
No results
1
CodeExamples
RoiArthurB edited this page 2024-02-22 19:17:53 +07:00
Table of Contents
- Code Examples
- Data
- Modelling
- Toy Models
- Ants (Foraging and Sorting)
- Art
- Boids
- Bubble Sort
- Epidemiology
- Evacuation
- Flood Simulation
- K Neareast Neighbours
- Learning
- Life
- Multi-level Data Analysis
- Predator Prey
- Segregation (Schelling)
- Soccer
- Sugarscape
- Traffic
- Waterflow
- Visualisation and User Interaction
- Plugin Models
Code Examples
This page references a number of code examples with a capture of it running in GAMA.
Data
Data Importation
- 3D shapefile loading.gaml, 1 experiment, 3D
- ASC File Import.gaml - ESRI ASCII to grid model, 1 experiment, 2D
- Contour Lines.gaml - Contour Lines Import, 1 experiment, 3D
- DXF File Import.gaml, 1 experiment, 2D
- GEOJSON File Import, 1 experiment, 3D
- Grid DEM.gaml - ASCII File to DEM Representation, 3 experiments, 3D
- Image Vectorisation.gaml, 1 experiment, 2D
- OSM File Import.gaml - OSM file to Agents, 2 experiments, 2D
- SHP Import.gaml - Shapefile to Agents, 1 experiment, 3D
Modelling
Spatial Topology
- Agent Movement
- Continuous Field of Vision.gaml, 1 experiment, 2D
- Follow Path.gaml - Movement of an agent on different paths, 1 experiment, 2D
- Goto Directed Graph.gaml - Directed Graph Model, 1 experiment, 2D
- Goto Grid.gaml - Movement on a Grid of Cells, 1 experiment, 2D
- Goto Grid Weights.gaml - Movement on a Grid of Cells, 1 experiment, 2D
- Goto Polygon.gaml, 1 experiment, 2D
- Moving3D.gaml, 5 experiments, 3D
- Wander on Graph, 1 experiment, 2D
- Fields
- Accessing Fields.gaml, 1 experiment, 3D
- Graphs
- 3D Graph - 3D_Graph, 2 experiments, 3D
- Classic Graph Generation.gaml - Graph Generation, 1 experiment, 2D
- Graph Building from Agents.gaml - Graph Generation using Agents, 1 experiment, 2D
- Strahler.gaml - Strahler, 1 experiment, 2D
- Grids
- Weighted Shortest Path on Grid.gaml, Computation of the shortest path on a Grid of Cells, 1 experiment, 2D
Toy Models
Ants (Foraging and Sorting)
- Ants Foraging.gaml, 3 experiments, 2D
Art
- Trees and Seasons, 3 experiments, 3D
- Mondrian City.gaml, 1 experiment, 2D
Boids
- Boids 3D Motion.gaml, 1 experiment, 3D
Bubble Sort
- Bubble Sort 3D.gaml, 1 experiment, 3D
Epidemiology
- SIR (ABM vs EBM).gaml, 1 experiment, 2D
Evacuation
- Continuous Move.gaml, 1 experiment, 3D
Flood Simulation
- Hydrological Model.gaml, 1 experiment, 3D
K Neareast Neighbours
- knn.gaml, 1 experiment, 2D
Learning
- Mas KMeans.gaml, 2 experiments, 2D, 3D
Life
- Life.gaml, 1 experiment, 2D
Multi-level Data Analysis
- Graph from Bug (Mirror Graph).gaml, 1 experiment, 3D
- MODAVI.gaml, 1 experiment, 2D
Predator Prey
- Lotka-Volterra (Influence of Integration Step).gaml, 1 experiment, 2D, Charts
Segregation (Schelling)
- Segregation (Agents).gaml, 1 experiment, 2D
Soccer
- Soccer.gaml, 1 experiment, 2D
Sugarscape
- Sugarscape.gaml, 1 experiment, 2D
Traffic
- Netlogo Traffic Model-2 Roads.gaml, 1 experiment, 2D
- Traffic and pollution.gaml, 1 experiment, 3D
Waterflow
- Waterflow Field Elevation.gaml, 1 experiment, 3D
Visualisation and User Interaction
Visualisation
- 3D Visualisation
- Moving 3D Object.gaml, 1 experiment, 3D
- Charts
- Series.gaml, 1 experiment, 2D, charts
- DEM Generator.gaml, 1 experiment, 3D
Plugin Models
BDI Architecture
- CityEscape_BDI_Emotions.gaml, 1 experiment, 2D
Diffusion Statement
- Anisotropic Diffusion (Simple, Field).gaml, 1 experiment, 3D
Driving Skill
- Advanced Models
- Drive Random.gaml, 2 experiments, 2D
- Simple Intersection.gaml, 1 experiment, 2D
- Simple model
- Simple Traffic Model, 1 experiment, 2D
Images
- Casting Images.gaml, 1 experiment, 2D, 3D
- Image Manipulation.gaml, 1 experiment, 2D
Ordinary Differential Equations
- Examples
- Stochastic Differential Equation.gaml, 1 experiment, 2D, charts
- For Advanced Users
- SIR (Split in Agents, Multiple Strains).gaml, 1 experiment, 2D, charts
Pedestrian Skill
- Complex environment-walk.gaml, 1 experiment, 2D
- Generate pedestrian paths.gaml, 1 experiment, 2D
- Simple environment-walk_to.gaml, 3 experiments, 2D
Physics Engine
- Eroding Volcano.gaml, 1 experiment, 3D
- Flow on Terrain.gaml, 1 experiment, 3D
- Hello World.gaml, 1 experiment, 3D
- Play Pool.gaml, 1 experiment, 3D
- Stairs.gaml, 1 experiment, 3D
Home
Platform
- Installation and Launching
- Workspace, Projects and Models
- Editing Models
- Running Experiments
- Running Headless
- Preferences
- Troubleshooting
Learn GAML step by step
- Introduction
- Manipulate basic Species
- Global Species
- Defining Advanced Species
- Defining GUI Experiment
- Exploring Models
- Optimizing Models
- Multi-Paradigm Modeling
Recipes
- Manipulate OSM Data
- Cleaning OSM Data
- Diffusion
- Using Database
- Using FIPA ACL
- Using BDI with BEN
- Using Driving Skill
- Manipulate dates
- Manipulate lights
- Using comodel
- Save and restore Simulations
- Using network
- Headless mode
- Using Headless
- Writing Unit Tests
- Ensure model's reproducibility
- Going further with extensions
GAML References
- Built-in Species
- Built-in Skills
- Built-in Architecture
- Statements
- Data Type
- File Type
- Expressions
- Exhaustive list of GAMA Keywords
Developing GAMA
- Installing the development version
- Developing Extensions
- Introduction to GAMA Java API
- Using GAMA flags
- Creating a release of GAMA
- Documentation generation