Ferramentas do usuário

Ferramentas do site


geopro:pedro:starlogo

Diferenças

Aqui você vê as diferenças entre duas revisões dessa página.

Link para esta página de comparações

Ambos lados da revisão anteriorRevisão anterior
Próxima revisão
Revisão anterior
geopro:pedro:starlogo [2007/07/07 01:51] pedrogeopro:pedro:starlogo [2007/07/15 16:23] (atual) pedro
Linha 2: Linha 2:
  
 //StarLogo is a programmable modeling environment for exploring the workings of decentralized systems -- systems that are organized without an organizer, coordinated without a coordinator.// //StarLogo is a programmable modeling environment for exploring the workings of decentralized systems -- systems that are organized without an organizer, coordinated without a coordinator.//
- 
  
 \\ \\
 {{  http://leg.ufpr.br/~pedro/figures/turtlesgrid.gif?450}} {{  http://leg.ufpr.br/~pedro/figures/turtlesgrid.gif?450}}
- 
  
 ^**Homepage**  | http://education.mit.edu/starlogo/ | ^**Homepage**  | http://education.mit.edu/starlogo/ |
Linha 13: Linha 11:
 ^**Version**   | 2.21 | ^**Version**   | 2.21 |
 ^**License**   | Clearthought (open source) | ^**License**   | Clearthought (open source) |
-^**Language** own language |+^**Language** Extension of logo |
  
 \\ \\
  
-//StarLogo is a specialized version of the Logo programming language. With traditional versions of Logo, you can create drawings and+StarLogo is a specialized version of the Logo programming language. With traditional versions of Logo, you can create drawings and
  animations by giving commands to graphic "turtles" on the computer screen. StarLogo extends this idea by allowing you to control   animations by giving commands to graphic "turtles" on the computer screen. StarLogo extends this idea by allowing you to control 
 thousands of graphic turtles in parallel. In addition, StarLogo makes the turtles' world computationally active: you can write programs  thousands of graphic turtles in parallel. In addition, StarLogo makes the turtles' world computationally active: you can write programs 
 for thousands of "patches" that make up the turtles' environment. Turtles and patches can interact with one another - for example, you  for thousands of "patches" that make up the turtles' environment. Turtles and patches can interact with one another - for example, you 
 can program the turtles to "sniff" around the world, and change their behaviors based on what they sense in the patches below. StarLogo  can program the turtles to "sniff" around the world, and change their behaviors based on what they sense in the patches below. StarLogo 
-is particularly well-suited for Artificial Life projects.//+is particularly well-suited for Artificial Life projects.
  
 Presents a simple language and environment for modeling agents in the space. Fixed space and fixed neighbourhood. Presents a simple language and environment for modeling agents in the space. Fixed space and fixed neighbourhood.
Linha 36: Linha 34:
 {{http://leg.ufpr.br/~pedro/figures/starlogo-sugarscape3.gif?300}} {{http://leg.ufpr.br/~pedro/figures/starlogo-sugarscape3.gif?300}}
  
-Each model has turtles and a observer. The observer represents a control entity. It can execute functions like create new turtles or change the color of all of the patches.+Each model has turtles and a observer. Conceptually, patches are not turtles, but in terms of implementation they are turtles. 
 +The observer represents a control entity. It can execute functions like create new turtles or change the color of all of the patches.
 Turtles execute moving commands, change the environment and other turtles: Turtles execute moving commands, change the environment and other turtles:
  
Linha 51: Linha 50:
   to grow    to grow 
     if species = rabbit [stop]  ;rabbit turtles don't grow grass     if species = rabbit [stop]  ;rabbit turtles don't grow grass
-    rt random 10 lt random 10 +    ; [...]
-    fd 1+
     if pc-ahead = green [stamp green]   ;grass only grows near other grass     if pc-ahead = green [stamp green]   ;grass only grows near other grass
   end   end
Linha 58: Linha 56:
   to move    to move 
     if species = grass [stop]        ;grass turtles don't move     if species = grass [stop]        ;grass turtles don't move
-    takestep   +    rt random 50 
-    eat-grass +    lt random 50 
-    reproduce +    fd 1 
-    death+    setenergy energy - 0.25 
 +    ; [...]
   end   end
  
 One turtle can execute a command to change the cell it belongs. For example, it can change the color of the cell it belongs using  One turtle can execute a command to change the cell it belongs. For example, it can change the color of the cell it belongs using 
 the command "stamp", used by the function "grow" above. the command "stamp", used by the function "grow" above.
- 
  
geopro/pedro/starlogo.1183773097.txt.gz · Última modificação: 2007/07/07 01:51 por pedro