geopro:pedro:swarm
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
| Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
| geopro:pedro:swarm [2007/07/15 16:24] – pedro | geopro:pedro:swarm [2007/07/17 19:50] (atual) – pedro | ||
|---|---|---|---|
| Linha 171: | Linha 171: | ||
| * Object2dDisplay: | * Object2dDisplay: | ||
| * Int2dFiler: (deprecated) save the state of any Discrete2d: object (or a subclass thereof) to a specified file. | * Int2dFiler: (deprecated) save the state of any Discrete2d: object (or a subclass thereof) to a specified file. | ||
| + | |||
| + | |||
| ===== Examples available at swarm wiki===== | ===== Examples available at swarm wiki===== | ||
| Linha 240: | Linha 242: | ||
| instead of searching the whole cellular space. We would need functions such as " | instead of searching the whole cellular space. We would need functions such as " | ||
| some support to randomness. | some support to randomness. | ||
| + | |||
| + | |||
| + | The creation of a group of agents, by a Model Swarm. Note that the model creates and puts it in the world. | ||
| + | |||
| + | for(i = 0; i < 100; i++) | ||
| + | { | ||
| + | StupidBug* stupidBug = nil; | ||
| + | | ||
| + | stupidBug = [StupidBug create: modelZone]; | ||
| + | [stupidBug setWorld: world]; | ||
| + | [stupidBug setRandPosition]; | ||
| + | | ||
| + | [bugList addLast: stupidBug]; | ||
| + | } | ||
| + | |||
| + | __TerraME__: | ||
| + | this moment, each agent chooses his position/ | ||
| + | |||
| =====TODO===== | =====TODO===== | ||
geopro/pedro/swarm.1184516673.txt.gz · Última modificação: 2007/07/15 16:24 por pedro
