aas-core-works / aas-core-meta

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

Incorrect implementation of invariant for `AASd-014` #259

Closed zrgt closed 1 year ago

zrgt commented 1 year ago

The text of Constraint: "Either the attribute global asset ID or " "specific asset ID must be set if entity type is set to 'SelfManagedEntity'. " "They are not existing otherwise."

The current implementation of invariant for AASd-014 is incorrect, it returns True if Entity.global_asset_ID is None and Entity.specific_asset_IDs is None but it does't check if Entity.entity_type is "SelfManagedEntity"