siemens / siemens/OOASP

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

Open
#8 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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:

  • The cv no_instance_for_attribute in ooasp_check.lp may be wrongly produced if attributes of the same name appear in two different classes.
  • There is a similar issue with the cv wrongtypeinassoc.
  • The calculation of association arities (predicate ooasp_arity in ooasp_arity.lp includes only the association name, but not the names of the involved class names, in the heads of rules.

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the affected rules in ooasp_check.lp and ooasp_arity.lp, then compare their counterparts in asp_interactive_configuration/DOC.md. Trace how same-named attributes and associations from different classes produce no_instance_for_attribute, wrongtypeinassoc, and ooasp_arity results. Done means the Interactive Configuration API supports these cases consistently across the implementation and documented snippets.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.