Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.02 KB

README.md

File metadata and controls

18 lines (15 loc) · 1.02 KB

Demo-aggregates

Simple demo model using SpatialEntityAggregate in CORMAS Init with squareForest set 3 rectangles of forest: init

There is 2 possible steps:

  • stepRebuild:

    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
  • stepMerge:

    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

merge

Here the central grove (yellow) has grown faster than the others and absorbed its neighbour (the red grove)