Agents in Social Science
97
TABLE 5.2: FLAME Sugarscape model.
Identify Agents
Citizen, Sugar
Agent memory
Citizen: id, sugars, x, y; Sugar: id, x, y
Agent functions
Citizen functions: Citizen posts location, Citizen look for sugar, Citizen eats sugar, Citizen updates its sugar count; Sugar functions:
Sugar posts location, Sugar checks it is eaten
or not
Messages
needed
for communications
Citizen location: Contains citizen id, x, y;
Sugar location: Contains sugar id, x, y; Eaten:
Contains citizen id, sugar id
L o o k f o r s u g a r
a r o u n d m e
P o s t l o c a t i o n
o f s u g a r s
I f f o u n d , e a t s u g a r
e l s e m o v e r a n d o m l y
I f s u g a r e a t e n ,
d i s a p p e a r f r o m l a n d s c a p e
C i t i z e n
S u g a r
( F o r a l l a g e n t s )
( I n t h e l a n d s c a p e )
D u r i n g o n e t i m e s t e p
S u g a r l o c a t i o n
m e s s a g e s
E a t m e s s a g e s
FIGURE 5.8: Timeline of the basic FLAME Sugarscape model.
Précédent

- 126/329

Suivant