labs4capella / python4capella

Python for Capella
Eclipse Public License 2.0
52 stars 10 forks source link

CapellaModule.isSystem() should check that we are at the root of the architecture #136

Closed ylussaud closed 2 years ago

ylussaud commented 2 years ago

The test:

if (component.eContainer() instanceof ComponentPkg) {

Should also include a test on component.eContainer().eContainer().

mypsycho commented 2 years ago

component.eContainer().eContainer() must be a "Physical Archictecture".