aas-core-works / aas-core-meta

Provide formalized meta-models for Asset Administration Shell (AAS).
Other
9 stars 3 forks source link

[V3.0] Implement missing constraint logic for AASd-117. #254

Closed s-heppner closed 1 year ago

s-heppner commented 1 year ago

This implements the missing invariant for AASd-117 namely, that any Referable that is not direct child of a Submodel_element_list must have its ID_short set. This fixes #253.

Since it is impossible to access an object's parent, we need to implement it in a creative way. Therefore, we add the invariant to every Referable object that it can apply to:

Note that the logic already existed for most objects, but there was no reference to the constraint

mristin commented 1 year ago

@s-heppner thanks! We also need to add assertion test for that logic to make sure we didn't miss anything.

s-heppner commented 1 year ago

Someone please check the docstring of ID_short_type. Something was very wrong with the docstring references and I got a ton of errors

mristin commented 1 year ago

Superseded by #256.