feat: instances relation - #545
Conversation
|
@sschleemilch |
Renamed option to |
Signed-off-by: Sebastian Schleemilch <sebastian.schleemilch@bmw.de>
e472300 to
9fb8065
Compare
|
With the new approach it should be possible (and supported) to create trees like Where This was not possible in the past. @sschleemilch : Can you please extend your tests to cover this also? |
|
@wiedmama done |
|
This is a clever solution, we can both eat the apple and keep it. |
Thank you for adding this but after a closer look to my example I have a question: So I think it should be removed to avoid confusion. |
Signed-off-by: Sebastian Schleemilch <sebastian.schleemilch@bmw.de>
e40938a to
4f4697e
Compare
Removed. Took your expected tree 1:1 |
|
Great progress during my vacation, I like it! Things to discuss in the next VSS meeting:
|
What default? The standard catalog is fine unless we think that some instances should actually be a sibling instead of child |
|
I could imagine doing it in multiple steps:
|
Yes, that is what I think we should discuss. Do we want to keep current tree as is or not. If we get new PRs with new instances - do we prefer old or new syntax. |
|
MoM:
|
Why should everything be switched to |
I had current implementation of doors in mind: where it is not possible to put something to the branch On the plus side, re-write them with On the minus side it will add maybe unused branches for e.g. |
|
Understood. This is of course fine as a follow up task. |
|
So basically targeting all instances with two or more dimensions to give downstream a chance to attach to them |
About
Proposed solution for COVESA/vehicle_signal_specification#919.
Implements the possibility to replace the node where the expanded instances will be attached to instead of attaching them as children.
Added a new literal keyword
instances_relationthat takes eithersiblingorchild. Default ischildand is the current behavior.Example
Which will produce:
Note that this enables to attach elements to all
RowXinstances (hereCount) but still have theDriverandPassengeras direct children of those instances.This was not possible before since you would need a node in between to do it:
Which results in:
See that the sides can only be attached to the
Sidechild of allRowXinstances.