Skip to content

Simple demo model using SpatialEntityAggregate in CORMAS

License

Notifications You must be signed in to change notification settings

cormas/demo-aggregates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Simple demo model using SpatialEntityAggregate in CORMAS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published