-
Notifications
You must be signed in to change notification settings - Fork 167
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
Extending the instances functionality #564
Comments
If I'm understanding correctly, then I would support the exact opposite idea. Namely, partitioning features of interest and reusing properties. I'll call these two approaches "Reuse FOI" and "Reuse Property." Here's a specific example articulated in both approaches: Reuse FOI
Reuse Property
Here are some reasons I support reusing the property:
|
I understand airbags are used only as an example here, but I wanted to mention that there are many airbags in a vehicle as well as many different types (steering wheel, front passenger, various curtains, seat airbags, etc.). It becomes complicated to provide a standard way to reference them. Hence, we may wish not to associate them with a seat like in the example herein, but instead provide an array of different airbags present in a vehicle. For such an approach, we would need to decide how best to represent instances of airbags... |
Concerning airbags, there have not been any discussion related to airbags during the time I have been active in COVESA, so I consider that part of VSS (as well as HVAC and some other areas) as quite immature and open for refactoring if needed. Maybe airbag is a good example where VSS shall not specify available instances like (Then we might need to have some "pre-defined" signals like |
Can we open a new discussion for airbags? I can change the example to headrests or whatever if that helps keep the conversation focused. |
Absolutely. However, how airbags (or any other instance node) may be represented could perhaps have an impact on instance functionality as discussed here. In the example:
What would happen is the instances were IDs as Erik mentioned? What would happen if the instances are names of locations instead of IDs:
We would end up with:
Would that make sense? |
Please bear in mind that I started this discussion several months ago. Back then, there was not yet a proposal on the table to include the concept of Now, let me update my opinion here. If a For example: Properties themselves can be reused as long as the same datatype and description hold True for the intended use. Regardless of the decision, I think of two possible improvements:
Then the context information can be kept in a separate way and will allow multiple ways of classifying the concepts: |
@ppb2020 SomeFeature.SomeProperty resolves that...Cabin.DriverSeat.IsDeployed |
@alanmapleburl-au how should I interpret your 😆 emoji on my latest comment? I think either agreement 👍🏻 or disagreement 👎🏻 with arguments would help Us more to find a common consensus. |
@jdacoello Oh, I thought you were agreeing with me :^) |
I agree with this pattern However, my comment (updated opinion) included a couple more aspects. That is why I didn't know how to interpret that. So, I rather asked. |
As far as I know, the
Instances:
field in VSS is meant to be applied to branches only. However, this in not practical when there will be only one property of interest deriving from that branch (i.e., each branch will have only one leaf). Consider the following case:When each of the instances of the branch will have only one
propertyOfInterest
, it makes more sense to instantiate thepropertyOfInterest
instead of the branch. The previous example would result in something like:The text was updated successfully, but these errors were encountered: