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

Get Parent of Referable #213

Open
FrankSchnicke opened this issue Nov 23, 2023 · 1 comment
Open

Get Parent of Referable #213

FrankSchnicke opened this issue Nov 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@FrankSchnicke
Copy link
Contributor

As suggested in #29, getting the parent of a Referable would be useful.

@arnoweiss
Copy link
Contributor

Not exactly sure how this could work - mostly because I don't know what Parent means. For example, I don't think that a AAS is the Parent of a Submodel since Submodels aren't included in AASs but referred to from an AAS. Either way, such a function would always require the full Environment to know where to search.

public Referable getParent(Referable referable, Environment env)

Additionally (and perhaps out of scope here) - I think I'd be particularly useful to get the Submodel for a SME. That's something different since an SMEs parent could always be a SMEC, SMEL, Entity or AnnotatedRelationshipElement. So the signature would could like this:

public Identifiable getIdentifiableRoot(Referable referable, Environment env)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants