siemens / OOASP

MIT License
7 stars 0 forks source link

Support multiple attributes/associations of the same name in Interactive Configuration API #8

Open rtaupe opened 1 year ago

rtaupe commented 1 year ago

In the Interactive Configuration API, there are several reasons why multiple attributes or associations of the same name but in different classes are not supported.

A (not necessarily exhaustive) list of these reasons:

Attention: Many of these ASP snippets also occur in asp_interactive_configuration/DOC.md!

gschennersie commented 1 year ago

In OOASP it is assumed (but not checked) that the "name" of an attribute/association is actual an unique id within the knowledge base i.e. "frame_position" instead just "position". This way attribute/association/names are unambigous. Otherwise we would have to add an additional class parameter to every attribute and 2 class parameters to every association. Also association names denote the whole association/relation e.g. "frame_modules" and not the role of an association (as typically used in an object oriented setting). Roles are not modelled in OOASP.