Address some CellManager FAQs
This issue is to collect frequently asked questions regarding the CellManager
and add them to the documentation.
Questions to address
As @JulianWeninger wrote here:
There were some a bit confusing points during implementation:
The
CellManager
by default wants to get a cfgcell_params
from which to initialize the cell's state. Coming from the pure CA world, the intuition of R204 was to call aRuleFunc set_initial_state
instead of setting it in the constructor. Actually we came to the conclusion that in 3/3 cases (@nbaghumi, @lukassiebert, @JulianWeninger) the suggested approach was not possible, because theinitial_state
is dependent on e.g. thecell
s position, which is unknown to the Cell constructor (?). Eventually, I am in favor of the chosen approach, but we should have a look in the coming implementations which models actually use this. Then, this is a candidate for a FAQ.The cell has no longer information on its
position
orid
, which is now defined by theCellManager
. Probably also raising issues, because (at least in my mind) aCell
has a position on the grid. A quick look in the FAQ should give that one has to ask theCellManager
about this information. Here, one could also suggest that if the cell needs frequent access to information from thecm
(e.g. is_boundary()) the user should store this in the cellsState
.
(Collect more questions here)