Simple demo model using SpatialEntityAggregate in CORMAS
Init with squareForest set 3 rectangles of forest:
There is 2 possible steps:
- each cell has a small probability of changing its state. Then each grove expands on 10% of its external cells. Finally, the aggregates are rebuilt
- each cell has a small probability of changing its state. Then each grove expands on 10% of its external cells. Finally, the existing aggregates are sorted from the biggest to the smallest, and each one updates its components: it may integrate the smaller ones in contact (merging) or be eaten by biggers. At the end, the scheduler checks for new groves that have been born not in contact to the previous ones
Here the central grove (yellow) has grown faster than the others and absorbed its neighbour (the red grove)