Skip to content

Commit f6bc2ba

Browse files
ZANDx1Leon Huang
andauthored
Add Role to AssetKind (#73)
With version 3.1.2, the `base.AssetKind` enumeration now has an additional `Role` value. See the [Spec-Changelog](https://industrialdigitaltwin.io/aas-specifications/IDTA-01001/v3.1.2/changelog.html#:~:text=AssetKind/Role,-New%20value%20in)). --------- Co-authored-by: Leon Huang <hleon@088-095.eduroam.rwth-aachen.de>
1 parent 97072fc commit f6bc2ba

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎sdk/basyx/aas/adapter/_generic.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2025 the Eclipse BaSyx Authors
1+
# Copyright (c) 2026 the Eclipse BaSyx Authors
22
#
33
# This program and the accompanying materials are made available under the terms of the MIT License, available in
44
# the LICENSE file of this project.
@@ -37,7 +37,8 @@
3737
ASSET_KIND: Dict[model.AssetKind, str] = {
3838
model.AssetKind.TYPE: 'Type',
3939
model.AssetKind.INSTANCE: 'Instance',
40-
model.AssetKind.NOT_APPLICABLE: 'NotApplicable'}
40+
model.AssetKind.NOT_APPLICABLE: 'NotApplicable',
41+
model.AssetKind.ROLE: 'Role'}
4142

4243
QUALIFIER_KIND: Dict[model.QualifierKind, str] = {
4344
model.QualifierKind.CONCEPT_QUALIFIER: 'ConceptQualifier',

‎sdk/basyx/aas/model/base.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ class AssetKind(Enum):
241241

242242
TYPE = 0
243243
INSTANCE = 1
244-
ROLE = 2
245-
NOT_APPLICABLE = 3
244+
NOT_APPLICABLE = 2
245+
ROLE = 3
246246

247247

248248
class QualifierKind(Enum):

0 commit comments

Comments
 (0)