GRASS logo

Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.

NAME

r.agent.rand - Agents wander around on the terrain, marking paths to new locations.

KEYWORDS

SYNOPSIS

r.agent.rand
r.agent.rand --help
r.agent.rand [-p] outputmap=string costmap=string rounds=integer [mark=integer] [maxagents=integer] [agentslife=integer] [agentfreedom=integer] [--help] [--verbose] [--quiet] [--ui]

Flags:

-p
Allow overwriting existing output maps
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

outputmap=string [required]
Name of step output map
costmap=string [required]
Name of penalty resp. cost raster map (note conversion checkbox)
rounds=integer [required]
Number of iterations/rounds to run
Options: 0-999999
Default: 999
mark=integer
Mark each step an agent takes
Options: 0-<max integer on system would make sense>
maxagents=integer
Maximum amount of agents that may live concurrently (x*y)
Options: 0-<the bigger the playground, the more space they have>
agentslife=integer
Time to live for an agent
Options: 0-<max integer on system would make sense>
agentfreedom=integer
Number of possible directions the ant can take (4 or 8)
Options: 4, 8

Table of contents

DESCRIPTION

This submodule - r.agent.rand - is nothing but an example of how the libagent library might be used to get a simple setup running. As the name suggests, r.agent.rand lets agents wander around just based on chance. You only need to define a single input map, just some raster map, that will be completly ignored, it is only used to set the frame for the agents to come.

SOURCE CODE

Available at: r.agent.rand source code (history)

Latest change: Mon Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55


Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 7.8.8dev Reference Manual