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.
- armodel/cli/arxml_dump_cli.py +31 -25
- armodel/cli/arxml_format_cli.py +1 -4
- armodel/cli/connector_update_cli.py +1 -1
- armodel/cli/swc_list_cli.py +1 -1
- armodel/lib/sw_component.py +3 -1
- armodel/lib/system_signal.py +3 -1
- armodel/models/M2/AUTOSARTemplates/AutosarTopLevelStructure.py +123 -0
- armodel/models/{bsw_module_template.py → M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py} +115 -140
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswImplementation.py +21 -0
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswInterfaces.py +52 -0
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview.py +78 -0
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/Implementation.py +81 -0
- armodel/models/{m2/autosar_templates/common_structure/implementation_data_types.py → M2/AUTOSARTemplates/CommonStructure/ImplementationDataTypes.py} +20 -10
- armodel/models/M2/AUTOSARTemplates/CommonStructure/InternalBehavior.py +108 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ModeDeclaration.py +96 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/MemorySectionUsage.py +72 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/__init__.py +22 -0
- armodel/models/{service_needs.py → M2/AUTOSARTemplates/CommonStructure/ServiceNeeds.py} +7 -7
- armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcBswMapping.py +36 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcInternalBehavior/ModeDeclarationGroup.py +27 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcInternalBehavior/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/TriggerDeclaration.py +9 -0
- armodel/models/{m2/autosar_templates/common_structure → M2/AUTOSARTemplates/CommonStructure}/__init__.py +5 -2
- armodel/models/{m2/autosar_templates/generic_structure/abstract_structure.py → M2/AUTOSARTemplates/GenericStructure/AbstractStructure.py} +25 -2
- armodel/models/{ar_package.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ARPackage.py} +113 -218
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ArObject.py +16 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ElementCollection.py +1 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/EngineeringObject.py +55 -0
- armodel/models/{general_structure.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/Identifiable.py} +37 -149
- armodel/models/{ar_object.py → M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/PrimitiveTypes.py} +163 -70
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/__init__.py +1 -0
- armodel/models/{m2/autosar_templates/sw_component_template/communication.py → M2/AUTOSARTemplates/SWComponentTemplate/Communication.py} +22 -5
- armodel/models/{m2/autosar_templates/sw_component_template/components/instance_refs.py → M2/AUTOSARTemplates/SWComponentTemplate/Components/InstanceRefs.py} +2 -2
- armodel/models/{m2/autosar_templates/sw_component_template/components → M2/AUTOSARTemplates/SWComponentTemplate/Components}/__init__.py +10 -8
- armodel/models/{m2/autosar_templates/sw_component_template/composition/instance_refs.py → M2/AUTOSARTemplates/SWComponentTemplate/Composition/InstanceRefs.py} +2 -2
- armodel/models/{m2/autosar_templates/sw_component_template/composition → M2/AUTOSARTemplates/SWComponentTemplate/Composition}/__init__.py +5 -5
- armodel/models/{m2/autosar_templates/sw_component_template/data_type/data_prototypes.py → M2/AUTOSARTemplates/SWComponentTemplate/Datatype/DataPrototypes.py} +25 -7
- armodel/models/{datatype.py → M2/AUTOSARTemplates/SWComponentTemplate/Datatype/Datatypes.py} +16 -74
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Datatype/__init__.py +1 -0
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/EndToEndProtection.py +177 -0
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcImplementation.py +11 -0
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/access_count.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/AccessCount.py} +2 -2
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/data_elements.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/DataElements.py} +7 -5
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/IncludedDataTypes.py +24 -0
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/instance_refs_usage.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/InstanceRefsUsage.py} +3 -3
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/mode_declaration_group.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ModeDeclarationGroup.py} +3 -3
- armodel/models/{per_instance_memory.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/PerInstanceMemory.py} +5 -6
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/server_call.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServerCall.py} +3 -3
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServiceMapping.py +23 -0
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior/trigger.py → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/Trigger.py} +2 -2
- armodel/models/{m2/autosar_templates/sw_component_template/swc_internal_behavior → M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior}/__init__.py +9 -10
- armodel/models/{m2/autosar_templates/sw_component_template → M2/AUTOSARTemplates/SWComponentTemplate}/port_interface/__init__.py +12 -8
- armodel/models/{m2/autosar_templates/sw_component_template → M2/AUTOSARTemplates/SWComponentTemplate}/port_interface/instance_refs.py +2 -2
- armodel/models/{m2/autosar_templates/system_template/instance_refs.py → M2/AUTOSARTemplates/SystemTemplate/InstanceRefs.py} +2 -2
- armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/__init__.py +4 -2
- armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/data_mapping.py +2 -2
- armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/network_management.py +7 -3
- armodel/models/{m2/autosar_templates/system_template → M2/AUTOSARTemplates/SystemTemplate}/transport_protocols.py +1 -1
- armodel/models/{m2/autosar_templates → M2/AUTOSARTemplates}/ecuc_description_template.py +10 -6
- armodel/models/M2/MSR/AsamHdo/AdminData.py +21 -0
- armodel/models/M2/MSR/AsamHdo/BaseTypes.py +77 -0
- armodel/models/{m2_msr.py → M2/MSR/AsamHdo/ComputationMethod.py} +44 -28
- armodel/models/{global_constraints.py → M2/MSR/AsamHdo/Constraints/GlobalConstraints.py} +7 -4
- armodel/models/M2/MSR/AsamHdo/Constraints/__init__.py +1 -0
- armodel/models/M2/MSR/AsamHdo/SpecialData.py +63 -0
- armodel/models/{m2/msr/asam_hdo/units.py → M2/MSR/AsamHdo/Units.py} +6 -3
- armodel/models/M2/MSR/AsamHdo/__init__.py +1 -0
- armodel/models/M2/MSR/CalibrationData/CalibrationValue.py +30 -0
- armodel/models/M2/MSR/CalibrationData/__init__.py +1 -0
- armodel/models/{m2/msr/data_dictionary/auxillary_objects.py → M2/MSR/DataDictionary/AuxillaryObjects.py} +4 -2
- armodel/models/M2/MSR/DataDictionary/Axis.py +145 -0
- armodel/models/M2/MSR/DataDictionary/CalibrationParameter.py +37 -0
- armodel/models/{m2/msr/data_dictionary/data_def_properties.py → M2/MSR/DataDictionary/DataDefProperties.py} +19 -9
- armodel/models/{record_layout.py → M2/MSR/DataDictionary/RecordLayout.py} +26 -25
- armodel/models/M2/MSR/DataDictionary/__init__.py +1 -0
- armodel/models/{annotation.py → M2/MSR/Documentation/Annotation.py} +8 -8
- armodel/models/{m2/msr/documentation/block_elements.py → M2/MSR/Documentation/BlockElements.py} +2 -2
- armodel/models/M2/MSR/Documentation/TextModel/LanguageDataModel.py +17 -0
- armodel/models/{multilanguage_data.py → M2/MSR/Documentation/TextModel/MultilanguageData.py} +21 -30
- armodel/models/M2/MSR/Documentation/TextModel/__init__.py +2 -0
- armodel/models/M2/MSR/Documentation/__init__.py +3 -0
- armodel/models/M2/MSR/__init__.py +1 -0
- armodel/models/M2/__init__.py +1 -0
- armodel/models/__init__.py +6 -23
- armodel/models/fibex/can_communication.py +3 -2
- armodel/models/fibex/fibex_4_multiplatform.py +5 -3
- armodel/models/fibex/fibex_core/core_communication.py +9 -3
- armodel/models/fibex/fibex_core/core_topology.py +7 -3
- armodel/models/fibex/lin_communication.py +5 -1
- armodel/models/rpt_scenario.py +2 -2
- armodel/models/sw_component.py +19 -14
- armodel/models/timing.py +3 -3
- armodel/parser/abstract_arxml_parser.py +8 -4
- armodel/parser/arxml_parser.py +120 -86
- armodel/parser/connector_xlsx_parser.py +6 -2
- armodel/report/connector_xls_report.py +2 -1
- armodel/tests/test_armodel/models/test_ar_object.py +2 -1
- armodel/tests/test_armodel/models/test_ar_package.py +20 -8
- armodel/tests/test_armodel/models/test_ar_ref.py +7 -5
- armodel/tests/test_armodel/models/test_bsw_module_template.py +5 -1
- armodel/tests/test_armodel/models/test_common_structure.py +11 -5
- armodel/tests/test_armodel/models/test_data_dictionary.py +2 -2
- armodel/tests/test_armodel/models/test_data_prototype.py +7 -3
- armodel/tests/test_armodel/models/test_datatype.py +22 -8
- armodel/tests/test_armodel/models/test_general_structure.py +12 -2
- armodel/tests/test_armodel/models/test_implementation.py +3 -2
- armodel/tests/test_armodel/models/test_m2_msr.py +4 -2
- armodel/tests/test_armodel/models/test_port_interface.py +16 -6
- armodel/tests/test_armodel/models/test_port_prototype.py +1 -1
- armodel/tests/test_armodel/parser/test_parse_bswmd.py +3 -1
- armodel/tests/test_armodel/parser/test_sw_components.py +2 -2
- armodel/tests/test_armodel/parser/test_system.py +30 -0
- armodel/writer/abstract_arxml_writer.py +5 -2
- armodel/writer/arxml_writer.py +100 -67
- {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/METADATA +366 -356
- armodel-1.6.3.dist-info/RECORD +148 -0
- {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/WHEEL +1 -1
- armodel/lib/data_analyzer.py +0 -34
- armodel/models/ar_ref.py +0 -25
- armodel/models/calibration.py +0 -119
- armodel/models/common_structure.py +0 -272
- armodel/models/communication.py +0 -17
- armodel/models/data_def_properties.py +0 -16
- armodel/models/data_dictionary.py +0 -59
- armodel/models/data_prototype.py +0 -103
- armodel/models/ecuc_parameter_def_template.py +0 -0
- armodel/models/end_to_end_protection.py +0 -67
- armodel/models/fibex/fibex_core.py +0 -341
- armodel/models/fibex/lin_topology.py +0 -7
- armodel/models/implementation.py +0 -135
- armodel/models/internal_behavior.py +0 -63
- armodel/models/m2/autosar_templates/common_structure/constants.py +0 -0
- armodel/models/m2/autosar_templates/common_structure/implementation.py +0 -21
- armodel/models/m2/autosar_templates/generic_structure/__init__.py +0 -0
- armodel/models/m2/autosar_templates/sw_component_template/__init__.py +0 -0
- armodel/models/m2/autosar_templates/sw_component_template/data_type/__init__.py +0 -0
- armodel/models/m2/autosar_templates/sw_component_template/port_interface.py +0 -236
- armodel/models/m2/msr/__init__.py +0 -0
- armodel/models/m2/msr/asam_hdo/__init__.py +0 -0
- armodel/models/m2/msr/data_dictionary/__init__.py +0 -0
- armodel/models/m2/msr/documentation/__init__.py +0 -0
- armodel/models/mode_declaration.py +0 -8
- armodel/models/port_interface.py +0 -165
- armodel/models/port_prototype.py +0 -6
- armodel/models/service_mapping.py +0 -11
- armodel/models/system_template/__init__.py +0 -0
- armodel/models/system_template/network_management.py +0 -7
- armodel/models/system_template/transport_protocols.py +0 -7
- armodel/models/unit.py +0 -14
- armodel-1.6.1.dist-info/RECORD +0 -140
- /armodel/models/{m2 → M2/AUTOSARTemplates/SWComponentTemplate}/__init__.py +0 -0
- /armodel/models/{m2/autosar_templates → M2/AUTOSARTemplates}/__init__.py +0 -0
- {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/LICENSE +0 -0
- {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/entry_points.txt +0 -0
- {armodel-1.6.1.dist-info → armodel-1.6.3.dist-info}/top_level.txt +0 -0
armodel/parser/arxml_parser.py
CHANGED
|
@@ -2,70 +2,96 @@ from typing import List
|
|
|
2
2
|
import xml.etree.ElementTree as ET
|
|
3
3
|
import os
|
|
4
4
|
|
|
5
|
-
from ..models.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
from ..models.
|
|
9
|
-
from ..models.
|
|
10
|
-
from ..models.
|
|
11
|
-
from ..models.
|
|
12
|
-
from ..models.
|
|
13
|
-
from ..models.
|
|
14
|
-
from ..models.
|
|
15
|
-
from ..models.
|
|
16
|
-
from ..models.
|
|
17
|
-
|
|
18
|
-
from ..models.
|
|
19
|
-
|
|
20
|
-
from ..models.
|
|
5
|
+
from ..models.M2.MSR.DataDictionary.RecordLayout import SwRecordLayoutGroupContent, SwRecordLayoutV
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
from ..models.M2.MSR.AsamHdo.Constraints.GlobalConstraints import DataConstrRule, InternalConstrs, PhysConstrs
|
|
9
|
+
from ..models.M2.MSR.DataDictionary.CalibrationParameter import SwCalprmAxis
|
|
10
|
+
from ..models.M2.MSR.DataDictionary.Axis import SwAxisGrouped, SwAxisIndividual
|
|
11
|
+
from ..models.M2.MSR.CalibrationData.CalibrationValue import SwValues
|
|
12
|
+
from ..models.M2.MSR.AsamHdo.BaseTypes import BaseTypeDirectDefinition
|
|
13
|
+
from ..models.M2.MSR.AsamHdo.SpecialData import Sdg
|
|
14
|
+
from ..models.M2.MSR.AsamHdo.AdminData import AdminData
|
|
15
|
+
from ..models.M2.MSR.AsamHdo.ComputationMethod import Compu, CompuConst, CompuConstTextContent, CompuNominatorDenominator, CompuRationalCoeffs, CompuScale, CompuScaleConstantContents, CompuScaleRationalFormula, CompuScales
|
|
16
|
+
from ..models.M2.MSR.Documentation.TextModel.LanguageDataModel import LOverviewParagraph
|
|
17
|
+
from ..models.M2.MSR.Documentation.TextModel.MultilanguageData import MultiLanguageOverviewParagraph, MultiLanguageParagraph, MultilanguageLongName
|
|
18
|
+
from ..models.M2.MSR.Documentation.Annotation import GeneralAnnotation
|
|
19
|
+
|
|
20
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.Datatypes import ApplicationCompositeDataType, ApplicationDataType, AutosarDataType, DataTypeMap, DataTypeMappingSet
|
|
21
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.Implementation import Code
|
|
22
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.EndToEndProtection import EndToEndDescription, EndToEndProtection, EndToEndProtectionVariablePrototype
|
|
23
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.ModeDeclaration import ModeDeclarationGroup, ModeRequestTypeMap
|
|
24
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.EngineeringObject import AutosarEngineeringObject, EngineeringObject
|
|
25
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.ResourceConsumption import ResourceConsumption
|
|
26
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.ResourceConsumption.MemorySectionUsage import MemorySection
|
|
27
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.InternalBehavior import ExecutableEntity
|
|
28
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.SwcInternalBehavior.ModeDeclarationGroup import IncludedModeDeclarationGroupSet
|
|
29
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.SwcBswMapping import SwcBswMapping, SwcBswRunnableMapping
|
|
30
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable
|
|
31
|
+
from ..models.M2.AUTOSARTemplates.BswModuleTemplate.BswBehavior import BswInternalBehavior, BswModuleEntity, BswScheduleEvent
|
|
32
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ARPackage import ARPackage
|
|
33
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
34
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.Implementation import ImplementationProps
|
|
35
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure import ApplicationValueSpecification, ArrayValueSpecification, ConstantReference, NumericalValueSpecification, RecordValueSpecification, TextValueSpecification, ValueSpecification
|
|
36
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.AbstractStructure import AnyInstanceRef
|
|
37
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.ImplementationDataTypes import ImplementationDataTypeElement
|
|
38
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Composition.InstanceRefs import POperationInAtomicSwcInstanceRef, PPortInCompositionInstanceRef, ROperationInAtomicSwcInstanceRef, RPortInCompositionInstanceRef
|
|
39
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.port_interface.instance_refs import ApplicationCompositeElementInPortInterfaceInstanceRef
|
|
40
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.InstanceRefsUsage import AutosarParameterRef, AutosarVariableRef, VariableInAtomicSWCTypeInstanceRef
|
|
41
|
+
from ..models.M2.AUTOSARTemplates.SystemTemplate.InstanceRefs import VariableDataPrototypeInSystemInstanceRef
|
|
42
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Components.InstanceRefs import InnerPortGroupInCompositionInstanceRef, PModeGroupInAtomicSwcInstanceRef, RModeGroupInAtomicSWCInstanceRef
|
|
43
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior import RunnableEntityArgument
|
|
44
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Components import PortGroup, SwComponentType, SymbolProps, PPortPrototype, RPortPrototype
|
|
45
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Composition import AssemblySwConnector, CompositionSwComponentType, DelegationSwConnector
|
|
46
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.ModeDeclarationGroup import ModeAccessPoint
|
|
47
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.ServerCall import ServerCallPoint
|
|
48
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Communication import ClientComSpec, ModeSwitchReceiverComSpec, ModeSwitchSenderComSpec, NonqueuedReceiverComSpec, NonqueuedSenderComSpec, ParameterRequireComSpec, QueuedReceiverComSpec, QueuedSenderComSpec, ReceiverComSpec, SenderComSpec, ServerComSpec
|
|
49
|
+
|
|
21
50
|
from ..models.fibex.lin_communication import LinFrameTriggering
|
|
22
51
|
from ..models.fibex.fibex_core.core_topology import AbstractCanCluster, CanPhysicalChannel, CommunicationCluster, LinPhysicalChannel, PhysicalChannel
|
|
23
|
-
from ..models.
|
|
24
|
-
from ..models.
|
|
25
|
-
from ..models.
|
|
26
|
-
from ..models.
|
|
27
|
-
from ..models.
|
|
52
|
+
from ..models.M2.MSR.DataDictionary.DataDefProperties import SwDataDefProps, SwPointerTargetProps
|
|
53
|
+
from ..models.M2.MSR.Documentation.BlockElements import DocumentationBlock
|
|
54
|
+
from ..models.M2.AUTOSARTemplates.SystemTemplate import System, SystemMapping
|
|
55
|
+
from ..models.M2.AUTOSARTemplates.SystemTemplate.data_mapping import SenderReceiverToSignalGroupMapping, SenderReceiverToSignalMapping
|
|
56
|
+
from ..models.M2.AUTOSARTemplates.SystemTemplate.network_management import CanNmCluster, CanNmClusterCoupling, CanNmNode, NmCluster, NmConfig, NmNode
|
|
28
57
|
from ..models.fibex.can_communication import CanFrameTriggering, RxIdentifierRange
|
|
29
|
-
from ..models.
|
|
58
|
+
from ..models.M2.AUTOSARTemplates.ecuc_description_template import EcucAbstractReferenceValue, EcucContainerValue, EcucInstanceReferenceValue, EcucModuleConfigurationValues, EcucNumericalParamValue, EcucParameterValue, EcucReferenceValue, EcucTextualParamValue, EcucValueCollection
|
|
59
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Communication import CompositeNetworkRepresentation, TransmissionAcknowledgementRequest
|
|
30
60
|
from ..models.fibex.fibex_4_multiplatform import ISignalMapping
|
|
31
61
|
from ..models.fibex.fibex_core.core_communication import Frame, FrameTriggering, IPdu, ISignalIPdu, ISignalTriggering, PduTriggering
|
|
32
|
-
from ..models.
|
|
62
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.IncludedDataTypes import IncludedDataTypeSet
|
|
33
63
|
from ..models.timing import ExecutionOrderConstraint, TimingExtension
|
|
34
|
-
from ..models.
|
|
35
|
-
from ..models.
|
|
36
|
-
from ..models.
|
|
37
|
-
from ..models.
|
|
38
|
-
from ..models.
|
|
39
|
-
from ..models.
|
|
40
|
-
from ..models.
|
|
41
|
-
from ..models.
|
|
42
|
-
from ..models.
|
|
43
|
-
from ..models.
|
|
44
|
-
|
|
45
|
-
from ..models.
|
|
46
|
-
from ..models.
|
|
47
|
-
from ..models.
|
|
48
|
-
from ..models.
|
|
49
|
-
from ..models.
|
|
64
|
+
from ..models.M2.AUTOSARTemplates.BswModuleTemplate.BswBehavior import BswModeSenderPolicy
|
|
65
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.port_interface import ArgumentDataPrototype, ClientServerInterface, ClientServerOperation, InvalidationPolicy, ModeSwitchInterface, ParameterInterface, PortInterface, SenderReceiverInterface
|
|
66
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.ModeDeclaration import ModeDeclarationGroupPrototype
|
|
67
|
+
from ..models.M2.AUTOSARTemplates.BswModuleTemplate.BswImplementation import BswImplementation
|
|
68
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import MultilanguageReferrable
|
|
69
|
+
from ..models.M2.MSR.Documentation.TextModel.LanguageDataModel import LLongName
|
|
70
|
+
from ..models.M2.MSR.DataDictionary.DataDefProperties import ValueList
|
|
71
|
+
from ..models.M2.MSR.DataDictionary.RecordLayout import SwRecordLayoutGroup
|
|
72
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.Datatypes import ApplicationArrayDataType
|
|
73
|
+
from ..models.M2.MSR.DataDictionary.CalibrationParameter import SwCalprmAxisSet
|
|
74
|
+
|
|
75
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.EndToEndProtection import EndToEndProtectionSet
|
|
76
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.ServiceMapping import RoleBasedPortAssignment
|
|
77
|
+
from ..models.M2.AUTOSARTemplates.AutosarTopLevelStructure import AUTOSAR
|
|
78
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral
|
|
79
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.ServiceNeeds import RoleBasedDataAssignment
|
|
50
80
|
from ..models.sw_component import AtomicSwComponentType, PortAPIOption, PortDefinedArgumentValue, ServiceDependency, SwcServiceDependency
|
|
51
|
-
from ..models.
|
|
52
|
-
from ..models.
|
|
53
|
-
from ..models.
|
|
54
|
-
from ..models.
|
|
81
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.DataPrototypes import ApplicationCompositeElementDataPrototype, AutosarDataPrototype, DataPrototype, ParameterDataPrototype, VariableDataPrototype
|
|
82
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.Implementation import Implementation
|
|
83
|
+
from ..models.M2.MSR.Documentation.Annotation import Annotation
|
|
84
|
+
from ..models.M2.MSR.AsamHdo.Constraints.GlobalConstraints import DataConstr
|
|
85
|
+
from ..models.M2.MSR.AsamHdo.SpecialData import Sd
|
|
86
|
+
from ..models.M2.MSR.AsamHdo.ComputationMethod import CompuMethod
|
|
87
|
+
from ..models.M2.MSR.CalibrationData.CalibrationValue import SwValueCont
|
|
55
88
|
|
|
56
89
|
from ..models import SwcInternalBehavior, RunnableEntity, RTEEvent, OperationInvokedEvent, DataReceivedEvent, RVariableInAtomicSwcInstanceRef
|
|
57
90
|
from ..models import SwcModeSwitchEvent, RModeInAtomicSwcInstanceRef
|
|
58
|
-
|
|
59
|
-
from ..models import
|
|
60
|
-
from ..models import
|
|
61
|
-
from ..models import
|
|
62
|
-
from ..models import CompuMethod, CompuScale, CompuScales, Compu, CompuConst, CompuConstTextContent, CompuScaleConstantContents, CompuScaleRationalFormula, CompuRationalCoeffs, CompuNominatorDenominator
|
|
63
|
-
from ..models import InternalBehavior, ExecutableEntity
|
|
64
|
-
from ..models import Implementation, Code, AutosarEngineeringObject, ResourceConsumption
|
|
65
|
-
from ..models import TransmissionAcknowledgementRequest
|
|
66
|
-
from ..models import BswModuleDescription, BswInternalBehavior, BswModuleEntity, BswScheduleEvent, SwcBswMapping, SwcBswRunnableMapping
|
|
67
|
-
from ..models import ApplicationRecordDataType
|
|
68
|
-
from ..models import SwValueCont, SwValues
|
|
91
|
+
from ..models import ImplementationDataType
|
|
92
|
+
from ..models.M2.AUTOSARTemplates.CommonStructure.InternalBehavior import InternalBehavior
|
|
93
|
+
from ..models.M2.AUTOSARTemplates.BswModuleTemplate.BswOverview import BswModuleDescription
|
|
94
|
+
from ..models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.Datatypes import ApplicationRecordDataType
|
|
69
95
|
|
|
70
96
|
from .abstract_arxml_parser import AbstractARXMLParser
|
|
71
97
|
|
|
@@ -224,7 +250,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
224
250
|
ref = self.getChildElementOptionalRefType(child_element, "BSW-MODULE-ENTRY-REF")
|
|
225
251
|
if (ref is not None):
|
|
226
252
|
parent.addImplementedEntry(ref)
|
|
227
|
-
self.logger.debug("ImplementedEntry <%s> of BswModuleDescription <%s> has been added", ref.value, parent.
|
|
253
|
+
self.logger.debug("ImplementedEntry <%s> of BswModuleDescription <%s> has been added", ref.value, parent.getShortName())
|
|
228
254
|
|
|
229
255
|
def readModeDeclarationGroupPrototype(self, element: ET.Element, prototype: ModeDeclarationGroupPrototype):
|
|
230
256
|
self.readIdentifiable(element, prototype)
|
|
@@ -243,14 +269,14 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
243
269
|
short_name = self.getShortName(child_element)
|
|
244
270
|
self.logger.debug("readRequiredModeGroup %s" % short_name)
|
|
245
271
|
mode_group = parent.createProvidedModeGroup(short_name)
|
|
246
|
-
mode_group.type_tref = self.getChildElementRefType(parent.
|
|
272
|
+
mode_group.type_tref = self.getChildElementRefType(parent.getShortName(), child_element, "TYPE-TREF")
|
|
247
273
|
|
|
248
274
|
def readCanEnterExclusiveAreaRefs(self, element: ET.Element, entity: ExecutableEntity):
|
|
249
275
|
for ref in self.getChildElementRefTypeList(element, "CAN-ENTER-EXCLUSIVE-AREA-REFS/CAN-ENTER-EXCLUSIVE-AREA-REF"):
|
|
250
276
|
entity.addCanEnterExclusiveAreaRef(ref)
|
|
251
277
|
|
|
252
278
|
def readExecutableEntity(self, element: ET.Element, entity: ExecutableEntity):
|
|
253
|
-
self.logger.debug("readExecutableEntity %s" % entity.
|
|
279
|
+
self.logger.debug("readExecutableEntity %s" % entity.getShortName())
|
|
254
280
|
self.readIdentifiable(element, entity)
|
|
255
281
|
self.readCanEnterExclusiveAreaRefs(element, entity)
|
|
256
282
|
entity.setMinimumStartInterval(self.getChildElementOptionalFloatValue(element, "MINIMUM-START-INTERVAL")) \
|
|
@@ -264,7 +290,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
264
290
|
|
|
265
291
|
def readBswModuleEntity(self, element: ET.Element, entity: BswModuleEntity):
|
|
266
292
|
self.readExecutableEntity(element, entity)
|
|
267
|
-
entity.setImplementedEntryRef(self.getChildElementRefType(entity.
|
|
293
|
+
entity.setImplementedEntryRef(self.getChildElementRefType(entity.getShortName(), element, "IMPLEMENTED-ENTRY-REF"))
|
|
268
294
|
self.readBswModuleEntityManagedModeGroup(element, entity)
|
|
269
295
|
|
|
270
296
|
def readBswCalledEntity(self, element: ET.Element, parent: BswInternalBehavior):
|
|
@@ -283,7 +309,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
283
309
|
self.readBswModuleEntity(child_element, entity)
|
|
284
310
|
|
|
285
311
|
def readBswEvent(self, element: ET.Element, event: BswScheduleEvent):
|
|
286
|
-
event.startsOnEventRef = self.getChildElementRefType(event.
|
|
312
|
+
event.startsOnEventRef = self.getChildElementRefType(event.getShortName(), element, "STARTS-ON-EVENT-REF")
|
|
287
313
|
|
|
288
314
|
def readBswScheduleEvent(self, element, event: BswScheduleEvent):
|
|
289
315
|
self.readBswEvent(element, event)
|
|
@@ -310,7 +336,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
310
336
|
short_name = self.getShortName(child_element)
|
|
311
337
|
self.logger.debug("readBswDataReceivedEvent %s" % short_name)
|
|
312
338
|
event = parent.createBswDataReceivedEvent(short_name)
|
|
313
|
-
event.data_ref = self.getChildElementRefType(parent.
|
|
339
|
+
event.data_ref = self.getChildElementRefType(parent.getShortName(), child_element, "DATA-REF")
|
|
314
340
|
# Read the Inherit BswScheduleEvent
|
|
315
341
|
self.readBswScheduleEvent(child_element, event)
|
|
316
342
|
|
|
@@ -319,7 +345,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
319
345
|
short_name = self.getShortName(child_element)
|
|
320
346
|
self.logger.debug("readBswInternalTriggerOccurredEvent %s" % short_name)
|
|
321
347
|
event = parent.createBswInternalTriggerOccurredEvent(short_name)
|
|
322
|
-
event.event_source_ref = self.getChildElementRefType(parent.
|
|
348
|
+
event.event_source_ref = self.getChildElementRefType(parent.getShortName(), child_element, "EVENT-SOURCE-REF")
|
|
323
349
|
# Read the Inherit BswScheduleEvent
|
|
324
350
|
self.readBswScheduleEvent(child_element, event)
|
|
325
351
|
|
|
@@ -366,7 +392,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
366
392
|
|
|
367
393
|
def getRoleBasedPortAssignment(self, element: ET.Element) -> RoleBasedPortAssignment:
|
|
368
394
|
assignment = RoleBasedPortAssignment()
|
|
369
|
-
assignment.
|
|
395
|
+
assignment.portPrototypeRef = self.getChildElementOptionalRefType(element, "PORT-PROTOTYPE-REF")
|
|
370
396
|
assignment.role = self.getChildElementOptionalLiteral(element, "ROLE")
|
|
371
397
|
return assignment
|
|
372
398
|
|
|
@@ -513,7 +539,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
513
539
|
entry.sw_service_impl_policy = self.getChildElementOptionalLiteral(element, "SW-SERVICE-IMPL-POLICY")
|
|
514
540
|
|
|
515
541
|
#self.logger.debug("readBswModuleEntry \n%s" % entry)
|
|
516
|
-
self.logger.debug("readBswModuleEntry %s" % entry.
|
|
542
|
+
self.logger.debug("readBswModuleEntry %s" % entry.getShortName())
|
|
517
543
|
|
|
518
544
|
def readEngineeringObject(self, element: ET.Element, engineering_obj: EngineeringObject):
|
|
519
545
|
self.readElementAttributes(element, engineering_obj)
|
|
@@ -558,7 +584,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
558
584
|
memory_section.size = self.getChildElementOptionalNumericalValue(child_element, "SIZE")
|
|
559
585
|
memory_section.swAddrMethodRef = self.getChildElementOptionalRefType(child_element, "SW-ADDRMETHOD-REF")
|
|
560
586
|
memory_section.symbol = self.getChildElementOptionalLiteral(child_element, "SYMBOL")
|
|
561
|
-
self.logger.debug("readMemorySections %s" % memory_section.
|
|
587
|
+
self.logger.debug("readMemorySections %s" % memory_section.getShortName())
|
|
562
588
|
|
|
563
589
|
def readResourceConsumption(self, element: ET.Element, impl: Implementation):
|
|
564
590
|
child_element = element.find("./xmlns:RESOURCE-CONSUMPTION", self.nsmap)
|
|
@@ -588,7 +614,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
588
614
|
def readBswImplementation(self, element: ET.Element, parent: ARPackage):
|
|
589
615
|
short_name = self.getShortName(element)
|
|
590
616
|
impl = parent.createBswImplementation(short_name)
|
|
591
|
-
self.logger.debug("readBswImplementation %s" % impl.
|
|
617
|
+
self.logger.debug("readBswImplementation %s" % impl.getShortName())
|
|
592
618
|
self.readImplementation(element, impl)
|
|
593
619
|
impl.ar_release_version = self.getChildElementOptionalLiteral(element, "AR-RELEASE-VERSION")
|
|
594
620
|
impl.behavior_ref = self.getChildElementOptionalRefType(element, "BEHAVIOR-REF")
|
|
@@ -597,7 +623,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
597
623
|
def readSwcImplementation(self, element: ET.Element, parent: ARPackage):
|
|
598
624
|
short_name = self.getShortName(element)
|
|
599
625
|
impl = parent.createSwcImplementation(short_name)
|
|
600
|
-
self.logger.debug("readSwcImplementation %s" % impl.
|
|
626
|
+
self.logger.debug("readSwcImplementation %s" % impl.getShortName())
|
|
601
627
|
self.readImplementation(element, impl)
|
|
602
628
|
impl.behavior_ref = self.getChildElementOptionalRefType(element, "BEHAVIOR-REF")
|
|
603
629
|
|
|
@@ -790,8 +816,8 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
790
816
|
child_element = element.find("./xmlns:OPERATION-IREF", self.nsmap)
|
|
791
817
|
if (child_element is not None):
|
|
792
818
|
parent.operation_iref = POperationInAtomicSwcInstanceRef()
|
|
793
|
-
parent.operation_iref.context_p_port_ref = self.getChildElementRefType(parent.
|
|
794
|
-
parent.operation_iref.target_provided_operation_ref = self.getChildElementRefType(parent.
|
|
819
|
+
parent.operation_iref.context_p_port_ref = self.getChildElementRefType(parent.getShortName(), child_element, "CONTEXT-P-PORT-REF")
|
|
820
|
+
parent.operation_iref.target_provided_operation_ref = self.getChildElementRefType(parent.getShortName(), child_element, "TARGET-PROVIDED-OPERATION-REF")
|
|
795
821
|
|
|
796
822
|
def readOperationInvokedEvent(self, element: ET.Element, parent: SwcInternalBehavior):
|
|
797
823
|
short_name = self.getShortName(element)
|
|
@@ -876,7 +902,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
876
902
|
short_name = self.getShortName(element)
|
|
877
903
|
event = parent.createInternalTriggerOccurredEvent(short_name)
|
|
878
904
|
self.readRTEEvent(element, event)
|
|
879
|
-
event.event_source_ref = self.getChildElementRefType(parent.
|
|
905
|
+
event.event_source_ref = self.getChildElementRefType(parent.getShortName(), element, "EVENT-SOURCE-REF")
|
|
880
906
|
|
|
881
907
|
def readInitEvent(self, element, parent: SwcInternalBehavior):
|
|
882
908
|
short_name = self.getShortName(element)
|
|
@@ -1048,14 +1074,14 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
1048
1074
|
self.readApplicationRecordElements(element, data_type)
|
|
1049
1075
|
|
|
1050
1076
|
def readImplementationDataTypeElements(self, element: ET.Element, parent: ImplementationDataType):
|
|
1051
|
-
for child_element in
|
|
1077
|
+
for child_element in self.findall(element, "SUB-ELEMENTS/IMPLEMENTATION-DATA-TYPE-ELEMENT"):
|
|
1052
1078
|
short_name = self.getShortName(child_element)
|
|
1053
|
-
type_element = parent.createImplementationDataTypeElement(short_name)
|
|
1079
|
+
type_element = parent.createImplementationDataTypeElement(short_name)
|
|
1054
1080
|
self.readIdentifiable(child_element, type_element)
|
|
1055
1081
|
type_element.setArraySize(self.getChildElementOptionalLiteral(child_element, "ARRAY-SIZE")) \
|
|
1056
1082
|
.setArraySizeSemantics(self.getChildElementOptionalLiteral(child_element, "ARRAY-SIZE-SEMANTICS"))
|
|
1057
1083
|
self.readImplementationDataTypeElements(child_element, type_element)
|
|
1058
|
-
type_element.
|
|
1084
|
+
type_element.setSwDataDefProps(self.getSwDataDefProps(child_element, "SW-DATA-DEF-PROPS"))
|
|
1059
1085
|
|
|
1060
1086
|
def readImplementationDataType(self, element: ET.Element, parent: ARPackage):
|
|
1061
1087
|
short_name = self.getShortName(element)
|
|
@@ -1063,32 +1089,40 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
1063
1089
|
self.readAutosarDataType(element, data_type)
|
|
1064
1090
|
self.readImplementationDataTypeElements(element, data_type)
|
|
1065
1091
|
data_type.setTypeEmitter(self.getChildElementOptionalLiteral(element, "TYPE-EMITTER"))
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
'''
|
|
1066
1095
|
if (data_type.getCategory().getValue() == ImplementationDataType.CATEGORY_ARRAY):
|
|
1067
1096
|
if (len(data_type.getImplementationDataTypeElements()) < 1):
|
|
1068
|
-
self._raiseError("Array Sub-Element of <%s> do not defined." % data_type.
|
|
1097
|
+
self._raiseError("Array Sub-Element of <%s> do not defined." % data_type.getShortName())
|
|
1069
1098
|
|
|
1070
1099
|
array_sub_element = data_type.getImplementationDataTypeElements()[0]
|
|
1071
|
-
if (array_sub_element.
|
|
1100
|
+
if (array_sub_element.getCategory().getValue() == ImplementationDataType.CATEGORY_TYPE_REFERENCE):
|
|
1072
1101
|
data_type.setArrayElementType(array_sub_element.swDataDefProps.implementationDataTypeRef.value)
|
|
1073
|
-
elif (array_sub_element.
|
|
1102
|
+
elif (array_sub_element.getCategory().getValue() == ImplementationDataType.CATEGORY_TYPE_VALUE): # TODO: fix
|
|
1074
1103
|
return
|
|
1075
1104
|
else:
|
|
1076
|
-
self._raiseError("The category <%s> of array sub-element <%s> does not support." % (
|
|
1105
|
+
self._raiseError("The category <%s> of array sub-element <%s> does not support." % (
|
|
1106
|
+
array_sub_element.getCategory().getValue(), data_type.getShortName()))
|
|
1077
1107
|
elif (data_type.getCategory().getValue() == ImplementationDataType.CATEGORY_TYPE_STRUCTURE):
|
|
1078
|
-
if
|
|
1079
|
-
self._raiseError("Structure Sub-Element of <%s> do not defined." % data_type.
|
|
1108
|
+
if len(data_type.getImplementationDataTypeElements()) < 1:
|
|
1109
|
+
self._raiseError("Structure Sub-Element of <%s> do not defined." % data_type.getShortName())
|
|
1080
1110
|
self.readImplementationDataTypeSymbolProps(element, data_type)
|
|
1081
1111
|
struct_sub_element = data_type.getImplementationDataTypeElements()[0]
|
|
1082
|
-
if
|
|
1112
|
+
if struct_sub_element.getCategory().getValue() == ImplementationDataType.CATEGORY_TYPE_REFERENCE:
|
|
1083
1113
|
data_type.setStructElementType(struct_sub_element.getSwDataDefProps().getImplementationDataTypeRef().getValue())
|
|
1114
|
+
#elif struct_sub_element.getCategory().getValue() == ImplementationDataType.CATEGORY_TYPE_VALUE:
|
|
1115
|
+
# return
|
|
1084
1116
|
else:
|
|
1085
|
-
self._raiseError("The category <%s> of structure sub-element <%s> does not support." % (
|
|
1117
|
+
self._raiseError("The category <%s> of structure sub-element <%s> does not support." % (
|
|
1118
|
+
struct_sub_element.getCategory().getValue(), data_type.getShortName()))
|
|
1119
|
+
'''
|
|
1086
1120
|
|
|
1087
1121
|
def readBaseTypeDirectDefinition(self, element: ET.Element, definition: BaseTypeDirectDefinition):
|
|
1088
|
-
definition.
|
|
1089
|
-
definition.
|
|
1090
|
-
definition.
|
|
1091
|
-
definition.
|
|
1122
|
+
definition.baseTypeSize = self.getChildElementOptionalNumericalValue(element, "BASE-TYPE-SIZE")
|
|
1123
|
+
definition.baseTypeEncoding = self.getChildElementOptionalLiteral(element, "BASE-TYPE-ENCODING")
|
|
1124
|
+
definition.memAlignment = self.getChildElementOptionalNumericalValue(element, "MEM-ALIGNMENT")
|
|
1125
|
+
definition.nativeDeclaration = self.getChildElementOptionalLiteral(element, "NATIVE-DECLARATION")
|
|
1092
1126
|
|
|
1093
1127
|
def readSwBaseType(self, element: ET.Element, parent: ARPackage):
|
|
1094
1128
|
short_name = self.getShortName(element)
|
|
@@ -2212,7 +2246,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
2212
2246
|
.setNmRangeConfig(self.getChildElementRxIdentifierRange(element, "NM-RANGE-CONFIG"))
|
|
2213
2247
|
|
|
2214
2248
|
def readNmClusterNmNodes(self, element: ET.Element, parent: NmCluster):
|
|
2215
|
-
self.logger.debug("readNmConfigNmNodes %s" % parent.
|
|
2249
|
+
self.logger.debug("readNmConfigNmNodes %s" % parent.getShortName())
|
|
2216
2250
|
for child_element in self.findall(element, "NM-NODES/*"):
|
|
2217
2251
|
tag_name = self.getTagName(child_element)
|
|
2218
2252
|
if tag_name == "CAN-NM-NODE":
|
|
@@ -2359,7 +2393,7 @@ class ARXMLParser(AbstractARXMLParser):
|
|
|
2359
2393
|
ref = self.getChildElementOptionalRefType(child_element, "ECUC-MODULE-CONFIGURATION-VALUES-REF")
|
|
2360
2394
|
if (ref is not None):
|
|
2361
2395
|
parent.addEcucValueRef(ref)
|
|
2362
|
-
self.logger.debug("EcucValue <%s> of EcucValueCollection <%s> has been added", ref.value, parent.
|
|
2396
|
+
self.logger.debug("EcucValue <%s> of EcucValueCollection <%s> has been added", ref.value, parent.getShortName())
|
|
2363
2397
|
|
|
2364
2398
|
def readEcucValueCollection(self, element: ET.Element, parent: ARPackage):
|
|
2365
2399
|
short_name = self.getShortName(element)
|
|
@@ -5,11 +5,15 @@ from openpyxl.worksheet.worksheet import Worksheet
|
|
|
5
5
|
import openpyxl
|
|
6
6
|
import re
|
|
7
7
|
|
|
8
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
9
|
+
|
|
10
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ARPackage import ARPackage
|
|
11
|
+
|
|
8
12
|
from ..parser.excel_parser import AbstractExcelParser
|
|
9
13
|
from ..data_models.sw_connector import AssemblySwConnectorData, DelegationSwConnectorData, SwConnectorData
|
|
10
|
-
from ..models.ar_ref import PPortInCompositionInstanceRef, RPortInCompositionInstanceRef
|
|
14
|
+
from ..models.ar_ref import PPortInCompositionInstanceRef, RPortInCompositionInstanceRef
|
|
11
15
|
from ..models.sw_component import CompositionSwComponentType
|
|
12
|
-
from ..models.
|
|
16
|
+
from ..models.M2.AUTOSARTemplates.AutosarTopLevelStructure import AUTOSAR
|
|
13
17
|
|
|
14
18
|
class ConnectorXls:
|
|
15
19
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
from ..models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ARPackage import ARPackage
|
|
1
2
|
from .excel_report import ExcelReporter
|
|
2
|
-
from ..models import AUTOSAR,
|
|
3
|
+
from ..models import AUTOSAR, CompositionSwComponentType
|
|
3
4
|
from ..models import PPortInCompositionInstanceRef, RPortInCompositionInstanceRef
|
|
4
5
|
from typing import List
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
from ....models.
|
|
2
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARFloat, ARLiteral, ARNumerical
|
|
3
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARBoolean
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
class TestARObject:
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
""" Test AR Package """
|
|
2
2
|
import pytest
|
|
3
3
|
|
|
4
|
-
from ....models.
|
|
5
|
-
|
|
6
|
-
from ....models.
|
|
7
|
-
|
|
8
|
-
from ....models.
|
|
9
|
-
|
|
10
|
-
from ....models.
|
|
4
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.Datatypes import ApplicationPrimitiveDataType, ApplicationRecordDataType
|
|
5
|
+
|
|
6
|
+
from ....models.M2.MSR.AsamHdo.BaseTypes import SwBaseType
|
|
7
|
+
|
|
8
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import PackageableElement
|
|
9
|
+
|
|
10
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import CollectableElement
|
|
11
|
+
|
|
12
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable, MultilanguageReferrable, Referrable
|
|
13
|
+
|
|
14
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
15
|
+
|
|
16
|
+
from ....models.M2.AUTOSARTemplates.CommonStructure.ImplementationDataTypes import ImplementationDataType
|
|
17
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Components import SwComponentType
|
|
18
|
+
from ....models.M2.AUTOSARTemplates.AutosarTopLevelStructure import AUTOSAR
|
|
19
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.Datatypes import DataTypeMappingSet
|
|
20
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
21
|
+
from ....models.M2.MSR.AsamHdo.ComputationMethod import CompuMethod
|
|
22
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.port_interface import ClientServerInterface, DataInterface, PortInterface, SenderReceiverInterface
|
|
11
23
|
from ....models.sw_component import ApplicationSwComponentType, AtomicSwComponentType, EcuAbstractionSwComponentType, ServiceSwComponentType
|
|
12
|
-
from ....models.
|
|
24
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Composition import CompositionSwComponentType
|
|
13
25
|
|
|
14
26
|
class TestAUTOSAR:
|
|
15
27
|
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import pytest
|
|
4
4
|
|
|
5
|
-
from ....models.
|
|
6
|
-
|
|
7
|
-
from ....models.
|
|
8
|
-
from ....models.
|
|
9
|
-
from ....models.
|
|
5
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
6
|
+
|
|
7
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.AbstractStructure import AtpInstanceRef
|
|
8
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Composition.InstanceRefs import OperationInAtomicSwcInstanceRef, POperationInAtomicSwcInstanceRef, PPortInCompositionInstanceRef, ROperationInAtomicSwcInstanceRef, RPortInCompositionInstanceRef
|
|
9
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.InstanceRefsUsage import ArVariableInImplementationDataInstanceRef, AutosarVariableRef
|
|
10
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import TRefType
|
|
11
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
class TestARRef:
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import pytest
|
|
2
2
|
|
|
3
|
-
from ....models.
|
|
3
|
+
from ....models.M2.AUTOSARTemplates.BswModuleTemplate.BswOverview import BswModuleDescription
|
|
4
|
+
|
|
5
|
+
from ....models.M2.AUTOSARTemplates.BswModuleTemplate.BswBehavior import BswCalledEntity, BswModuleEntity
|
|
6
|
+
|
|
7
|
+
from ....models.M2.AUTOSARTemplates.BswModuleTemplate.BswInterfaces import BswModuleEntry
|
|
4
8
|
from .... import AUTOSAR
|
|
5
9
|
|
|
6
10
|
class TestBswModuleDescription:
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import pytest
|
|
2
2
|
|
|
3
|
-
from ....models.
|
|
3
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import CollectableElement
|
|
4
|
+
|
|
5
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable, MultilanguageReferrable, Referrable
|
|
6
|
+
|
|
7
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
8
|
+
|
|
9
|
+
from ....models.M2.AUTOSARTemplates.CommonStructure.ImplementationDataTypes import AbstractImplementationDataTypeElement, ImplementationDataTypeElement
|
|
4
10
|
from .... import AUTOSAR
|
|
5
|
-
from ....models.
|
|
6
|
-
from ....models.
|
|
7
|
-
from ....models.
|
|
8
|
-
from ....models.
|
|
11
|
+
from ....models.M2.AUTOSARTemplates.CommonStructure import ConstantReference, ConstantSpecification, ValueSpecification
|
|
12
|
+
from ....models.M2.AUTOSARTemplates.CommonStructure.InternalBehavior import ExecutableEntity
|
|
13
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
14
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import PackageableElement
|
|
9
15
|
|
|
10
16
|
class Test_M2_AUTOSARTemplates_CommonStructure_Constants:
|
|
11
17
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import pytest
|
|
2
2
|
|
|
3
|
-
from ....models.
|
|
4
|
-
from ....models.
|
|
3
|
+
from ....models.M2.MSR.DataDictionary.DataDefProperties import SwDataDefProps, SwPointerTargetProps
|
|
4
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
5
5
|
|
|
6
6
|
class Test_M2_MSR_DataDictionary_DataDefProperties:
|
|
7
7
|
def test_SwDataDefProps(self):
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import pytest
|
|
2
2
|
|
|
3
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable, MultilanguageReferrable, Referrable
|
|
4
|
+
|
|
5
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
6
|
+
|
|
3
7
|
from .... import AUTOSAR
|
|
4
|
-
from ....models.
|
|
5
|
-
from ....models.
|
|
6
|
-
from ....models.
|
|
8
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
9
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.DataPrototypes import ApplicationArrayElement, ApplicationCompositeElementDataPrototype, ApplicationRecordElement, AtpPrototype, AutosarDataPrototype, DataPrototype, VariableDataPrototype
|
|
10
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.AbstractStructure import AtpFeature
|
|
7
11
|
|
|
8
12
|
class Test_M2_AUTOSARTemplates_SWComponentTemplate_Datatype_DataPrototypes:
|
|
9
13
|
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import pytest
|
|
2
2
|
|
|
3
|
-
from ....models.
|
|
4
|
-
|
|
5
|
-
from ....models.
|
|
6
|
-
|
|
7
|
-
from ....models.
|
|
8
|
-
|
|
9
|
-
from ....models.
|
|
3
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.Datatypes import ApplicationArrayDataType, ApplicationCompositeDataType, ApplicationDataType, ApplicationPrimitiveDataType, ApplicationRecordDataType, AutosarDataType, DataTypeMap
|
|
4
|
+
|
|
5
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.AbstractStructure import AtpType
|
|
6
|
+
|
|
7
|
+
from ....models.M2.MSR.AsamHdo.BaseTypes import BaseType, BaseTypeDirectDefinition
|
|
8
|
+
|
|
9
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import PackageableElement
|
|
10
|
+
|
|
11
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import CollectableElement
|
|
12
|
+
|
|
13
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable, MultilanguageReferrable, Referrable
|
|
14
|
+
|
|
15
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
16
|
+
|
|
17
|
+
from ....models.M2.AUTOSARTemplates.CommonStructure.ImplementationDataTypes import AbstractImplementationDataType, ImplementationDataType, ImplementationDataTypeElement
|
|
18
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Components import SymbolProps
|
|
19
|
+
from ....models.M2.AUTOSARTemplates.CommonStructure.Implementation import ImplementationProps
|
|
20
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.DataPrototypes import ApplicationRecordElement
|
|
21
|
+
from ....models.M2.AUTOSARTemplates.SWComponentTemplate.Datatype.Datatypes import DataTypeMappingSet
|
|
22
|
+
from ....models.M2.MSR.AsamHdo.BaseTypes import SwBaseType
|
|
23
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
10
24
|
from .... import AUTOSAR
|
|
11
25
|
class Test_M2_AUTOSARTemplates_CommonStructure_Implementation:
|
|
12
26
|
def test_ImplementationProps(self):
|
|
@@ -226,7 +240,7 @@ class Test_M2_AUTOSARTemplates_CommonStructure_ImplementationDataTypes:
|
|
|
226
240
|
|
|
227
241
|
assert(data_type._parent == ar_root)
|
|
228
242
|
assert(data_type.short_name == "ImplementationDataType")
|
|
229
|
-
assert(data_type.
|
|
243
|
+
assert(data_type.subElements == [])
|
|
230
244
|
assert(data_type.symbolProps == None)
|
|
231
245
|
assert(data_type._type_emitter == None)
|
|
232
246
|
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import pytest
|
|
2
2
|
|
|
3
|
-
from ....models.
|
|
4
|
-
|
|
3
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement, PackageableElement
|
|
4
|
+
|
|
5
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.AbstractStructure import AtpFeature
|
|
6
|
+
|
|
7
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import CollectableElement
|
|
8
|
+
|
|
9
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable, MultilanguageReferrable, Referrable
|
|
10
|
+
|
|
11
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
12
|
+
|
|
13
|
+
from ....models.M2.AUTOSARTemplates.AutosarTopLevelStructure import AUTOSAR
|
|
14
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import Limit
|
|
5
15
|
|
|
6
16
|
class TestGeneralStructure:
|
|
7
17
|
def test_ar_object(self):
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
from ....models.
|
|
3
|
-
from ....models.
|
|
2
|
+
from ....models.M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.EngineeringObject import AutosarEngineeringObject
|
|
3
|
+
from ....models.M2.AUTOSARTemplates.CommonStructure.Implementation import Code
|
|
4
|
+
from ....models.M2.AUTOSARTemplates.AutosarTopLevelStructure import AUTOSAR
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
class TestImplementation:
|