asam-ev / qc-openscenarioxml

Mozilla Public License 2.0
7 stars 3 forks source link

Add valid parameter check declaration #23

Closed romanodanilo closed 4 months ago

romanodanilo commented 4 months ago

Description

Addressing #16 , Add check logic, test files and test code

How was the PR tested?

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

Notes

example output

 <Checker status="completed" checkerId="parameters_xosc" description="Check if parameters properties of input file are properly set" summary="">
      <AddressedRule ruleUID="asam.net:xosc:1.2.0:parameters.valid_parameter_declaration_in_catalogs"/>
      <Issue issueId="0" description="Issue flagging when used parameters is not defined or has not default value within a catalog" level="1" ruleUID="asam.net:xosc:1.2.0:parameters.valid_parameter_declaration_in_catalogs">
        <Locations description="Parameter centerBoundingBoxX for attribute x  not defined in Catalog or with no default value">
          <XMLLocation xpath="/OpenSCENARIO/Catalog/Vehicle/BoundingBox/Center"/>
        </Locations>
      </Issue>
    </Checker>