Skip to content

Commit

Permalink
Add documentation for delete argument
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Jaegervall <[email protected]>
  • Loading branch information
erikbosch committed Aug 1, 2024
1 parent 58fa466 commit 3f78753
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docs-gen/content/rule_set/overlay.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ In order to adopt the specification we realize that certain additions and modifi

The following features with the intended usage patterns are currently supported:
1. **Adding new nodes:** By adding nodes the standard catalog can be extended with proprietary concepts.
1. **Deleting nodes:** Deleting nodes not relevant for the vehicle.
1. **Changing the value of existing metadata:** The standard catalog defines metadata based on what is assumed to be an average vehicle.
Configurations may differ slightly (e.g. the instantiation of number of available seats), or special situations that require a (limited) modification of existing metadata.
1. **Adding new key/value pairs as additional metadata:**
Expand Down Expand Up @@ -114,6 +115,39 @@ Vehicle.Occupant.Row1.DriverSide.HeadPosition.Yaw:
unit: mm
```
### Deleting nodes
It is possible to delete nodes using the `delete` atrribute.
You can delete indidvidual signals, branches, instances or a particular signal in a particular instance.
A few examples are shown below.

```YAML
# Removing IsChildLockActive for DriverSide on Second Row
Vehicle.Cabin.Door.Row2.DriverSide.IsChildLockActive:
datatype: boolean
type: sensor
delete: true
# Removing Window for all Door instances
Vehicle.Cabin.Door.Window:
delete: true
# Removing Vehicle.Speed
Vehicle.Speed:
delete: true
```

When using the `delete` argument vss-tools will print information on nodes removed.

```bash
INFO Node Vehicle.Speed will be deleted.
INFO Node Vehicle.Cabin.Door.Row1.DriverSide.Window will be deleted.
INFO Node Vehicle.Cabin.Door.Row1.PassengerSide.Window will be deleted.
INFO Node Vehicle.Cabin.Door.Row2.DriverSide.Window will be deleted.
INFO Node Vehicle.Cabin.Door.Row2.DriverSide.IsChildLockActive will be deleted.
INFO Node Vehicle.Cabin.Door.Row2.PassengerSide.Window will be deleted.
```

### Overlays in the standard catalog

With the feature of overlays, we introduced a new folder in the
Expand Down

0 comments on commit 3f78753

Please sign in to comment.