armodel 1.7.9__py3-none-any.whl → 1.8.1__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_format_cli.py +1 -0
- armodel/models/M2/AUTOSARTemplates/AutosarTopLevelStructure.py +50 -12
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py +14 -14
- armodel/models/M2/AUTOSARTemplates/CommonStructure/FlatMap.py +2 -3
- armodel/models/M2/AUTOSARTemplates/CommonStructure/Implementation.py +1 -1
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ImplementationDataTypes.py +36 -34
- armodel/models/M2/AUTOSARTemplates/CommonStructure/InternalBehavior.py +1 -1
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ModeDeclaration.py +4 -4
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/__init__.py +3 -3
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ServiceNeeds.py +5 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/Timing/TimingConstraint/ExecutionOrderConstraint.py +3 -3
- armodel/models/M2/AUTOSARTemplates/CommonStructure/Timing/TimingConstraint/TimingExtensions.py +3 -3
- armodel/models/M2/AUTOSARTemplates/ECUCDescriptionTemplate.py +86 -9
- armodel/models/M2/AUTOSARTemplates/ECUCParameterDefTemplate.py +1249 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/AbstractStructure.py +13 -10
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ARPackage.py +238 -225
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ArObject.py +5 -4
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/Identifiable.py +46 -25
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/PrimitiveTypes.py +38 -3
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Components/__init__.py +18 -20
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Datatype/Datatypes.py +23 -19
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/EndToEndProtection.py +4 -4
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/PortInterface/__init__.py +71 -27
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServiceMapping.py +27 -17
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/__init__.py +172 -128
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/DataMapping.py +11 -10
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/Fibex/FibexCore/CoreCommunication.py +11 -11
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/Fibex/FibexCore/CoreTopology.py +16 -10
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/Fibex/FibexCore/EcuInstance.py +2 -2
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/NetworkManagement.py +6 -6
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/RteEventToOsTaskMapping.py +35 -0
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/SWmapping.py +25 -0
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/SecureCommunication.py +83 -0
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/__init__.py +90 -38
- armodel/models/M2/MSR/AsamHdo/AdminData.py +101 -8
- armodel/models/__init__.py +2 -0
- armodel/models/utils/__init__.py +0 -0
- armodel/models/utils/uuid_mgr.py +23 -0
- armodel/parser/abstract_arxml_parser.py +13 -5
- armodel/parser/arxml_parser.py +412 -85
- armodel/tests/test_armodel/models/test_ECUCParameterDefTemplate.py +116 -0
- armodel/tests/test_armodel/models/test_Identifiable.py +85 -0
- armodel/tests/test_armodel/models/test_ar_object.py +85 -86
- armodel/tests/test_armodel/models/test_ar_package.py +70 -70
- armodel/tests/test_armodel/models/test_ar_ref.py +36 -36
- armodel/tests/test_armodel/models/test_common_structure.py +37 -35
- armodel/tests/test_armodel/models/test_datatype.py +140 -142
- armodel/tests/test_armodel/models/test_general_structure.py +19 -18
- armodel/tests/test_armodel/models/test_port_interface.py +2 -6
- armodel/tests/test_armodel/parser/test_arxml_parser.py +8 -8
- armodel/writer/abstract_arxml_writer.py +6 -2
- armodel/writer/arxml_writer.py +414 -57
- {armodel-1.7.9.dist-info → armodel-1.8.1.dist-info}/METADATA +31 -1
- {armodel-1.7.9.dist-info → armodel-1.8.1.dist-info}/RECORD +58 -51
- {armodel-1.7.9.dist-info → armodel-1.8.1.dist-info}/LICENSE +0 -0
- {armodel-1.7.9.dist-info → armodel-1.8.1.dist-info}/WHEEL +0 -0
- {armodel-1.7.9.dist-info → armodel-1.8.1.dist-info}/entry_points.txt +0 -0
- {armodel-1.7.9.dist-info → armodel-1.8.1.dist-info}/top_level.txt +0 -0
|
@@ -4,12 +4,14 @@ from typing import List
|
|
|
4
4
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement, Identifiable
|
|
5
5
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
6
6
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AtpInstanceRef(ARObject, metaclass=ABCMeta):
|
|
8
10
|
def __init__(self):
|
|
9
11
|
|
|
10
12
|
if type(self) == AtpInstanceRef:
|
|
11
13
|
raise NotImplementedError("AtpInstanceRef is an abstract class.")
|
|
12
|
-
|
|
14
|
+
|
|
13
15
|
super().__init__()
|
|
14
16
|
|
|
15
17
|
self.atpBaseRef = None # type: RefType
|
|
@@ -37,6 +39,7 @@ class AtpInstanceRef(ARObject, metaclass = ABCMeta):
|
|
|
37
39
|
self.atpTargetRef = value
|
|
38
40
|
return self
|
|
39
41
|
|
|
42
|
+
|
|
40
43
|
class AnyInstanceRef(ARObject):
|
|
41
44
|
def __init__(self):
|
|
42
45
|
super().__init__()
|
|
@@ -62,28 +65,28 @@ class AnyInstanceRef(ARObject):
|
|
|
62
65
|
def getTargetRef(self) -> RefType:
|
|
63
66
|
return self.targetRef
|
|
64
67
|
|
|
65
|
-
def setTargetRef(self, value:RefType):
|
|
68
|
+
def setTargetRef(self, value: RefType):
|
|
66
69
|
self.targetRef = value
|
|
67
70
|
return self
|
|
68
71
|
|
|
69
72
|
|
|
70
|
-
class AtpFeature(Identifiable, metaclass
|
|
73
|
+
class AtpFeature(Identifiable, metaclass=ABCMeta):
|
|
71
74
|
def __init__(self, parent: ARObject, short_name: str):
|
|
72
|
-
if type(self)
|
|
73
|
-
raise
|
|
75
|
+
if type(self) is AtpFeature:
|
|
76
|
+
raise TypeError("AtpFeature is an abstract class.")
|
|
74
77
|
super().__init__(parent, short_name)
|
|
75
78
|
|
|
76
79
|
|
|
77
80
|
class AtpStructureElement(AtpFeature, metaclass=ABCMeta):
|
|
78
81
|
def __init__(self, parent: ARObject, short_name: str):
|
|
79
|
-
if type(self)
|
|
80
|
-
raise
|
|
82
|
+
if type(self) is AtpFeature:
|
|
83
|
+
raise TypeError("AtpStructureElement is an abstract class.")
|
|
81
84
|
super().__init__(parent, short_name)
|
|
82
85
|
|
|
83
86
|
|
|
84
87
|
class AtpType(ARElement, metaclass=ABCMeta):
|
|
85
88
|
def __init__(self, parent: ARObject, short_name: str):
|
|
86
|
-
if type(self)
|
|
87
|
-
raise
|
|
89
|
+
if type(self) is AtpType:
|
|
90
|
+
raise TypeError("AtpType is an abstract class.")
|
|
88
91
|
|
|
89
92
|
super().__init__(parent, short_name)
|