Nearest Within Steps With =/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(One intermediate revision by one other user not shown)
Line 16: Line 16:
==Sintaxis==
==Sintaxis==


<section begin=image/>[[File:Nearest Within Steps With Eq Es.png|right|alt=The Create Each Do Block|thumb]]<section end=image/>
[[File:Nearest Within Steps With Eq Es.png|right|alt=The Create Each Do Block|thumb]]


Entradas:
Entradas:
Line 23: Line 23:


<!-- <code> Mas cercano [Dropdown: Type of Agent](s) dentro de [Textbox: Number] pasos con [Dropdown: Type of Trait](s) = [Textbox: Text]</code> -->
<!-- <code> Mas cercano [Dropdown: Type of Agent](s) dentro de [Textbox: Number] pasos con [Dropdown: Type of Trait](s) = [Textbox: Text]</code> -->
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:nearest_within_steps_with_example.gif|alt=Nearest Within Steps With = example gif|thumb]]
[[File:nearest_within_steps_with_example.png|alt=Nearest Within Steps With = example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
This is a model of a grazing herd of hungry elephants.  In this model, there are two species of grass (blue and red).  The elephants prefer blue glass but do not mind red grass.  Because the elephants want to eat as much bue grass as possible, they walk toward the blue grass that is closest to them within their sensing radius (while eating red grass if they happen across it on the way).  Toward the end of the simulation, you can observe that there is plenty of leftover red grass.
</div>


<span id="Common_Uses"></span>
<span id="Common_Uses"></span>

Latest revision as of 19:53, 12 August 2023

Other languages:
Nearest within steps with =

[▼] más cerca a distancia [_] pasos con [▼] = [_] es un bloque de código parte de Detección cajón.

nearest [▼] within [_] steps with [▼] = [_] is a code block part of the Detection drawer.

Uso

contra [▼] en [_] pasos se utiliza para proporcionar el número de agentes de una raza seleccionada que existen dentro de un determinado step límite en Spaceland.

Sintaxis

The Create Each Do Block

Entradas:

  1. una raza del primer menú desplegable
  2. un número


Example

Nearest Within Steps With = example gif
Nearest Within Steps With = example code

This is a model of a grazing herd of hungry elephants. In this model, there are two species of grass (blue and red). The elephants prefer blue glass but do not mind red grass. Because the elephants want to eat as much bue grass as possible, they walk toward the blue grass that is closest to them within their sensing radius (while eating red grass if they happen across it on the way). Toward the end of the simulation, you can observe that there is plenty of leftover red grass.

Usos comunes

Para tener en cuenta

Bloques relacionados