armodel 1.6.1__py3-none-any.whl → 1.6.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. armodel/cli/arxml_dump_cli.py +31 -25
  2. armodel/cli/arxml_format_cli.py +1 -4
  3. armodel/cli/connector_update_cli.py +1 -1
  4. armodel/cli/swc_list_cli.py +1 -1
  5. armodel/lib/sw_component.py +3 -1
  6. armodel/lib/system_signal.py +3 -1
  7. armodel/models/M2/AUTOSARTemplates/AutosarTopLevelStructure.py +123 -0
  8. armodel/models/{bsw_module_template.py → M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py} +115 -140
  9. armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswImplementation.py +21 -0
  10. armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswInterfaces.py +52 -0
  11. armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview.py +78 -0
  12. armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__init__.py +1 -0
  13. armodel/models/M2/AUTOSARTemplates/CommonStructure/Implementation.py +81 -0
  14. armodel/models/{m2/autosar_templates/common_structure/implementation_data_types.py → M2/AUTOSARTemplates/CommonStructure/ImplementationDataTypes.py} +20 -10
  15. armodel/models/M2/AUTOSARTemplates/CommonStructure/InternalBehavior.py +108 -0
  16. armodel/models/M2/AUTOSARTemplates/CommonStructure/ModeDeclaration.py +96 -0
  17. armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/MemorySectionUsage.py +72 -0
  18. armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/__init__.py +22 -0
  19. armodel/models/{service_needs.py → M2/AUTOSARTemplates/CommonStructure/ServiceNeeds.py} +7 -7
  20. armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcBswMapping.py +36 -0
  21. armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcInternalBehavior/ModeDeclarationGroup.py +27 -0
  22. armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcInternalBehavior/__init__.py +1 -0
  23. armodel/models/M2/AUTOSARTemplates/CommonStructure/TriggerDeclaration.py +9 -0
  24. armodel/models/{m2/autosar_templates/common_structure → M2/AUTOSARTemplates/CommonStructure}/__init__.py +5 -2
  25. armodel/models/{m2/autosar_templates/generic_structure/abstract_structure.py → M2/AUTOSARTemplates/GenericStructure/AbstractStructure.py} +25 -2
  26. armodel/models/{ar_package.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ARPackage.py} +113 -218
  27. armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ArObject.py +16 -0
  28. armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ElementCollection.py +1 -0
  29. armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/EngineeringObject.py +55 -0
  30. armodel/models/{general_structure.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/Identifiable.py} +37 -149
  31. armodel/models/{ar_object.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/PrimitiveTypes.py} +163 -70
  32. armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/__init__.py +1 -0
  33. armodel/models/M2/AUTOSARTemplates/GenericStructure/__init__.py +1 -0
  34. armodel/models/{m2/autosar_templates/sw_component_template/communication.py → M2/AUTOSARTemplates/SWComponentTemplate/Communication.py} +22 -5
  35. armodel/models/{m2/autosar_templates/sw_component_template/components/instance_refs.py → M2/AUTOSARTemplates/SWComponentTemplate/Components/InstanceRefs.py} +2 -2
  36. armodel/models/{m2/autosar_templates/sw_component_template/components → M2/AUTOSARTemplates/SWComponentTemplate/Components}/__init__.py +10 -8
  37. armodel/models/{m2/autosar_templates/sw_component_template/composition/instance_refs.py → M2/AUTOSARTemplates/SWComponentTemplate/Composition/InstanceRefs.py} +2 -2
  38. armodel/models/{m2/autosar_templates/sw_component_template/composition → M2/AUTOSARTemplates/SWComponentTemplate/Composition}/__init__.py +5 -5
  39. armodel/models/{m2/autosar_templates/sw_component_template/data_type/data_prototypes.py → M2/AUTOSARTemplates/SWComponentTemplate/Datatype/DataPrototypes.py} +25 -7
  40. armodel/models/{datatype.py → M2/AUTOSARTemplates/SWComponentTemplate/Datatype/Datatypes.py} +16 -74
  41. armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Datatype/__init__.py +1 -0
  42. armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/EndToEndProtection.py +177 -0
  43. armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcImplementation.py +11 -0
  44. armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/access_count.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/AccessCount.py} +2 -2
  45. armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/data_elements.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/DataElements.py} +7 -5
  46. armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/IncludedDataTypes.py +24 -0
  47. armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/instance_refs_usage.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/InstanceRefsUsage.py} +3 -3
  48. armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/mode_declaration_group.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ModeDeclarationGroup.py} +3 -3
  49. armodel/models/{per_instance_memory.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/PerInstanceMemory.py} +5 -6
  50. armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/server_call.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServerCall.py} +3 -3
  51. armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServiceMapping.py +23 -0
  52. armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/trigger.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/Trigger.py} +2 -2
  53. armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior}/__init__.py +9 -10
  54. armodel/models/{m2/autosar_templates/sw_component_template → M2/AUTOSARTemplates/SWComponentTemplate}/port_interface/__init__.py +12 -8
  55. armodel/models/{m2/autosar_templates/sw_component_template → M2/AUTOSARTemplates/SWComponentTemplate}/port_interface/instance_refs.py +2 -2
  56. armodel/models/{m2/autosar_templates/system_template/instance_refs.py → M2/AUTOSARTemplates/SystemTemplate/InstanceRefs.py} +2 -2
  57. armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/__init__.py +4 -2
  58. armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/data_mapping.py +2 -2
  59. armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/network_management.py +7 -3
  60. armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/transport_protocols.py +1 -1
  61. armodel/models/{m2/autosar_templates → M2/AUTOSARTemplates}/ecuc_description_template.py +10 -6
  62. armodel/models/M2/MSR/AsamHdo/AdminData.py +21 -0
  63. armodel/models/M2/MSR/AsamHdo/BaseTypes.py +77 -0
  64. armodel/models/{m2_msr.py → M2/MSR/AsamHdo/ComputationMethod.py} +44 -28
  65. armodel/models/{global_constraints.py → M2/MSR/AsamHdo/Constraints/GlobalConstraints.py} +7 -4
  66. armodel/models/M2/MSR/AsamHdo/Constraints/__init__.py +1 -0
  67. armodel/models/M2/MSR/AsamHdo/SpecialData.py +63 -0
  68. armodel/models/{m2/msr/asam_hdo/units.py → M2/MSR/AsamHdo/Units.py} +6 -3
  69. armodel/models/M2/MSR/AsamHdo/__init__.py +1 -0
  70. armodel/models/M2/MSR/CalibrationData/CalibrationValue.py +30 -0
  71. armodel/models/M2/MSR/CalibrationData/__init__.py +1 -0
  72. armodel/models/{m2/msr/data_dictionary/auxillary_objects.py → M2/MSR/DataDictionary/AuxillaryObjects.py} +4 -2
  73. armodel/models/M2/MSR/DataDictionary/Axis.py +145 -0
  74. armodel/models/M2/MSR/DataDictionary/CalibrationParameter.py +37 -0
  75. armodel/models/{m2/msr/data_dictionary/data_def_properties.py → M2/MSR/DataDictionary/DataDefProperties.py} +19 -9
  76. armodel/models/{record_layout.py → M2/MSR/DataDictionary/RecordLayout.py} +26 -25
  77. armodel/models/M2/MSR/DataDictionary/__init__.py +1 -0
  78. armodel/models/{annotation.py → M2/MSR/Documentation/Annotation.py} +8 -8
  79. armodel/models/{m2/msr/documentation/block_elements.py → M2/MSR/Documentation/BlockElements.py} +2 -2
  80. armodel/models/M2/MSR/Documentation/TextModel/LanguageDataModel.py +17 -0
  81. armodel/models/{multilanguage_data.py → M2/MSR/Documentation/TextModel/MultilanguageData.py} +21 -30
  82. armodel/models/M2/MSR/Documentation/TextModel/__init__.py +2 -0
  83. armodel/models/M2/MSR/Documentation/__init__.py +3 -0
  84. armodel/models/M2/MSR/__init__.py +1 -0
  85. armodel/models/M2/__init__.py +1 -0
  86. armodel/models/__init__.py +6 -23
  87. armodel/models/fibex/can_communication.py +3 -2
  88. armodel/models/fibex/fibex_4_multiplatform.py +5 -3
  89. armodel/models/fibex/fibex_core/core_communication.py +9 -3
  90. armodel/models/fibex/fibex_core/core_topology.py +7 -3
  91. armodel/models/fibex/lin_communication.py +5 -1
  92. armodel/models/rpt_scenario.py +2 -2
  93. armodel/models/sw_component.py +19 -14
  94. armodel/models/timing.py +3 -3
  95. armodel/parser/abstract_arxml_parser.py +8 -4
  96. armodel/parser/arxml_parser.py +120 -86
  97. armodel/parser/connector_xlsx_parser.py +6 -2
  98. armodel/report/connector_xls_report.py +2 -1
  99. armodel/tests/test_armodel/models/test_ar_object.py +2 -1
  100. armodel/tests/test_armodel/models/test_ar_package.py +20 -8
  101. armodel/tests/test_armodel/models/test_ar_ref.py +7 -5
  102. armodel/tests/test_armodel/models/test_bsw_module_template.py +5 -1
  103. armodel/tests/test_armodel/models/test_common_structure.py +11 -5
  104. armodel/tests/test_armodel/models/test_data_dictionary.py +2 -2
  105. armodel/tests/test_armodel/models/test_data_prototype.py +7 -3
  106. armodel/tests/test_armodel/models/test_datatype.py +22 -8
  107. armodel/tests/test_armodel/models/test_general_structure.py +12 -2
  108. armodel/tests/test_armodel/models/test_implementation.py +3 -2
  109. armodel/tests/test_armodel/models/test_m2_msr.py +4 -2
  110. armodel/tests/test_armodel/models/test_port_interface.py +16 -6
  111. armodel/tests/test_armodel/models/test_port_prototype.py +1 -1
  112. armodel/tests/test_armodel/parser/test_parse_bswmd.py +3 -1
  113. armodel/tests/test_armodel/parser/test_sw_components.py +2 -2
  114. armodel/tests/test_armodel/parser/test_system.py +30 -0
  115. armodel/writer/abstract_arxml_writer.py +5 -2
  116. armodel/writer/arxml_writer.py +100 -67
  117. {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/METADATA +366 -356
  118. armodel-1.6.3.dist-info/RECORD +148 -0
  119. {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/WHEEL +1 -1
  120. armodel/lib/data_analyzer.py +0 -34
  121. armodel/models/ar_ref.py +0 -25
  122. armodel/models/calibration.py +0 -119
  123. armodel/models/common_structure.py +0 -272
  124. armodel/models/communication.py +0 -17
  125. armodel/models/data_def_properties.py +0 -16
  126. armodel/models/data_dictionary.py +0 -59
  127. armodel/models/data_prototype.py +0 -103
  128. armodel/models/ecuc_parameter_def_template.py +0 -0
  129. armodel/models/end_to_end_protection.py +0 -67
  130. armodel/models/fibex/fibex_core.py +0 -341
  131. armodel/models/fibex/lin_topology.py +0 -7
  132. armodel/models/implementation.py +0 -135
  133. armodel/models/internal_behavior.py +0 -63
  134. armodel/models/m2/autosar_templates/common_structure/constants.py +0 -0
  135. armodel/models/m2/autosar_templates/common_structure/implementation.py +0 -21
  136. armodel/models/m2/autosar_templates/generic_structure/__init__.py +0 -0
  137. armodel/models/m2/autosar_templates/sw_component_template/__init__.py +0 -0
  138. armodel/models/m2/autosar_templates/sw_component_template/data_type/__init__.py +0 -0
  139. armodel/models/m2/autosar_templates/sw_component_template/port_interface.py +0 -236
  140. armodel/models/m2/msr/__init__.py +0 -0
  141. armodel/models/m2/msr/asam_hdo/__init__.py +0 -0
  142. armodel/models/m2/msr/data_dictionary/__init__.py +0 -0
  143. armodel/models/m2/msr/documentation/__init__.py +0 -0
  144. armodel/models/mode_declaration.py +0 -8
  145. armodel/models/port_interface.py +0 -165
  146. armodel/models/port_prototype.py +0 -6
  147. armodel/models/service_mapping.py +0 -11
  148. armodel/models/system_template/__init__.py +0 -0
  149. armodel/models/system_template/network_management.py +0 -7
  150. armodel/models/system_template/transport_protocols.py +0 -7
  151. armodel/models/unit.py +0 -14
  152. armodel-1.6.1.dist-info/RECORD +0 -140
  153. /armodel/models/{m2 → M2/AUTOSARTemplates/SWComponentTemplate}/__init__.py +0 -0
  154. /armodel/models/{m2/autosar_templates → M2/AUTOSARTemplates}/__init__.py +0 -0
  155. {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/LICENSE +0 -0
  156. {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/entry_points.txt +0 -0
  157. {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,148 @@
1
+ armodel/__init__.py,sha256=GVXg600GzbcLT2-Lrepuz6mjT6_BsVNmi2eDiz85NiA,67
2
+ armodel/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ armodel/cli/arxml_dump_cli.py,sha256=9BLLYck2CyHLpAEE7uBx9ZMUunxEX-g7G8rYy54obcE,10661
4
+ armodel/cli/arxml_format_cli.py,sha256=C430xwvzPlnmfPiF71msd9fnsPQ_fWJfB5ICCPIXBWk,2000
5
+ armodel/cli/connector2xlsx_cli.py,sha256=bPxJ53znVpluabEbjqN58RX8a9dvlf-cF5o7ncjqTyw,2125
6
+ armodel/cli/connector_update_cli.py,sha256=IB35X7XBSP2Et92LLBWvuajxI9SVQm5kk4jin6YVMS0,2320
7
+ armodel/cli/memory_section_cli.py,sha256=ky-EJyl74-F8DpIu6uafEFilfblOvEa4HqQyM5HhqyI,2139
8
+ armodel/cli/swc_list_cli.py,sha256=TSzKmxjaPZs499jY4WX5pQ4UZ924m5yqmriQbAsvOTY,2403
9
+ armodel/cli/system_signal_cli.py,sha256=4u474E1yd1CGBPiALL-ZXpDatXpUrD6qyXsR-au2yp0,2101
10
+ armodel/data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ armodel/data_models/sw_connector.py,sha256=ZU1B3AI84vpSSSpQaGR6CMc3qZGnhbK1Z-SQGvwYA9o,584
12
+ armodel/lib/__init__.py,sha256=5629DkORqTomt16J6VL40o5hFv86-9SRB1240OJWTts,142
13
+ armodel/lib/cli_args_parser.py,sha256=WiTC3wy_fZYloA1AjPqCvvOA_26V_y5toun0qfV51cw,1207
14
+ armodel/lib/sw_component.py,sha256=PKOa-yccbK5xe9YM2w9M91EmDSU0xppXlkGHN9n0IxI,1252
15
+ armodel/lib/system_signal.py,sha256=u3LThMyZigzDuJ5jpAQdY0TDeJn1VmJ5aWSSiMcMvmw,1368
16
+ armodel/models/__init__.py,sha256=PA1sCcGFKLe4jvG6TwM1oTrF3IZF8WRsTCjkH1vJsMQ,302
17
+ armodel/models/rpt_scenario.py,sha256=FY1WQ6_TKUq-VIMIdSaiKAC4tL9e0U4BH2TZtxq6UkE,679
18
+ armodel/models/sw_component.py,sha256=kbCfyANWHzlnU-WWQ_R5Rvc7DGQ6XbT45uqlp3mB--8,17850
19
+ armodel/models/timing.py,sha256=_KAHijExAO-tL0Zg6Jm3v8Gng-efrbRjW_cea-xHq9Y,3455
20
+ armodel/models/M2/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
21
+ armodel/models/M2/AUTOSARTemplates/AutosarTopLevelStructure.py,sha256=CThO87JToE60tq-kvIiI1l5GsnIXxbETvLP8Qa32HhE,5088
22
+ armodel/models/M2/AUTOSARTemplates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ armodel/models/M2/AUTOSARTemplates/ecuc_description_template.py,sha256=52ty5i4ssky1MOAeFs5qU9BC-w2upptosXkKOo-YlMc,9329
24
+ armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py,sha256=eQsiFNAm1kBMipj1PA93j0UAd7UZZsYcdmWAcDWh7hg,13831
25
+ armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswImplementation.py,sha256=vekqJMU2USEOvvOU-Rw-G0CYDAW7T0sZv8blz-yAKfw,1098
26
+ armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswInterfaces.py,sha256=7iZKRPADg7e1mcQUXh_ULK8-5nbSdTUOJAzuBagh-8E,2572
27
+ armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview.py,sha256=ENjY_x-ddRMW6yPRjWMlIX8nE2nQJWebtB1spurDVUs,3583
28
+ armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
29
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/Implementation.py,sha256=CMJWTp4_0NBrH5VjZauUSc7oZe4mKBCm9plbOEj4BeM,3594
30
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/ImplementationDataTypes.py,sha256=cvcv900bnlein4zAyKhMhfhDmO1IBJK5V_PZm3D-y3A,6006
31
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/InternalBehavior.py,sha256=lG9O_ZcT14dfDtuOs_l9T_Ln_kkv2SncEyPnBt6g3MY,4153
32
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/ModeDeclaration.py,sha256=jsKUNlDkMYjqUpKCBMAY7oO7sP7FMrgEYIqLGRmN2eQ,3393
33
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/ServiceNeeds.py,sha256=7HJAQuGUAFR9OBAcOCiAQLMoNT_VD6IqbQEZjuk-jrQ,2876
34
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcBswMapping.py,sha256=9bU-vwjR_zvHOZ3ISzaE7CqjyNAGPfp7x76OS5qQRNk,1485
35
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/TriggerDeclaration.py,sha256=sx7YTF5a0HGctvRF2EWzeYJr3KzBTHkhUI5Zqb_AUTk,392
36
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/__init__.py,sha256=wsdSfFn2V_JGwYGGSAIAl3ItOcbeHMEdS9Ry0w9S4eI,6036
37
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/MemorySectionUsage.py,sha256=xvD2yb61AOI8bPALwU1-vaoc5p7klE0uOgAa7ntWrUo,2286
38
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/__init__.py,sha256=9m57JvQQTJT-e7VYufH-5htorAVlAaSmDO2LyyfuU6Q,1010
39
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcInternalBehavior/ModeDeclarationGroup.py,sha256=h2GavZn5Rk37rJYyKAckdfaZwVVrEqlgmxJ0942q4CM,925
40
+ armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcInternalBehavior/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
41
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/AbstractStructure.py,sha256=Id9Lu7XuC1hxPPT6EF5cSJNe0truet8y4ElMeGoo7gQ,2953
42
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
43
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ARPackage.py,sha256=KGQsn4gxAXOomUiTa9FyFu4cn5x-sJHXqEtqnMauYIE,28538
44
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ArObject.py,sha256=lGpAPeVhgMbHPmdZWSxd4bKRIy6ALd1jeaa8mkHXy0Y,559
45
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ElementCollection.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
46
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/EngineeringObject.py,sha256=2eMMK6YXRQVjSirFBOmj3_3IqSS1pYj5Md1ErbPI5ik,1744
47
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/Identifiable.py,sha256=NoIVszGONpOFkDPt_zESafOLWPZ83l7W-LM4yQ3Lyp4,5467
48
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/PrimitiveTypes.py,sha256=s_dke-DJnAYeLqOzCOjd7bnMRZ2YjHNwFwcWlTVBUNI,8664
49
+ armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
50
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Communication.py,sha256=1tkiEGwU-72JcabDaDChQCAulOHDRYdeDCRW3WtNafo,11901
51
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/EndToEndProtection.py,sha256=OvATuHGdlLGpf56CEVvqG1TBqag8rW_zzw3jBEc_7Jk,6216
52
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcImplementation.py,sha256=ERv5NhgYJ2Q8TZNll9De9SpSijtzmBLMfjAs4a6eR6M,528
53
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Components/InstanceRefs.py,sha256=TxF3axmTntnrOZh3Fbs1LVBD4ubvRmo3L81uJ7IBP8o,5756
55
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Components/__init__.py,sha256=Dr7mFsc32B_h7RwYQZK--oahqcR5MzxVt_BqiWhej9Q,10212
56
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Composition/InstanceRefs.py,sha256=aLndDnwpv-B4y4KmnZklFJ6lboqGzTWni_4i6u4FvJY,4933
57
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Composition/__init__.py,sha256=XiCKFVCSZmM8LKAvY12Bav2CzhM3aADMLeoRXffbsT4,6070
58
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Datatype/DataPrototypes.py,sha256=5G3VsHdPfuYmpIXsBgDv_bL6gRgyj3BXe3riLA1Azoo,4315
59
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Datatype/Datatypes.py,sha256=yACtLKgcWbFUtd0_04Yflq7p5nQKFTyBqdKKQ3S1r_8,4278
60
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Datatype/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
61
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/AccessCount.py,sha256=qTvbVFpGJN6cKZnQKVAGN6jcRXw8l1V6PpyKD-nIIFI,530
62
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/DataElements.py,sha256=pxMKeiWkSeNIgU7c-AbQ6xoshnrvcrn0ZClm_EZKMuA,1879
63
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/IncludedDataTypes.py,sha256=5aF618vFgnviVxPaD-Nh-GWyHZ4XdaalmOPdR25gLog,807
64
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/InstanceRefsUsage.py,sha256=cvRwPda7B84mgSZaM71V3OynSJR0MWDtxG1bj9DYE7g,5679
65
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ModeDeclarationGroup.py,sha256=zWq6Kzms-pHPApIfbefVqJZkIrvn20gPbYkVfvZ_vgA,1245
66
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/PerInstanceMemory.py,sha256=NyUWs7vj76NMTjHzJxtrc4G8wjboqYhBkTphndix854,1331
67
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServerCall.py,sha256=alwKOvJzn_BLRdDyW03lNN93GJsELDYME8TnzbvCgcU,849
68
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServiceMapping.py,sha256=4xlNiFMqdqGgv74S5K75J8TJK8sj-CN9pcLmwK9uLSo,735
69
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/Trigger.py,sha256=QH8iKAc0rr95_OaysBcPQLeZzxhIsS9zkXlW1PmUha8,322
70
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/__init__.py,sha256=dO7-TpeLKTi23Y3mUx0-bkw9ZkmGhF7MA7Fmz4ZOPHM,9715
71
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/port_interface/__init__.py,sha256=FbizTmDhuGaTM4qanqZZmIWmtBsIR3XXnWBccKcaxzA,10346
72
+ armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/port_interface/instance_refs.py,sha256=RYxzEhUbPCt0pUCF6sOBiyI37tEFSn6tflMpHSBpRiA,1376
73
+ armodel/models/M2/AUTOSARTemplates/SystemTemplate/InstanceRefs.py,sha256=wX4GgCAYZbaFmm13zu5FapwkbNc39SFDMk7Bp4ezjrk,1647
74
+ armodel/models/M2/AUTOSARTemplates/SystemTemplate/__init__.py,sha256=2wK9l6aMEg1EJqJtcsw5YY-tZOMncvzJ7_PEMucCJL4,10591
75
+ armodel/models/M2/AUTOSARTemplates/SystemTemplate/data_mapping.py,sha256=V9v6Rrhx1320zcLgRRgMz-ouFOebmNimDRNeNKKleIw,2546
76
+ armodel/models/M2/AUTOSARTemplates/SystemTemplate/network_management.py,sha256=svW4oOA10se6oLpKTW9ufwcl_v1f0O_JJuhn0JelDwo,17319
77
+ armodel/models/M2/AUTOSARTemplates/SystemTemplate/transport_protocols.py,sha256=j2BpgXdW6d0t3IW8qYxzpMv82AqCvdoCW2frOpje9HA,281
78
+ armodel/models/M2/MSR/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
79
+ armodel/models/M2/MSR/AsamHdo/AdminData.py,sha256=1oM3N3svBdWX3G1a2zyXMiEF__LgHbuqiQnnIBWzNzc,529
80
+ armodel/models/M2/MSR/AsamHdo/BaseTypes.py,sha256=Uhc6ASql3yrswRSfdL-diG0NqEbg5le-X4ta-xgNu0k,2371
81
+ armodel/models/M2/MSR/AsamHdo/ComputationMethod.py,sha256=YOMpOHbqD4IPRg74BWxfBLww9M-kJ3MqrGaov7sfNIM,5485
82
+ armodel/models/M2/MSR/AsamHdo/SpecialData.py,sha256=Ab4miwez_Z5Cq7l2LrBtlW4vlgYj1Nqr9Z17AyUwTr4,1377
83
+ armodel/models/M2/MSR/AsamHdo/Units.py,sha256=aFW4V2g735QAJiOLwerBo7pw3Fzvpzb4D2Gkawk67-A,3513
84
+ armodel/models/M2/MSR/AsamHdo/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
85
+ armodel/models/M2/MSR/AsamHdo/Constraints/GlobalConstraints.py,sha256=2K1TByndmNWyXVVY9fBn9pHcetmxa_IFlR1w7-hCT3M,1489
86
+ armodel/models/M2/MSR/AsamHdo/Constraints/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
87
+ armodel/models/M2/MSR/CalibrationData/CalibrationValue.py,sha256=wITMr8nWZpqxqXf8Br2qwr9OgAkMjuUpJibLQ8iUPxM,947
88
+ armodel/models/M2/MSR/CalibrationData/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
89
+ armodel/models/M2/MSR/DataDictionary/AuxillaryObjects.py,sha256=T4pzgLolfrVbycOR8NRn6L63yHJMg8bK5eDQOaHqrQ8,1520
90
+ armodel/models/M2/MSR/DataDictionary/Axis.py,sha256=0RN083Jeqvuh7wf_KqiZ9g7QeLjQInW9ZA5kZ13_6io,4332
91
+ armodel/models/M2/MSR/DataDictionary/CalibrationParameter.py,sha256=51thiLiLpgRNeJR8M_u0trjJGMfFUcNukRIo9wcVPf4,1458
92
+ armodel/models/M2/MSR/DataDictionary/DataDefProperties.py,sha256=ErIm2DLL05cXJEPUb0i61GyjXNQCkm7-EEXCQbGkSJY,9485
93
+ armodel/models/M2/MSR/DataDictionary/RecordLayout.py,sha256=jphli5QkIyVwPyrwD5XQ-2b1tx0hzDKOBZOJogTB8e0,4688
94
+ armodel/models/M2/MSR/DataDictionary/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
95
+ armodel/models/M2/MSR/Documentation/Annotation.py,sha256=v6nppme1fRAjswXTgWdZC4ub-JL1y0I3S8ffY9e9-Js,1505
96
+ armodel/models/M2/MSR/Documentation/BlockElements.py,sha256=a_HJKnIPgjGbVxWXMv2U4CvJ7PvpaxHKDkOqD1jRd_E,532
97
+ armodel/models/M2/MSR/Documentation/__init__.py,sha256=M13KqFB7F4aCnTE5QVZQx6sVgkenCvRtwDuagd7kNhA,81
98
+ armodel/models/M2/MSR/Documentation/TextModel/LanguageDataModel.py,sha256=nilgnaaqQP-YgOQAIc27y5vn6MtuSO8dIPXlp40jmKc,379
99
+ armodel/models/M2/MSR/Documentation/TextModel/MultilanguageData.py,sha256=F-rwWhgbUVV5ZI1BNlEuLCwOfiZ90GdyVhq2BEb0o9M,1271
100
+ armodel/models/M2/MSR/Documentation/TextModel/__init__.py,sha256=15imhTx8GTx1-GToYiToy8lve4uQln7HMPRzkg-Uysk,66
101
+ armodel/models/fibex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
+ armodel/models/fibex/can_communication.py,sha256=v2TcIst0X93U6tqXlHnpHg6E0QymyHXt8bhXHzzuiRU,3778
103
+ armodel/models/fibex/fibex_4_multiplatform.py,sha256=ZX8MMOySRAxU8u6Sg5svuRvbiGeBChV6pU6-fPJCZrA,4271
104
+ armodel/models/fibex/lin_communication.py,sha256=CO-kZmK6o4Hhi5D3iQcGJn3xxCzGtFvqmHHE4FVUqdM,1432
105
+ armodel/models/fibex/fibex_4_can/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
106
+ armodel/models/fibex/fibex_4_lin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
+ armodel/models/fibex/fibex_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
+ armodel/models/fibex/fibex_core/core_communication.py,sha256=qe1LQ3QGXVZ4mNPolYyeWBsaOlJ3EhoXuF8Uqg4pObo,20118
109
+ armodel/models/fibex/fibex_core/core_topology.py,sha256=N_4DXOHDxwGl-mKO0CA2M-EDO6l7OX0_LahNwVyaCDE,7410
110
+ armodel/parser/__init__.py,sha256=wFcqh5unmDvKvf4R8vWkeertAXwWxAuOOEsbsM4mOHs,78
111
+ armodel/parser/abstract_arxml_parser.py,sha256=0-OrbzkpPPcppTo50XHcyAfZ8c7Uu9sD3vejB-E09ks,11237
112
+ armodel/parser/arxml_parser.py,sha256=Kqf_W5wmFZfH88vJ7ENk_vpIAztNI3d1vYhQhmY3Y3o,178399
113
+ armodel/parser/connector_xlsx_parser.py,sha256=0YW0WGOeDFdSNEY_Xh8Hi-Zlv4e4ctaLUh9pibj2-1w,10312
114
+ armodel/parser/excel_parser.py,sha256=-Ws0eDvGna9LPQC9T8bgMg3Zq84v04aSuSxZUlZx1Wo,698
115
+ armodel/parser/file_parser.py,sha256=SEPj3YsYdsz8iBvxdeDIs63NC-NQLftoIm4yPoHheEc,1410
116
+ armodel/report/__init__.py,sha256=EId0Ph3qYyzkKHKplJrs00ToxHeSjQVvhLwrSoV-SBw,52
117
+ armodel/report/connector_xls_report.py,sha256=Q9ZDj6dn2V9o-S_P6G9eaxckTKh1lTa8Yk0gX4EElkM,3967
118
+ armodel/report/excel_report.py,sha256=Iome8wALpOFZyZkMCG5DPSAFkfv4pU0y_BZXHVSdonc,1412
119
+ armodel/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
120
+ armodel/tests/test_armodel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
121
+ armodel/tests/test_armodel/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
+ armodel/tests/test_armodel/models/test_ar_object.py,sha256=r5UEsCcsbXd3uVf6TB2KIQVbm5RyQn5rkdz6t9KLAUo,5104
123
+ armodel/tests/test_armodel/models/test_ar_package.py,sha256=UmzB0YEAgXKTgQFN2iPAYQC5Q5vr9XhWPrk95_cqTJY,15482
124
+ armodel/tests/test_armodel/models/test_ar_ref.py,sha256=LWfN1V6tRQMS_L-jIu5LhDWrPE2IuyOOOZsEudCAGBY,3724
125
+ armodel/tests/test_armodel/models/test_bsw_module_template.py,sha256=8PZyuw8ZDsT-JN03CiVIJfoSZtzg9OyEutdN4M_KqPo,2253
126
+ armodel/tests/test_armodel/models/test_common_structure.py,sha256=WAhhKmLRGCwIwfyKvEBYDgZOwyYaA07aKNOqWfu5z6c,3982
127
+ armodel/tests/test_armodel/models/test_data_dictionary.py,sha256=4xY0QgHhU2_K762i8qoJOXFFitMzWYL090roQDrWkYo,1154
128
+ armodel/tests/test_armodel/models/test_data_prototype.py,sha256=qP7X2PnwrQvt70WFyXvmVokz1U4W2e1uqo8Wq9PV5qA,4551
129
+ armodel/tests/test_armodel/models/test_datatype.py,sha256=aTIoJJtxbAMhOq2SUV74IC1fbmpoDeyTmG8ljzl4LyI,12743
130
+ armodel/tests/test_armodel/models/test_general_structure.py,sha256=3LlW5RTlDwUtyFxyzFzsoc3SGUVzgNdX7H5pML5-BVU,2779
131
+ armodel/tests/test_armodel/models/test_implementation.py,sha256=Z1UdwFCN9StTlTXoL1hUdkJcAQDS9KI3os9-wxkGMpk,1083
132
+ armodel/tests/test_armodel/models/test_m2_msr.py,sha256=vg5Ey0Ik30pIJiudZML5M-9RfECycc888otrWLkURSM,2785
133
+ armodel/tests/test_armodel/models/test_port_interface.py,sha256=gpvlF5xYonGSfnp6at5kgUPfUqp2lNdhwez7RarM_64,9864
134
+ armodel/tests/test_armodel/models/test_port_prototype.py,sha256=eJMfvimtniRIhqA57bL1qMfp0_D9J9LrM-5GtGVl6OM,533
135
+ armodel/tests/test_armodel/parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
136
+ armodel/tests/test_armodel/parser/test_arxml_parser.py,sha256=4-4DKdHIZN50wiM0tzzP-nejY74aEtAWhURwYxDGrWw,747
137
+ armodel/tests/test_armodel/parser/test_parse_bswmd.py,sha256=a0_jR4JruE3FECEcGBzvSd9hucix4sc77_JqBwOS3tA,10277
138
+ armodel/tests/test_armodel/parser/test_sw_components.py,sha256=VGbmC0bsMfMn9jz4AtiXXGjJlolcVpgbfo2D34plQL0,4181
139
+ armodel/tests/test_armodel/parser/test_system.py,sha256=3cLRSX1uwPoQuaXQd2WIp8ewUMTIMwi7PDgdwnklIdc,1052
140
+ armodel/writer/__init__.py,sha256=eXr3qhGzFIvHNBin22x-Tk2JM6QwRgx1jwrluDKAlzQ,37
141
+ armodel/writer/abstract_arxml_writer.py,sha256=92w6wYva6oy4UrEXJ7X4Ks1SA0PAlrEhjjffsIP2nEA,5556
142
+ armodel/writer/arxml_writer.py,sha256=pbeGRFDx6pV0LJrUle2SZH5ZDg2h7wRHC1adqDEBrII,173469
143
+ armodel-1.6.3.dist-info/LICENSE,sha256=rceTpGhsmmN1M0k1KO0HRS11iCjen-2y56ZEqgo43wo,1088
144
+ armodel-1.6.3.dist-info/METADATA,sha256=UDzAb4hb7jPrn9CxweRBZnUvAdkNwZJFqLrDzlJFndg,10433
145
+ armodel-1.6.3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
146
+ armodel-1.6.3.dist-info/entry_points.txt,sha256=7n_GwPbHcnqMTnKCnPjjjo3s_uo_vaFrjtZQeDQtHHM,397
147
+ armodel-1.6.3.dist-info/top_level.txt,sha256=AEATYsqAuRpr0XGa_ThW7-o4WLlA5e3PEgD0QJhzmoA,8
148
+ armodel-1.6.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.37.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,34 +0,0 @@
1
- import logging
2
-
3
- from typing import List
4
- from ..models import AUTOSAR, ARPackage, AtomicSwComponentType, CompositionSwComponentType
5
-
6
- class SwComponentAnalyzer:
7
- def __init__(self) -> None:
8
- self.swcs = [] # type: List[AtomicSwComponentType]
9
-
10
- def parse_pkg(self, parent: ARPackage):
11
- for pkg in parent.getARPackages():
12
- self.parse_pkg(pkg)
13
- for swc in parent.getSwComponentTypes():
14
- self.swcs.append(swc)
15
-
16
- def import_data(self, document: AUTOSAR):
17
- for pkg in document.getARPackages():
18
- self.parse_pkg(pkg)
19
-
20
- def print_out(self, option = {}):
21
- logger = logging.getLogger()
22
-
23
- logger.info("== SW-C LIST ==")
24
-
25
- if option['filter'] == 'CompositionSwComponent':
26
- swc_list = filter(lambda o: isinstance(o, CompositionSwComponentType), self.swcs)
27
- else:
28
- swc_list = self.swcs
29
-
30
- for swc in sorted(swc_list, key = lambda o: o.short_name):
31
- if option['format'] == 'long':
32
- logger.info("%s" % swc.full_name)
33
- else:
34
- logger.info("%s" % swc.short_name)
armodel/models/ar_ref.py DELETED
@@ -1,25 +0,0 @@
1
- from .ar_object import ARObject
2
-
3
- class RefType(ARObject):
4
- def __init__(self):
5
- self.dest = ""
6
- self.value = ""
7
-
8
- def getDest(self):
9
- return self.dest
10
-
11
- def setDest(self, value):
12
- self.dest = value
13
- return self
14
-
15
- def getValue(self):
16
- return self.value
17
-
18
- def setValue(self, value):
19
- self.value = value
20
- return self
21
-
22
- class TRefType(RefType):
23
- def __init__(self):
24
- super().__init__()
25
-
@@ -1,119 +0,0 @@
1
- from abc import ABCMeta
2
- from typing import List
3
-
4
- from .ar_object import ARFloat, ARNumerical, ARObject
5
- from .ar_ref import RefType
6
- from .data_def_properties import ValueList
7
-
8
- class SwValues(ARObject):
9
- def __init__(self):
10
- super().__init__()
11
-
12
- self._v = [] # type: List[ARNumerical]
13
- self.vt = None # type: float
14
-
15
- def addV(self, v: ARNumerical):
16
- self._v.append(v)
17
-
18
- def getVs(self) -> List[ARNumerical]:
19
- return self._v
20
-
21
- class SwValueCont(ARObject):
22
- def __init__(self):
23
- super().__init__()
24
-
25
- self.sw_arraysize = None # type: ValueList
26
- self.unit_ref = None # type: RefType
27
- self.sw_values_phys = None # type: SwValues
28
-
29
- class SwGenericAxisParam(ARObject):
30
- def __init__(self):
31
- super().__init__()
32
-
33
- self.swGenericAxisParamTypeRef = None # type: RefType
34
- self.vf = [] # type: List[ARFloat]
35
- class SwAxisGeneric(ARObject):
36
- def __init__(self):
37
- super().__init__()
38
-
39
- self.swAxisTypeRef = None # type: RefType
40
- self.swGenericAxisParam = [] # type: List[SwGenericAxisParam]
41
-
42
- class SwCalprmAxisTypeProps(ARObject, metaclass = ABCMeta):
43
- def __init__(self):
44
- if type(self) == SwCalprmAxisTypeProps:
45
- raise NotImplementedError("SwCalprmAxisTypeProps is an abstract class.")
46
-
47
- super().__init__()
48
-
49
- self.maxGradient = None # type: ARFloat
50
- self.monotony = None # type: MonotonyEnum
51
-
52
- class SwAxisIndividual(SwCalprmAxisTypeProps):
53
- def __init__(self):
54
- super().__init__()
55
-
56
- self.compuMethodRef = None # type: RefType
57
- self.dataConstrRef = None # type: RefType
58
- self.inputVariableTypeRef = None # type: RefType
59
- self.swAxisGeneric = None # type: SwAxisGeneric
60
- self.swMaxAxisPoints = None # type: ARNumerical
61
- self.swMinAxisPoints = None # type: ARNumerical
62
- self.swVariableRefs = [] # type: List
63
- self.unitRef = None # type: RefType
64
-
65
- def setInputVariableTypeRef(self, ref: RefType):
66
- self.inputVariableTypeRef = ref
67
- return self
68
-
69
- def setCompuMethodRef(self, ref: RefType):
70
- self.compuMethodRef = ref
71
- return self
72
-
73
- def setSwMaxAxisPoints(self, points: int):
74
- self.swMaxAxisPoints = points
75
- return self
76
-
77
- def setSwMinAxisPoints(self, points: int):
78
- self.swMinAxisPoints = points
79
- return self
80
-
81
- def setDataConstrRef(self, ref: RefType):
82
- self.dataConstrRef = ref
83
- return self
84
-
85
- class SwAxisGrouped(SwCalprmAxisTypeProps):
86
- def __init__(self):
87
- super().__init__()
88
-
89
- self.sharedAxisTypeRef = None # type: RefType
90
- self.swAxisIndex = None # type: ARNumerical
91
- self.swCalprmRef = None # type: SwCalprmRefProxy
92
-
93
- def setSharedAxisTypeRef(self, ref: RefType):
94
- self.sharedAxisTypeRef = ref
95
- return self
96
-
97
- class SwCalprmAxis(ARObject):
98
- def __init__(self):
99
- super().__init__()
100
-
101
- self.category = None # type: CalprmAxisCategoryEnum
102
- self.displayFormat = None # type: DisplayFormatString
103
- self.sw_axis_index = None # type: AxisIndexType
104
- self.swCalibrationAccess = None # type: SwCalibrationAccessEnum
105
- self.sw_calprm_axis_type_props = None # type: SwCalprmAxisTypeProps
106
-
107
- class SwCalprmAxisSet(ARObject):
108
- def __init__(self):
109
- super().__init__()
110
-
111
- self._swCalprmAxis = [] # type: List[SwCalprmAxis]
112
-
113
- def addSwCalprmAxis(self, axis: SwCalprmAxis):
114
- self._swCalprmAxis.append(axis)
115
-
116
- def getSwCalprmAxises(self) -> List[SwCalprmAxis]:
117
- return self._swCalprmAxis
118
-
119
-
@@ -1,272 +0,0 @@
1
- #from __future__ import annotations
2
-
3
- from abc import ABCMeta
4
- from typing import List
5
-
6
- from .ar_object import ARBoolean, ARFloat, ARLiteral, ARNumerical
7
- from .general_structure import ARObject, Identifiable
8
- from .m2.msr.data_dictionary.data_def_properties import SwDataDefProps
9
- from .ar_ref import RefType, TRefType
10
-
11
- import re
12
-
13
-
14
- class ExclusiveArea(Identifiable):
15
- def __init__(self, parent: ARObject, short_name: str):
16
- super().__init__(parent, short_name)
17
-
18
- class IncludedModeDeclarationGroupSet(ARObject):
19
- def __init__(self):
20
- super().__init__()
21
-
22
- self.mode_declaration_group_refs = [] # type: List[RefType]
23
- self.prefix = None # type: ARLiteral
24
-
25
- def addModeDeclarationGroupRef(self, ref: RefType):
26
- self.mode_declaration_group_refs.append(ref)
27
- return self
28
-
29
- def getModeDeclarationGroupRefs(self) -> List[RefType]:
30
- return self.mode_declaration_group_refs
31
-
32
- def setPrefix(self, prefix: str):
33
- self.prefix = prefix
34
- return self
35
-
36
- def getPrefix(self) -> ARLiteral:
37
- return self.prefix
38
-
39
- class ModeDeclaration(Identifiable):
40
- def __init__(self, parent: ARObject, short_name: str):
41
- super().__init__(parent, short_name)
42
-
43
- self.value = None # type: ARNumerical
44
-
45
- def setValue(self, value):
46
- self.value = value
47
- return self
48
-
49
- def getValue(self) -> ARNumerical:
50
- return self.value
51
-
52
- class ExecutableEntity(Identifiable, metaclass=ABCMeta):
53
- def __init__(self, parent: ARObject, short_name: str):
54
- if type(self) == ExecutableEntity:
55
- raise NotImplementedError("ExecutableEntity is an abstract class.")
56
-
57
- super().__init__(parent, short_name)
58
-
59
- self.activationReason = None # *
60
- self.minimumStartInterval = None # type: ARFloat
61
- self.reentrancyLevel = None #
62
- self.canEnterExclusiveAreaRefs = [] # type: List[RefType]
63
- self.swAddrMethodRef = None # type: RefType
64
-
65
- def getActivationReason(self):
66
- return self.activationReason
67
-
68
- def setActivationReason(self, value):
69
- self.activationReason = value
70
- return self
71
-
72
- def getMinimumStartInterval(self):
73
- return self.minimumStartInterval
74
-
75
- def setMinimumStartInterval(self, value):
76
- self.minimumStartInterval = value
77
- return self
78
-
79
- def getReentrancyLevel(self):
80
- return self.reentrancyLevel
81
-
82
- def setReentrancyLevel(self, value):
83
- self.reentrancyLevel = value
84
- return self
85
-
86
- def getSwAddrMethodRef(self):
87
- return self.swAddrMethodRef
88
-
89
- def setSwAddrMethodRef(self, value):
90
- self.swAddrMethodRef = value
91
- return self
92
-
93
- @property
94
- def minimumStartIntervalMs(self) -> int:
95
- if self.minimumStartInterval is not None:
96
- return int(self.minimumStartInterval.getValue() * 1000)
97
- return None
98
-
99
- def addCanEnterExclusiveAreaRef(self, ref: RefType):
100
- self.canEnterExclusiveAreaRefs.append(ref)
101
-
102
- def getCanEnterExclusiveAreaRefs(self):
103
- return self.canEnterExclusiveAreaRefs
104
-
105
- class ModeDeclarationGroupPrototype(Identifiable):
106
- """
107
- The ModeDeclarationGroupPrototype specifies a set of Modes (ModeDeclarationGroup) which is provided or required in the given context.
108
- """
109
-
110
- def __init__(self, parent: ARObject, short_name: str):
111
- super().__init__(parent, short_name)
112
-
113
- self._swCalibrationAccess = None # type: str
114
- self.typeTRef = None # type: TRefType
115
-
116
- @property
117
- def sw_calibration_access(self):
118
- return self._swCalibrationAccess
119
-
120
- @sw_calibration_access.setter
121
- def sw_calibration_access(self, value):
122
- if (value not in ("notAccessible", "readOnly", "readWrite")):
123
- raise ValueError("Invalid SwCalibrationAccess <%s> of ModeDeclarationGroupPrototype <%s>" % (value, self.short_name))
124
- self._swCalibrationAccess = value
125
-
126
- def getSwCalibrationAccess(self):
127
- return self.swCalibrationAccess
128
-
129
- def setSwCalibrationAccess(self, value):
130
- self.swCalibrationAccess = value
131
- return self
132
-
133
- def getTypeTRef(self):
134
- return self.typeTRef
135
-
136
- def setTypeTRef(self, value):
137
- self.typeTRef = value
138
- return self
139
-
140
- class MemorySection(Identifiable):
141
- def __init__(self, parent: ARObject, short_name: str):
142
- super().__init__(parent, short_name)
143
-
144
- self._alignment = None # type: ARLiteral
145
- self.size = None
146
- self.options = [] # type: List[ARLiteral]
147
- self.swAddrMethodRef = None # type: RefType
148
- self.symbol = None # type: ARLiteral
149
-
150
- def getAlignment(self):
151
- return self.alignment
152
-
153
- def setAlignment(self, value):
154
- self.alignment = value
155
- return self
156
-
157
- def getSize(self):
158
- return self.size
159
-
160
- def setSize(self, value):
161
- self.size = value
162
- return self
163
-
164
- def getSwAddrMethodRef(self):
165
- return self.swAddrMethodRef
166
-
167
- def setSwAddrMethodRef(self, value):
168
- self.swAddrMethodRef = value
169
- return self
170
-
171
- def getSymbol(self):
172
- return self.symbol
173
-
174
- def setSymbol(self, value):
175
- self.symbol = value
176
- return self
177
-
178
- @property
179
- def alignment(self) -> ARLiteral:
180
- return self._alignment
181
-
182
- @alignment.setter
183
- def alignment(self, value: ARLiteral):
184
- if value is not None and value.getValue() != "":
185
- match = False
186
- if value.getValue() in ("UNKNOWN", "UNSPECIFIED", "BOOLEAN", "PTR"):
187
- self._alignment = value
188
- match = True
189
- else:
190
- m = re.match(r'^\d+', value.value)
191
- if m:
192
- self._alignment = value
193
- match = True
194
-
195
- if not match:
196
- raise ValueError("Invalid alignment <%s> of memory section <%s>" % (value, self.getShortName()))
197
-
198
- def addOption(self, option: ARLiteral):
199
- self.options.append(option)
200
-
201
- def getOptions(self) -> List[ARLiteral]:
202
- return self.options
203
-
204
- class ResourceConsumption(Identifiable):
205
- def __init__(self, parent: ARObject, short_name: str):
206
- super().__init__(parent, short_name)
207
-
208
- def createMemorySection(self, short_name: str) -> MemorySection:
209
- if (short_name not in self.elements):
210
- entry = MemorySection(self, short_name)
211
- self.elements[short_name] = entry
212
- return self.elements[short_name]
213
-
214
- def getMemorySections(self) -> List[MemorySection]:
215
- return list(filter(lambda a : isinstance(a, MemorySection), self.elements.values()))
216
-
217
- def getMemorySection(self, short_name: str) -> MemorySection:
218
- return next(filter(lambda o: isinstance(o, MemorySection) and (o.short_name == short_name), self.elements.values()), None)
219
-
220
- class Trigger(Identifiable):
221
- def __init__(self, parent: ARObject, short_name: str):
222
- super().__init__(parent, short_name)
223
-
224
- self.swImplPolicy = None # type: str
225
- self.triggerPeriod = None # type: float
226
-
227
- class ModeRequestTypeMap(ARObject):
228
- def __init__(self):
229
- super().__init__()
230
-
231
- self.implementation_data_type_ref = None # type: RefType
232
- self.mode_group_ref = None # type: RefType
233
-
234
- class ModeDeclarationGroup(Identifiable):
235
- def __init__(self, parent: ARObject, short_name: str):
236
- super().__init__(parent, short_name)
237
-
238
- self._initial_mode_ref = None # type: RefType
239
- self._on_transition_value = None # type: ARNumerical
240
-
241
- def createModeDeclaration(self, short_name: str) -> ModeDeclaration:
242
- if (short_name not in self.elements):
243
- spec = ModeDeclaration(self, short_name)
244
- self.elements[short_name] = spec
245
- return self.elements[short_name]
246
-
247
- def getModeDeclarations(self) -> List[ModeDeclaration]:
248
- return list(sorted(filter(lambda a: isinstance(a, ModeDeclaration), self.elements.values()), key= lambda o:o.short_name))
249
-
250
- def setInitialModeRef(self, ref: RefType):
251
- self._initial_mode_ref = ref
252
- return self
253
-
254
- def getInitialModeRef(self) -> RefType:
255
- return self._initial_mode_ref
256
-
257
- def setOnTransitionValue(self, value):
258
- if isinstance(value, int):
259
- value = ARNumerical()
260
- value.setValue(value)
261
- self._on_transition_value = value
262
- return self
263
-
264
- def getOnTransitionValue(self) -> ARNumerical:
265
- return self._on_transition_value
266
-
267
- class ModeDeclarationGroupPrototype(Identifiable):
268
- def __init__(self, parent: ARObject, short_name: str):
269
- super().__init__(parent, short_name)
270
-
271
- self.swCalibrationAccess = None # type: str
272
- self.type_tref = None # type: TRefType
@@ -1,17 +0,0 @@
1
-
2
- from .m2.autosar_templates.sw_component_template.port_interface.instance_refs import ApplicationCompositeElementInPortInterfaceInstanceRef
3
- from .m2.msr.data_dictionary.data_def_properties import SwDataDefProps
4
- from .ar_object import ARObject
5
-
6
- class TransmissionAcknowledgementRequest(ARObject):
7
- def __init__(self):
8
- super().__init__()
9
-
10
- self.timeout = None # type: float
11
-
12
- class CompositeNetworkRepresentation(ARObject):
13
- def __init__(self):
14
- super().__init__()
15
-
16
- self.leaf_element_iref = None # type: ApplicationCompositeElementInPortInterfaceInstanceRef
17
- self.network_representation = None # type: SwDataDefProps
@@ -1,16 +0,0 @@
1
- from typing import List
2
- from .ar_object import ARFloat, ARLiteral, ARObject
3
-
4
-
5
- class ValueList(ARObject):
6
- def __init__(self):
7
- super().__init__()
8
-
9
- self.v = None # type: ARFloat
10
- self._vf = [] # type: List[ARLiteral]
11
-
12
- def addVf(self, vf: ARLiteral):
13
- self._vf.append(vf)
14
-
15
- def getVfs(self) -> List[ARLiteral]:
16
- return sorted(self._vf)