-
Notifications
You must be signed in to change notification settings - Fork 99
BuiltInSpecies
As described in the presentation of GAML, the species hierarchy derives from a single built-in species called agent
. All its components (attributes, actions) will then be inherited by all direct or indirect children species (including model
and experiment
), with the exception of species that explicitly mention use_minimal_agents: true
as a facet, which inherit from a stripped-down version of agent
.
agent
defines several attributes, which form the minimal set of knowledge any agent will have in a model.
*
+++++
It is possible to use in the models a set of built-in agents. These agents allow to directly use some advance features like clustering, multi-criteria analysis, etc. The creation of these agents are similar as for other kinds of agents:
create species: my_built_in_agent returns: the_agent;
So, for instance, to be able to use clustering techniques in the model:
create cluster_builder returns: clusterer;
agent, AgentDB, base_edge, experiment, graph_edge, graph_node, physical_world,
-
host
(-29
): Returns the agent that hosts the population of the receiver agent -
location
(point
): Returns the location of the agent -
name
(string
): Returns the name of the agent (not necessarily unique in its population) -
peers
(list
): Returns the population of agents of the same species, in the same host, minus the receiver agent -
shape
(geometry
): Returns the shape of the receiver agent
- returns: unknown
- returns: unknown
-
agents
(list
): Returns the list of agents for the population(s) of which the receiver agent is a direct or undirect host -
members
(list
): Returns the list of agents for the population(s) of which the receiver agent is a direct host
- returns: unknown
- returns: unknown
-
params
(map): Connection parameters
- returns: int
-
updateComm
(string): SQL commands such as Create, Update, Delete, Drop with question mark -
values
(list): List of values that are used to replace question mark
- returns: unknown
- returns: int
-
into
(string): Table name -
columns
(list): List of column name of table -
values
(list): List of values that are used to insert into table. Columns and values must have same size
- returns: bool
- returns: list
-
select
(string): select string -
values
(list): List of values that are used to replace question marks
- returns: unknown
-
params
(map): Connection parameters
- returns: bool
-
params
(map): Connection parameters
- returns: float
-
source
(agent
): The source agent of this edge -
target
(agent
): The target agent of this edge
Experiments that declare a graphical user interface
-
minimum_cycle_duration
(float
): The minimum duration (in seconds) a simulation cycle should last. Default is 0. Units can be used to pass values smaller than a second (for instance '10 °msec') -
model_path
(string
): Contains the absolute path to the folder in which the current model is located -
project_path
(string
): Contains the absolute path to the project in which the current model is located -
rng
(string
): The random number generator to use for this simulation. Three different ones are at the disposal of the modeler: mersenne represents the default generator, based on the Mersenne-Twister algorithm. Very reliable; cellular is a cellular automaton based generator that should be a bit faster, but less reliable; and java invokes the standard Java generator -
rng_usage
(int
): Returns the number of times the random number generator of the experiment has been drawn -
seed
(float
): The seed of the random number generator -
simulation
(-27
): contains a reference to the current simulation being run by this experiment -
simulations
(list
): contains the list of currently running simulations -
warnings
(boolean
): The value of the preference 'Consider warnings as errors' -
workspace_path
(string
): Contains the absolute path to the workspace of GAMA
Forces a 'garbage collect' of the unused objects in GAMA
- returns: unknown
Forces all outputs to refresh, optionally recomputing their values
- returns: unknown
-
recompute
(boolean): Whether or not to force the outputs to make a computation step
-
source
(agent
): The source agent of this edge -
target
(agent
): The target agent of this edge
-
my_graph
(graph
): A reference to the graph containing the agent
This operator should never be called
- returns: bool
-
other
(agent): The other agent
The base species for agents that act as a 3D physical world
-
agents
(list
): The list of agents registered in this physical world -
gravity
(float
): Define if the value for the gravity -
use_gravity
(boolean
): Define if the physical world has a gravity or not
- returns: unknown
-
step
(float): allows to define the time step considered for the physical world agent. If not defined, the physical world agent will use the step global variable.
The 'model' built-in species (Under Construction)
As described in the presentation of GAML, any model in GAMA is a species (introduced by the keyword global
) which directly inherits from an abstract species called model
. This abstract species (sub-species of agent
) defines several attributes and actions that can then be used in any global section of any model.
model
defines several attributes, which, in addition to the attributes inherited from agent
, form the minimal set of knowledge a model can manipulate.
*
As described in the presentation of GAML, any experiment attached to a model is a species (introduced by the keyword experiment
which directly or indirectly inherits from an abstract species called experiment
itself. This abstract species (sub-species of agent
) defines several attributes and actions that can then be used in any experiment.
experiment
defines several attributes, which, in addition to the attributes inherited from agent
, form the minimal set of knowledge any experiment will have access to.
- 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