Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model.base: add item_id_{set,del}_hook to NamespaceSet #132

Merged

Conversation

jkhsjdhjs
Copy link
Contributor

These hooks allow dynamically assigning a value to the identifying
attribute of an object whenever it is added to a NamespaceSet
(item_id_set_hook). Furthermore, the item_id_del_hook allows
unsetting the identifying attribute whenever an object is removed
from a NamespaceSet.
This functionality is necessary for the implementation of
SubmodelElementLists, because there we need to store items without
an identifying attribute in a NamespaceSet.

This PR depends on #130.

@jkhsjdhjs jkhsjdhjs marked this pull request as draft October 2, 2023 17:48
@jkhsjdhjs jkhsjdhjs force-pushed the feature/namespaceset_id_hooks branch from 4c2bf75 to 0692acd Compare October 4, 2023 13:10
These hooks allow dynamically assigning a value to the identifying
attribute of an object whenever it is added to a `NamespaceSet`
(`item_id_set_hook`). Furthermore, the `item_id_del_hook` allows
unsetting the identifying attribute whenever an object is removed
from a `NamespaceSet`.
This functionality is necessary for the implementation of
`SubmodelElementLists`, because there we need to store items without
an identifying attribute in a `NamespaceSet`.
@jkhsjdhjs jkhsjdhjs force-pushed the feature/namespaceset_id_hooks branch from 0692acd to 3abec1a Compare October 7, 2023 15:38
@jkhsjdhjs jkhsjdhjs marked this pull request as ready for review October 7, 2023 15:38
@s-heppner
Copy link
Contributor

Looks good to me. Is this ready to be rebased?

@jkhsjdhjs
Copy link
Contributor Author

Yep 👍

@s-heppner s-heppner merged commit cb596a9 into eclipse-basyx:improve/V30 Oct 12, 2023
5 checks passed
@s-heppner s-heppner deleted the feature/namespaceset_id_hooks branch October 12, 2023 10:50
@s-heppner s-heppner added the v3.0 label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants