COVESA / franca_ara_tools

Translation between Franca Interface Description Language and AUTOSAR XML interface description language
Eclipse Public License 2.0
41 stars 12 forks source link

Clarify which AUTOSAR type categories are appropriate to represent array types #32

Open TorstenGoerg opened 4 years ago

TorstenGoerg commented 4 years ago

May be, fixed-sized arrays should be converted to the category "ARRAY" and dynamic arrays to "VECTOR".

gunnarx commented 4 years ago

Those are good names to use, in my opinion. I suppose the comparison/translation table should clarify which type translates to which?

TorstenGoerg commented 4 years ago

Those are good names to use, in my opinion. I suppose the comparison/translation table should clarify which type translates to which?

It is not just a question of naming. Data type categories like ARRAY and VECTOR are specified by the AUTOSAR standard with a particular meaning (see "AUTOSAR_TPS_ManifestSpecification.pdf"). The mapping table (https://docs.google.com/spreadsheets/d/1O7gMTK1oaDHi43G2B6-Es5H4okzcjvmeRyW7sUPnAaQ/edit#gid=0) currently does not distinguish fixed-sized and dynamic arrays because this difference is visible in the deployment data only on Franca side. The detailed mapping analysis of deployment data is open yet. Currently, the mapping table suggests to map arrays always to the AUTOSAR category VECTOR because this is the more general case.