admin-shell-io / questions-and-answers

This repository aims for providing answers to often asked questions in the context of the Asset Administration Shell.
https://admin-shell-io.github.io/questions-and-answers/
Creative Commons Attribution 4.0 International
24 stars 6 forks source link

How are enumerations mapped as values, e.g. of properties? #98

Closed foprs closed 10 months ago

foprs commented 1 year ago

The specification (up to version 3-0) does not contain any specification for this. One way could be to map enumerations via ConceptDescriptions? What is best practice here?

StenGruener commented 10 months ago

do you mean value ids?

image

Do you have an example here, s.t. we could understand the problem betteR?

foprs commented 10 months ago

In between AAS Spec. V3 has been released. Enumeration can be modeled by SubmodelElementLists now (5.3.7.17).

StenGruener commented 10 months ago

not sure if it fits, can you haven an example for us here?

foprs commented 10 months ago

I would like to model that a value of a property is restricted to defined options. For example property 'color' with allowed values 'red', 'green' or 'yellow'.

jh-isw commented 10 months ago

@foprs https://github.com/admin-shell-io/questions-and-answers#idgh77 should be the exact answer.