Community
Participate
Working Groups
To support model libraries the generator model should add all ROOM classes to the respective lists of used classes. The library case is defined by no SubSystemClass available in the models on the main path (the path where the first model resides)
done with e945190e5e65b1f9da20e903de90ba61ec872e70
If the creation of the generator model is driven by a modeling workflow (mwe) then it must be dealt with the fact that the standard Reader collects all models found on the classpath. A typical situation is that the eTrice modellib with its timing and socket services including SubSystemClasses for test purposes is also passed in the list of models. Therefore the first model is assumed as main model and only those models that reside in the same path are searched for SubSystemClasses. If the main model has no eResource (would be the case for an in-memory model) then all models with no eResource are considered. For convenience the Root class has a new method isLibrary() which can be used by the code generator.
It makes sense that in the non-library case also only SubSystemClasses found on the main model path are considered. This is implemented with f1d10eb7125e89ba2e0de209c8fd17b4ce8ec72a
closed resolved bug
tagged as version 0.1.0