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

Add more Utility/Convenience Functions #29

Closed
sebbader opened this issue Sep 15, 2022 · 5 comments
Closed

Add more Utility/Convenience Functions #29

sebbader opened this issue Sep 15, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@sebbader
Copy link

As stated e.g. in admin-shell-io/java-model#13, the creation process of AAS entities is still pretty cumbersome. We may can add more convenience functions into dataformat-core. Please make proposals.

@FrankSchnicke
Copy link
Contributor

FrankSchnicke commented Sep 15, 2022

From my perspective, the following features would be great:

  • A Submodel does only allow retrieval of SubmodelElements as List. It would be beneficial to enable retrieval by IdShort (and semanticId?).
  • Automatic reference resolution on an AASEnvironment, i.e.., providing a Reference and returning the referenced Referable (if included in the AASEnvironment).

@FrankSchnicke
Copy link
Contributor

A further topic I see as import is a sensible toString() method for the metamodel elements

@mjacoby
Copy link
Contributor

mjacoby commented Sep 16, 2022

  • Create Reference from Referable
  • Parse Reference from String
  • Get Parent of Referable (optional)
  • Deep cloning of elements (optional)

@twebermartins
Copy link
Contributor

see also #171

@FrankSchnicke
Copy link
Contributor

As discussed in the last PL/committer meeting, I will close this issue and create separate issues for the points for better traceability.

The following points were addressed in the meantime:

  • Create Reference from Referable
  • Parse Reference from String
  • Automatic reference resolution on an AASEnvironment, i.e.., providing a Reference and returning the referenced Referable (if included in the AASEnvironment).
  • Sensible toString() method

The following points have their own issues:

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Eclipse AAS4J Dev Nov 23, 2023
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: Done
Development

No branches or pull requests

4 participants