This is a follow-up question on this; regarding the error message as below:
Description: The code of method _createPersistentElementsBP5_xjal() is exceeding the 65535 bytes limit.
It basically says that the size of the code for the method _createPersistentElementsBP5_xjal()
has exceeded the maximum limit. By inspecting the Java code of the model, I see that my main agent is divided into six parts: _createPersistentElementsBP1_xjal()
, _createPersistentElementsBP2_xjal()
,..., _createPersistentElementsBP6_xjal()
.
And the one with number 5 has issues. However, I cannot find any defined logic on how these methods are separated (e.g., what elements to include in which method).
If you look at the top part of the screenshot, you will see that paths 5,6,7 belong to ...BP4_xjal()
. And then starts ...BP5_xjal()
(the problematic one) with intersections and a node called reversePoint4
. In fact, reversePoint4
and path5/6/7
all belong to the same network.
The question is: what is the basis for such method definitions in AnyLogic (e.g., which elements will belong to which method)? Is it done arbitrarily?