asam-ev / qc-openscenarioxml

6 stars 3 forks source link

Add valid actor reference in private actions check #21

Closed romanodanilo closed 3 months ago

romanodanilo commented 3 months ago

Description

Add valid actor reference in private actions check, test code and test cases

How was the PR tested?

  1. Unit-test with sample data. All unit tests passed.

Notes example output

<Issue issueId="0" description="Issue flagging when no Actor is specified but a PrivateAction is used" level="1" ruleUID="asam.net:xosc:1.2.0:reference_control.valid_actor_reference_in_private_actions">
        <Locations description="ManeuverGroup at /OpenSCENARIO/Storyboard/Story/Act/ManeuverGroup uses private actions ['/OpenSCENARIO/Storyboard/Story/Act/ManeuverGroup/Maneuver/Event/Action/PrivateAction'] but it defines no actor">
          <XMLLocation xpath="/OpenSCENARIO/Storyboard/Story/Act/ManeuverGroup"/>
        </Locations>

Related issue: https://github.com/asam-ev/qc-openscenarioxml/issues/17