com-pas / compas-sct

System Configuration Tool (SCT) components
Apache License 2.0
9 stars 9 forks source link

To be deleted RSR-232 COMPAS : attributes to consider that Data Type Templates are different or identical one #29

Closed jeanetiennelemaire closed 1 year ago

jeanetiennelemaire commented 3 years ago

Context : this US is to define the key attributes which defines that Data Type Template are different or identical. This US is an evolution of RSR-6 import DTT function of ICD in SCD.

Here under for each Data Type Templates, all the following attributes values have to be equal for attribute value and equal for node value which are tagged as "value of the node" ELSE the Data Type Template is consider as different one and an id attribute is renamed as defined in RSR-6.

In LNodeType, the order of DO.name node are not considered in the comparison ; as a consequence, same DO node but with different order will be considered as the same LNodeType.

In DOType, the order of SDO.name and DA.name are defined by the norm and has to be respected.

In DAType, the order of BDA.name are defined by the norm and has to be respected.

In EnumType, the order of EnumVal are defined by the norm and has to be respected.

In all kind of objects, the private sub nodes are not part of the comparison. This happen if xml fragments are in the Privates.

For LNodeType :

For DOType :

For DAType :

For EnumType,

 

jeanetiennelemaire commented 2 years ago

Private are not included into the comparison of DTT because it can include a complex object like xml

jeanetiennelemaire commented 2 years ago

This issue can be closed because merge with https://github.com/com-pas/compas-sct/issues/5