-
Notifications
You must be signed in to change notification settings - Fork 99
RoadTrafficModel_step2
RoiArthurB edited this page Sep 11, 2023
·
8 revisions
This second step illustrates how to obtain a random point inside a geometry. We will also define some moving agent called people
.
- Define a new species of agents: the
people
agents. Thepeople
agents have a point for geometry and are represented by a yellow circle of radius 10m. - At initialization, 100
people
agents are created. Eachpeople
agent is placed inside a building of type 'Residential' (randomly selected).
We define a new species of agents: the people agents. In this model, these agents will not have a specific behavior yet. They will be just displayed. Thus, we just have to define an aspect for the agents. We want to represent the people
agents by a yellow circle of radius 10m. We then use the circle
operator to define the shape to draw in the draw
command, with the expected inner color (facet color
) and border color (facet border
).
https://github.com/gama-platform/gama/blob/GAMA_1.9.2/msi.gama.models/models/Tutorials/Road%20Traffic/models/Model%2002.gaml
- Installation and Launching
- Workspace, Projects and Models
- Editing Models
- Running Experiments
- Running Headless
- Preferences
- Troubleshooting
- Introduction
- Manipulate basic Species
- Global Species
- Defining Advanced Species
- Defining GUI Experiment
- Exploring Models
- Optimizing Model Section
- Multi-Paradigm Modeling
- Manipulate 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
- Built-in Species
- Built-in Skills
- Built-in Architecture
- Statements
- Data Type
- File Type
- Expressions
- Exhaustive list of GAMA Keywords
- Installing the GIT version
- Developing Extensions
- Introduction to GAMA Java API
- Using GAMA flags
- Creating a release of GAMA
- Documentation generation