Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit makes
Operation
inherit fromUniqueIdShortNamespace
, to implement Constraint AASd-134:For an Operation, the idShort of all inputVariable/value, outputVariable/value, and inoutputVariable/value shall be unique.
In the DotAAS spec, the attributes
inputVariable
,outputVariable
andinoutputVariable
ofOperation
are defined to be a collection ofOperationVariable
instances, which themselves just contain a singleSubmodelElement
. Thus, theOperationVariable
isn't really required forOperation
, as theOperation
can just contain theSubmodelElements
directly, without an unnecessary wrapper. This makesOperation
less tedious to use and also allows us to use normalNamespaceSets
for the 3 attributes, which together with theUniqueIdShortNamespace
ensure, that theidShort
of all containedSubmodelElements
is unique across all 3 attributes.Aside this, the examples are updated since
SubmodelElements
as children of anOperation
are now linked to the parent. This prevents us from reusing otherSubmodelElements
asOperationVariables
as it was done previously, since eachSubmodelElement
can only have one parent.Fix #146 #148