x
Contents
3 Designing X-Agents Using FLAME
43
3.1 FLAME and Its X-Machine Methodology . . . . . . . . . . .
44
3.1.1 Transition Functions . . . . . . . . . . . . . . . . . . .
47
3.1.2 Memory and States . . . . . . . . . . . . . . . . . . .
47
3.2 Using Agile Methods to Design Agents . . . . . . . . . . . .
48
3.2.1 Extension to Extreme Programming . . . . . . . . . .
51
3.3 Overview: FLAME Version 1.0 . . . . . . . . . . . . . . . . .
51
3.4 Libmboard (FLAME message board library) . . . . . . . . .
54
3.4.1 Compiling and Installing Libmboard . . . . . . . . . .
55
3.4.2 FLAME’s Synchronization Points . . . . . . . . . . . .
57
3.5 FLAME’s Missing Functionality . . . . . . . . . . . . . . . .
58
4 Getting Started with FLAME
61
4.1 Setting Up FLAME . . . . . . . . . . . . . . . . . . . . . . .
62
4.1.1 MinGW . . . . . . . . . . . . . . . . . . . . . . . . . .
63
4.1.2 GDB GNU Debugger . . . . . . . . . . . . . . . . . .
63
4.1.3 Dotty as an Extra Installation . . . . . . . . . . . . .
64
4.2 Messaging Library: Libmboard . . . . . . . . . . . . . . . . .
64
4.3 How to Run a Model? . . . . . . . . . . . . . . . . . . . . . .
65
4.4 Implementation Details . . . . . . . . . . . . . . . . . . . . .
65
4.5 Using Grids . . . . . . . . . . . . . . . . . . . . . . . . . . .
68
4.6 Integrating with More Libraries . . . . . . . . . . . . . . . .
69
4.7 Writing a Model - Fox and Rabbit Predator Model . . . . .
71
4.7.1 Adding Complexity to Models . . . . . . . . . . . . .
72
4.7.2 XML Model Description File . . . . . . . . . . . . . .
72
4.7.3 C Function . . . . . . . . . . . . . . . . . . . . . . . .
76
4.7.4 Additional Files . . . . . . . . . . . . . . . . . . . . .
81
4.7.5 0.xml File . . . . . . . . . . . . . . . . . . . . . . . . .
83
4.8 Enhancing the Environment . . . . . . . . . . . . . . . . . .
84
4.8.1 Constant Variables . . . . . . . . . . . . . . . . . . . .
84
4.8.2 Time Rules . . . . . . . . . . . . . . . . . . . . . . . .
84
5 Agents in Social Science
87
5.1 Sugarscape Model . . . . . . . . . . . . . . . . . . . . . . . .
92
5.1.1 Evolution from Bottom-Up . . . . . . . . . . . . . . .
93
5.1.2 Distribution of Wealth . . . . . . . . . . . . . . . . . .
94
5.1.3 Location Is Important! . . . . . . . . . . . . . . . . . .
95
5.1.4 Find Agents around Me . . . . . . . . . . . . . . . . . 104
5.1.5 Handle Multiple ‘Eaten’ Requests . . . . . . . . . . . 105
5.1.6 Change Starting Conditions . . . . . . . . . . . . . . . 105
5.2 Modeling Social Networks . . . . . . . . . . . . . . . . . . . . 107
5.2.1 Set Up a Recurring Function . . . . . . . . . . . . . . 112
Précédent

- 11/329

Suivant