Getting Started with FLAME
83
if(position > 600.0) {
newPosition = position - (position - 390) + 20;
}
return newPosition;
}
4.7.5 0.xml File
The 0.xml file represents the starting state of the model, which is the
starting memory value of agents at initialization stage. The example shows
that the model starts with two foxes and two rabbits. These values are updated
as the simulation progresses, producing more iteration files. These successive
iteration files contain updated memory values of agents mainly their X and Y
positions (Figure 4.5).
FIGURE 4.5: Iteration files with updated agent memory results.


0

Fox
20
29.113054
8.329377


Fox
20
83.390059
29.294528


Rabbit
1
65.316155
Précédent

- 112/329

Suivant