cogu / autosar

A set of python modules for working with AUTOSAR XML files
MIT License
353 stars 160 forks source link

PortApi update #57

Open ankegowdaja opened 4 years ago

ankegowdaja commented 4 years ago

Not able to create the numerical value variation point for PortApi.

i need to create 1)port defined argument value 2)Numerical value specification
3)numerical value variation point

cogu commented 4 years ago

1) PortAPI implementation needs a general overhaul. Right now, port argument values are not supported at all.

2) Numerical value specifications can be created using the autosar.constant.NumericalValue class or, in case you are creating it from a data type reference you can take help from the autosar.builder.ValueBuilder class.

3) Variant Handling in general is not supported by the Python autosar module which means creating VariationPoint is not possible.