Extending Wolf Sheep example to include PropertyLayer #2578
Replies: 1 comment
-
Yes, I think this would be quite interesting. Especially if soil fertility is some spatial distribution + some noise.
Yes, we would lookup the grass_regrowth_time directly from the PropertyLayer. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
This discussion is a follow-up of @EwoutH 's comment on my pull request . Sorry for the late response.
Before implementing anything, I would like to confirm if my understanding of the "soil fertility" idea is correct. Currently the
countdown
andgrass_regrowth_time
attribute inGrassPatch
class are used to schedule initial grass growth and grass growth after the grass was eaten, which is shown here at the code.And what I understand at the moment is: this "soil fertility" idea is basically just moving
countdown
and/orgrass_regrowth_time
values to aPropertyLayer
which @EwoutH referred here as the "soil layer"? Is my understanding correct?If that is correct, then after the soil
PropertyLayer
is introduced -- does this mean that each cell can have differentgrass_regrowth_time
?For example,
grass_regrowth_time
of cell at (1,2) can be different fromgrass_regrowth_time
of cell (1,3) depending on what is stored at the 'soil layer'PropertyLayer
.Also what I understand is: currently all grass cells have the same (only one)
grass_regrowth_time
, which is shown here in theGrassPatch
constructor.Please let me know what you think, thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions