armodel 1.7.8__py3-none-any.whl → 1.8.0__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 +71 -11
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py +102 -12
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswInterfaces.py +80 -9
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview.py +17 -10
- armodel/models/M2/AUTOSARTemplates/CommonStructure/Implementation.py +10 -8
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ImplementationDataTypes.py +30 -28
- armodel/models/M2/AUTOSARTemplates/CommonStructure/InternalBehavior.py +7 -5
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ModeDeclaration.py +38 -3
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ServiceNeeds.py +96 -18
- armodel/models/M2/AUTOSARTemplates/CommonStructure/StandardizationTemplate/BlueprintDedicated/PortPrototypeBlueprint.py +73 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/StandardizationTemplate/BlueprintDedicated/__init__.py +0 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/StandardizationTemplate/Keyword.py +45 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/StandardizationTemplate/__init__.py +0 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/TriggerDeclaration.py +27 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ARPackage.py +33 -4
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ElementCollection.py +73 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/PrimitiveTypes.py +40 -14
- armodel/models/M2/AUTOSARTemplates/GenericStructure/LifeCycles.py +151 -1
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Components/__init__.py +4 -1
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/PortInterface/__init__.py +55 -12
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SoftwareComponentDocumentation.py +80 -0
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/RTEEvents.py +11 -1
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServiceMapping.py +34 -10
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/DataMapping.py +11 -10
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/Fibex/Fibex4Ethernet/EthernetTopology.py +18 -6
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/Fibex/FibexCore/CoreTopology.py +8 -2
- 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 +84 -32
- armodel/models/M2/MSR/DataDictionary/DataDefProperties.py +10 -1
- armodel/models/M2/MSR/Documentation/BlockElements/Figure.py +163 -0
- armodel/models/M2/MSR/Documentation/BlockElements/__init__.py +0 -0
- armodel/models/M2/MSR/Documentation/TextModel/BlockElements/ListElements.py +5 -3
- armodel/models/M2/MSR/Documentation/TextModel/BlockElements/PaginationAndView.py +22 -1
- armodel/models/M2/MSR/Documentation/TextModel/BlockElements/__init__.py +94 -9
- armodel/models/__init__.py +4 -0
- armodel/models/utils/__init__.py +0 -0
- armodel/models/utils/uuid_mgr.py +23 -0
- armodel/parser/abstract_arxml_parser.py +10 -2
- armodel/parser/arxml_parser.py +332 -104
- armodel/tests/test_armodel/models/test_datatype.py +136 -138
- armodel/tests/test_armodel/parser/test_sw_components.py +266 -4
- armodel/writer/arxml_writer.py +337 -74
- {armodel-1.7.8.dist-info → armodel-1.8.0.dist-info}/METADATA +35 -1
- {armodel-1.7.8.dist-info → armodel-1.8.0.dist-info}/RECORD +51 -40
- {armodel-1.7.8.dist-info → armodel-1.8.0.dist-info}/LICENSE +0 -0
- {armodel-1.7.8.dist-info → armodel-1.8.0.dist-info}/WHEEL +0 -0
- {armodel-1.7.8.dist-info → armodel-1.8.0.dist-info}/entry_points.txt +0 -0
- {armodel-1.7.8.dist-info → armodel-1.8.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import Boolean, RefType
|
|
3
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CryptoServiceMapping(Identifiable):
|
|
7
|
+
def __init__(self, parent, short_name):
|
|
8
|
+
super().__init__(parent, short_name)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SecOcCryptoServiceMapping(CryptoServiceMapping):
|
|
12
|
+
def __init__(self, parent, short_name):
|
|
13
|
+
super().__init__(parent, short_name)
|
|
14
|
+
|
|
15
|
+
self.authenticationRef = None # type: RefType
|
|
16
|
+
self.cryptoServiceKeyRef = None # type: RefType
|
|
17
|
+
self.cryptoServiceQueueRef = None # type: RefType
|
|
18
|
+
|
|
19
|
+
def getAuthenticationRef(self):
|
|
20
|
+
return self.authenticationRef
|
|
21
|
+
|
|
22
|
+
def setAuthenticationRef(self, value):
|
|
23
|
+
if value is not None:
|
|
24
|
+
self.authenticationRef = value
|
|
25
|
+
return self
|
|
26
|
+
|
|
27
|
+
def getCryptoServiceKeyRef(self):
|
|
28
|
+
return self.cryptoServiceKeyRef
|
|
29
|
+
|
|
30
|
+
def setCryptoServiceKeyRef(self, value):
|
|
31
|
+
if value is not None:
|
|
32
|
+
self.cryptoServiceKeyRef = value
|
|
33
|
+
return self
|
|
34
|
+
|
|
35
|
+
def getCryptoServiceQueueRef(self):
|
|
36
|
+
return self.cryptoServiceQueueRef
|
|
37
|
+
|
|
38
|
+
def setCryptoServiceQueueRef(self, value):
|
|
39
|
+
if value is not None:
|
|
40
|
+
self.cryptoServiceQueueRef = value
|
|
41
|
+
return self
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class TlsCryptoServiceMapping(CryptoServiceMapping):
|
|
45
|
+
def __init__(self, parent, short_name):
|
|
46
|
+
super().__init__(parent, short_name)
|
|
47
|
+
|
|
48
|
+
self.keyExchangeRef = None # type: RefType
|
|
49
|
+
self.tlsCipherSuites = [] # type: List[TlsCryptoCipherSuite]
|
|
50
|
+
self.useClientAuthenticationRequest = None # type: Boolean
|
|
51
|
+
self.useSecurityExtensionRecordSizeLimit = None # type: Boolean
|
|
52
|
+
|
|
53
|
+
def getKeyExchangeRef(self):
|
|
54
|
+
return self.keyExchangeRef
|
|
55
|
+
|
|
56
|
+
def setKeyExchangeRef(self, value):
|
|
57
|
+
if value is not None:
|
|
58
|
+
self.keyExchangeRef = value
|
|
59
|
+
return self
|
|
60
|
+
|
|
61
|
+
def getTlsCipherSuites(self):
|
|
62
|
+
return self.tlsCipherSuites
|
|
63
|
+
|
|
64
|
+
def addTlsCipherSuite(self, value):
|
|
65
|
+
if value is not None:
|
|
66
|
+
self.tlsCipherSuites.append(value)
|
|
67
|
+
return self
|
|
68
|
+
|
|
69
|
+
def getUseClientAuthenticationRequest(self):
|
|
70
|
+
return self.useClientAuthenticationRequest
|
|
71
|
+
|
|
72
|
+
def setUseClientAuthenticationRequest(self, value):
|
|
73
|
+
if value is not None:
|
|
74
|
+
self.useClientAuthenticationRequest = value
|
|
75
|
+
return self
|
|
76
|
+
|
|
77
|
+
def getUseSecurityExtensionRecordSizeLimit(self):
|
|
78
|
+
return self.useSecurityExtensionRecordSizeLimit
|
|
79
|
+
|
|
80
|
+
def setUseSecurityExtensionRecordSizeLimit(self, value):
|
|
81
|
+
if value is not None:
|
|
82
|
+
self.useSecurityExtensionRecordSizeLimit = value
|
|
83
|
+
return self
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
from typing import List
|
|
2
2
|
|
|
3
|
+
from ....M2.AUTOSARTemplates.SystemTemplate.DataMapping import DataMapping
|
|
4
|
+
from ....M2.AUTOSARTemplates.SystemTemplate.SecureCommunication import CryptoServiceMapping
|
|
5
|
+
from ....M2.AUTOSARTemplates.SystemTemplate.RteEventToOsTaskMapping import AppOsTaskProxyToEcuTaskProxyMapping
|
|
3
6
|
from ....M2.AUTOSARTemplates.SystemTemplate.EcuResourceMapping import ECUMapping
|
|
4
7
|
from ....M2.AUTOSARTemplates.SystemTemplate.InstanceRefs import ComponentInSystemInstanceRef
|
|
5
|
-
from ....M2.AUTOSARTemplates.SystemTemplate.SWmapping import SwcToImplMapping
|
|
8
|
+
from ....M2.AUTOSARTemplates.SystemTemplate.SWmapping import ApplicationPartitionToEcuPartitionMapping, SwcToImplMapping
|
|
6
9
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
7
10
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement, Identifiable
|
|
8
|
-
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import PositiveInteger, RefType
|
|
11
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ByteOrderEnum, PositiveInteger, RefType
|
|
12
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RevisionLabelString, TRefType
|
|
9
13
|
|
|
10
14
|
|
|
11
15
|
class SwcToEcuMapping(Identifiable):
|
|
@@ -46,34 +50,67 @@ class SwcToEcuMapping(Identifiable):
|
|
|
46
50
|
return self
|
|
47
51
|
|
|
48
52
|
|
|
53
|
+
class ComManagementMapping(Identifiable):
|
|
54
|
+
def __init__(self, parent: ARObject, short_name: str):
|
|
55
|
+
super().__init__(parent, short_name)
|
|
56
|
+
|
|
57
|
+
self.comManagementGroupRefs = [] # type: List[RefType]
|
|
58
|
+
self.comManagementPortGroupRefs = [] # type: List[RefType]
|
|
59
|
+
self.physicalChannelRef = None # type: RefType
|
|
60
|
+
|
|
61
|
+
def getComManagementGroupRefs(self):
|
|
62
|
+
return self.comManagementGroupRefs
|
|
63
|
+
|
|
64
|
+
def addComManagementGroupRef(self, value):
|
|
65
|
+
if value is not None:
|
|
66
|
+
self.comManagementGroupRefs.append(value)
|
|
67
|
+
return self
|
|
68
|
+
|
|
69
|
+
def getComManagementPortGroupRefs(self):
|
|
70
|
+
return self.comManagementPortGroupRefs
|
|
71
|
+
|
|
72
|
+
def addComManagementPortGroupRef(self, value):
|
|
73
|
+
if value is not None:
|
|
74
|
+
self.comManagementPortGroupRefs.append(value)
|
|
75
|
+
return self
|
|
76
|
+
|
|
77
|
+
def getPhysicalChannelRef(self):
|
|
78
|
+
return self.physicalChannelRef
|
|
79
|
+
|
|
80
|
+
def setPhysicalChannelRef(self, value):
|
|
81
|
+
if value is not None:
|
|
82
|
+
self.physicalChannelRef = value
|
|
83
|
+
return self
|
|
84
|
+
|
|
85
|
+
|
|
49
86
|
class SystemMapping(Identifiable):
|
|
50
87
|
def __init__(self, parent: ARObject, short_name: str):
|
|
51
88
|
super().__init__(parent, short_name)
|
|
52
89
|
|
|
53
|
-
self.applicationPartitionToEcuPartitionMappings = []
|
|
54
|
-
self.appOsTaskProxyToEcuTaskProxyMappings = []
|
|
55
|
-
self.comManagementMappings = []
|
|
56
|
-
self.cryptoServiceMappings = []
|
|
57
|
-
self.dataMappings = []
|
|
58
|
-
self.ddsISignalToTopicMappings = []
|
|
90
|
+
self.applicationPartitionToEcuPartitionMappings = [] # type: List[ApplicationPartitionToEcuPartitionMapping]
|
|
91
|
+
self.appOsTaskProxyToEcuTaskProxyMappings = [] # type: List[AppOsTaskProxyToEcuTaskProxyMapping]
|
|
92
|
+
self.comManagementMappings = [] # type: List[ComManagementMapping]
|
|
93
|
+
self.cryptoServiceMappings = [] # type: List[CryptoServiceMapping]
|
|
94
|
+
self.dataMappings = [] # type: List[DataMapping]
|
|
95
|
+
self.ddsISignalToTopicMappings = [] # type: List[DdsCpISignalToDdsTopicMapping]
|
|
59
96
|
self.ecuResourceMappings = [] # type: List[ECUMapping]
|
|
60
|
-
self.j1939ControllerApplicationToJ1939NmNodeMappings = []
|
|
61
|
-
self.mappingConstraints = []
|
|
62
|
-
self.pncMappings = []
|
|
63
|
-
self.portElementToComResourceMappings = []
|
|
64
|
-
self.resourceEstimations = []
|
|
65
|
-
self.resourceToApplicationPartitionMappings = []
|
|
66
|
-
self.rteEventSeparations = []
|
|
67
|
-
self.rteEventToOsTaskProxyMappings = []
|
|
68
|
-
self.signalPathConstraints = []
|
|
69
|
-
self.softwareClusterToApplicationPartitionMappings = []
|
|
70
|
-
self.softwareClusterToResourceMappings = []
|
|
71
|
-
self.swClusterMappings = []
|
|
72
|
-
self.swcToApplicationPartitionMappings = []
|
|
97
|
+
self.j1939ControllerApplicationToJ1939NmNodeMappings = [] # type: List[J1939ControllerApplicationToJ1939NmNodeMapping]
|
|
98
|
+
self.mappingConstraints = [] # type: List[MappingConstraint]
|
|
99
|
+
self.pncMappings = [] # type: List[PncMapping]
|
|
100
|
+
self.portElementToComResourceMappings = [] # type: List[PortElementToCommunicationResourceMapping]
|
|
101
|
+
self.resourceEstimations = [] # type: List[EcuResourceEstimation]
|
|
102
|
+
self.resourceToApplicationPartitionMappings = [] # type: List[CpSoftwareClusterResourceToApplicationPartitionMapping]
|
|
103
|
+
self.rteEventSeparations = [] # type: List[RteEventInSystemSeparation]
|
|
104
|
+
self.rteEventToOsTaskProxyMappings = [] # type: List[RteEventInSystemToOsTaskProxyMapping]
|
|
105
|
+
self.signalPathConstraints = [] # type: List[SignalPathConstraint]
|
|
106
|
+
self.softwareClusterToApplicationPartitionMappings = [] # type: List[CpSoftwareClusterToApplicationPartitionMapping]
|
|
107
|
+
self.softwareClusterToResourceMappings = [] # type: List[CpSoftwareClusterToResourceMapping]
|
|
108
|
+
self.swClusterMappings = [] # type: List[CpSoftwareClusterToEcuInstanceMapping]
|
|
109
|
+
self.swcToApplicationPartitionMappings = [] # type: List[SwcToApplicationPartitionMapping]
|
|
73
110
|
self.swImplMappings = [] # type: List[SwcToImplMapping]
|
|
74
111
|
self.swMappings = [] # type: List[SwcToEcuMapping]
|
|
75
|
-
self.systemSignalGroupToComResourceMappings = []
|
|
76
|
-
self.systemSignalToComResourceMappings = []
|
|
112
|
+
self.systemSignalGroupToComResourceMappings = [] # type: List[SystemSignalGroupToCommunicationResourceMapping]
|
|
113
|
+
self.systemSignalToComResourceMappings = [] # type: List[SystemSignalToCommunicationResourceMapping]
|
|
77
114
|
|
|
78
115
|
def getApplicationPartitionToEcuPartitionMappings(self):
|
|
79
116
|
return self.applicationPartitionToEcuPartitionMappings
|
|
@@ -286,22 +323,37 @@ class RootSwCompositionPrototype(Identifiable):
|
|
|
286
323
|
return self
|
|
287
324
|
|
|
288
325
|
|
|
326
|
+
class J1939SharedAddressCluster(Identifiable):
|
|
327
|
+
def __init__(self, parent: ARObject, short_name: str):
|
|
328
|
+
super().__init__(parent, short_name)
|
|
329
|
+
|
|
330
|
+
self.participatingJ1939ClusterRefs = [] # type: List[RefType]
|
|
331
|
+
|
|
332
|
+
def getParticipatingJ1939ClusterRefs(self):
|
|
333
|
+
return self.participatingJ1939ClusterRefs
|
|
334
|
+
|
|
335
|
+
def addParticipatingJ1939ClusterRef(self, value):
|
|
336
|
+
if value is not None:
|
|
337
|
+
self.participatingJ1939ClusterRefs.append(value)
|
|
338
|
+
return self
|
|
339
|
+
|
|
340
|
+
|
|
289
341
|
class System(ARElement):
|
|
290
342
|
def __init__(self, parent: ARObject, short_name: str):
|
|
291
343
|
super().__init__(parent, short_name)
|
|
292
344
|
|
|
293
345
|
self.clientIdDefinitionSetRefs = [] # type: List[RefType]
|
|
294
|
-
self.containerIPduHeaderByteOrder = None
|
|
295
|
-
self.ecuExtractVersion = None
|
|
346
|
+
self.containerIPduHeaderByteOrder = None # type: ByteOrderEnum
|
|
347
|
+
self.ecuExtractVersion = None # type: RevisionLabelString
|
|
296
348
|
self.fibexElements = [] # type: List[RefType]
|
|
297
349
|
self.interpolationRoutineMappingSetRefs = [] # type: List[RefType]
|
|
298
|
-
self.j1939SharedAddressClusters = []
|
|
350
|
+
self.j1939SharedAddressClusters = [] # type: List[J1939SharedAddressCluster]
|
|
299
351
|
self.mappings = [] # type: List[SystemMapping]
|
|
300
352
|
self.pncVectorLength = None # type: PositiveInteger
|
|
301
353
|
self.pncVectorOffset = None # type: PositiveInteger
|
|
302
354
|
self.rootSoftwareComposition = None # type: RootSwCompositionPrototype
|
|
303
|
-
self.
|
|
304
|
-
self.systemDocumentation = []
|
|
355
|
+
self.swClusterRefs = [] # type: List[RefType]
|
|
356
|
+
self.systemDocumentation = [] # type: Chapter
|
|
305
357
|
self.systemVersion = None # type: RevisionLabelString
|
|
306
358
|
|
|
307
359
|
def getClientIdDefinitionSetRefs(self):
|
|
@@ -384,11 +436,11 @@ class System(ARElement):
|
|
|
384
436
|
self.rootSoftwareComposition = prototype
|
|
385
437
|
return self.getElement(short_name)
|
|
386
438
|
|
|
387
|
-
def
|
|
388
|
-
return self.
|
|
439
|
+
def getSwClusterRefs(self):
|
|
440
|
+
return self.swClusterRefs
|
|
389
441
|
|
|
390
|
-
def
|
|
391
|
-
self.
|
|
442
|
+
def addSwClusterRef(self, value):
|
|
443
|
+
self.swClusterRefs.append(value)
|
|
392
444
|
return self
|
|
393
445
|
|
|
394
446
|
def getSystemDocumentation(self):
|
|
@@ -2,9 +2,10 @@ from typing import List
|
|
|
2
2
|
from ....M2.MSR.Documentation.Annotation import Annotation
|
|
3
3
|
from ....M2.MSR.DataDictionary.CalibrationParameter import SwCalprmAxisSet
|
|
4
4
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
5
|
-
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARFloat, RefType, ARLiteral
|
|
5
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import AREnum, ARFloat, RefType, ARLiteral
|
|
6
6
|
from ....M2.AUTOSARTemplates.CommonStructure import ValueSpecification
|
|
7
7
|
|
|
8
|
+
|
|
8
9
|
class SwDataDefPropsConditional(ARObject):
|
|
9
10
|
'''
|
|
10
11
|
Patch for the time-stamp
|
|
@@ -12,6 +13,14 @@ class SwDataDefPropsConditional(ARObject):
|
|
|
12
13
|
def __init__(self):
|
|
13
14
|
super().__init__()
|
|
14
15
|
|
|
16
|
+
|
|
17
|
+
class SwImplPolicyEnum(AREnum):
|
|
18
|
+
def __init__(self, enum_values):
|
|
19
|
+
super().__init__([
|
|
20
|
+
|
|
21
|
+
])
|
|
22
|
+
|
|
23
|
+
|
|
15
24
|
class SwDataDefProps(ARObject):
|
|
16
25
|
def __init__(self):
|
|
17
26
|
super().__init__()
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
|
|
3
|
+
from .....M2.MSR.Documentation.TextModel.LanguageDataModel import LanguageSpecific
|
|
4
|
+
from .....M2.MSR.Documentation.TextModel.BlockElements.PaginationAndView import Paginateable
|
|
5
|
+
from .....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
6
|
+
from .....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.EngineeringObject import EngineeringObject
|
|
7
|
+
from .....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import AREnum, String
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GraphicFitEnum(AREnum):
|
|
11
|
+
def __init__(self, enum_values):
|
|
12
|
+
super().__init__([
|
|
13
|
+
|
|
14
|
+
])
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class Graphic(EngineeringObject):
|
|
18
|
+
def __init__(self):
|
|
19
|
+
super().__init__()
|
|
20
|
+
|
|
21
|
+
self.editfit = None # type: GraphicFitEnum
|
|
22
|
+
self.editHeight = None # type: String
|
|
23
|
+
self.editscale = None # type: String
|
|
24
|
+
self.editWidth = None # type: String
|
|
25
|
+
self.filename = None # type: String
|
|
26
|
+
self.fit = None # type: GraphicFitEnum
|
|
27
|
+
|
|
28
|
+
def getEditfit(self):
|
|
29
|
+
return self.editfit
|
|
30
|
+
|
|
31
|
+
def setEditfit(self, value):
|
|
32
|
+
if value is not None:
|
|
33
|
+
self.editfit = value
|
|
34
|
+
return self
|
|
35
|
+
|
|
36
|
+
def getEditHeight(self):
|
|
37
|
+
return self.editHeight
|
|
38
|
+
|
|
39
|
+
def setEditHeight(self, value):
|
|
40
|
+
if value is not None:
|
|
41
|
+
self.editHeight = value
|
|
42
|
+
return self
|
|
43
|
+
|
|
44
|
+
def getEditscale(self):
|
|
45
|
+
return self.editscale
|
|
46
|
+
|
|
47
|
+
def setEditscale(self, value):
|
|
48
|
+
if value is not None:
|
|
49
|
+
self.editscale = value
|
|
50
|
+
return self
|
|
51
|
+
|
|
52
|
+
def getEditWidth(self):
|
|
53
|
+
return self.editWidth
|
|
54
|
+
|
|
55
|
+
def setEditWidth(self, value):
|
|
56
|
+
if value is not None:
|
|
57
|
+
self.editWidth = value
|
|
58
|
+
return self
|
|
59
|
+
|
|
60
|
+
def getFilename(self):
|
|
61
|
+
return self.filename
|
|
62
|
+
|
|
63
|
+
def setFilename(self, value):
|
|
64
|
+
if value is not None:
|
|
65
|
+
self.filename = value
|
|
66
|
+
return self
|
|
67
|
+
|
|
68
|
+
def getFit(self):
|
|
69
|
+
return self.fit
|
|
70
|
+
|
|
71
|
+
def setFit(self, value):
|
|
72
|
+
if value is not None:
|
|
73
|
+
self.fit = value
|
|
74
|
+
return self
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class Map(ARObject):
|
|
78
|
+
def __init__(self):
|
|
79
|
+
super().__init__()
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class LGraphic(LanguageSpecific):
|
|
83
|
+
def __init__(self):
|
|
84
|
+
super().__init__()
|
|
85
|
+
|
|
86
|
+
self.l = None # type: str # noqa E741
|
|
87
|
+
self.graphic = None # type: Graphic
|
|
88
|
+
self.map = None # type: Map
|
|
89
|
+
|
|
90
|
+
def getL(self):
|
|
91
|
+
return self.l
|
|
92
|
+
|
|
93
|
+
def setL(self, value):
|
|
94
|
+
if value is not None:
|
|
95
|
+
self.l = value # noqa E741
|
|
96
|
+
return self
|
|
97
|
+
|
|
98
|
+
def getGraphic(self):
|
|
99
|
+
return self.graphic
|
|
100
|
+
|
|
101
|
+
def setGraphic(self, value):
|
|
102
|
+
if value is not None:
|
|
103
|
+
self.graphic = value
|
|
104
|
+
return self
|
|
105
|
+
|
|
106
|
+
def getMap(self):
|
|
107
|
+
return self.map
|
|
108
|
+
|
|
109
|
+
def setMap(self, value):
|
|
110
|
+
if value is not None:
|
|
111
|
+
self.map = value
|
|
112
|
+
return self
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
class MlFigure(Paginateable):
|
|
116
|
+
def __init__(self):
|
|
117
|
+
super().__init__()
|
|
118
|
+
|
|
119
|
+
self.figureCaption = None # type: Caption
|
|
120
|
+
self.helpEntry = None # type: String
|
|
121
|
+
self.lGraphics = [] # type: List[LGraphic]
|
|
122
|
+
self.pgwide = None # type: PgwideEnum
|
|
123
|
+
self.verbatim = None # type: MultiLanguageVerbatim
|
|
124
|
+
|
|
125
|
+
def getFigureCaption(self):
|
|
126
|
+
return self.figureCaption
|
|
127
|
+
|
|
128
|
+
def setFigureCaption(self, value):
|
|
129
|
+
if value is not None:
|
|
130
|
+
self.figureCaption = value
|
|
131
|
+
return self
|
|
132
|
+
|
|
133
|
+
def getHelpEntry(self):
|
|
134
|
+
return self.helpEntry
|
|
135
|
+
|
|
136
|
+
def setHelpEntry(self, value):
|
|
137
|
+
if value is not None:
|
|
138
|
+
self.helpEntry = value
|
|
139
|
+
return self
|
|
140
|
+
|
|
141
|
+
def getLGraphics(self):
|
|
142
|
+
return self.lGraphics
|
|
143
|
+
|
|
144
|
+
def addLGraphics(self, value):
|
|
145
|
+
if value is not None:
|
|
146
|
+
self.lGraphics.append(value)
|
|
147
|
+
return self
|
|
148
|
+
|
|
149
|
+
def getPgwide(self):
|
|
150
|
+
return self.pgwide
|
|
151
|
+
|
|
152
|
+
def setPgwide(self, value):
|
|
153
|
+
if value is not None:
|
|
154
|
+
self.pgwide = value
|
|
155
|
+
return self
|
|
156
|
+
|
|
157
|
+
def getVerbatim(self):
|
|
158
|
+
return self.verbatim
|
|
159
|
+
|
|
160
|
+
def setVerbatim(self, value):
|
|
161
|
+
if value is not None:
|
|
162
|
+
self.verbatim = value
|
|
163
|
+
return self
|
|
File without changes
|
|
@@ -3,6 +3,7 @@ from typing import List
|
|
|
3
3
|
from ......M2.MSR.Documentation.TextModel.BlockElements.PaginationAndView import Paginateable
|
|
4
4
|
from ......M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import AREnum
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
class ListEnum(AREnum):
|
|
7
8
|
|
|
8
9
|
NUMBER = 'number'
|
|
@@ -14,6 +15,7 @@ class ListEnum(AREnum):
|
|
|
14
15
|
ListEnum.UNNUMBER
|
|
15
16
|
))
|
|
16
17
|
|
|
18
|
+
|
|
17
19
|
class Item(Paginateable):
|
|
18
20
|
def __init__(self):
|
|
19
21
|
super().__init__()
|
|
@@ -27,10 +29,11 @@ class Item(Paginateable):
|
|
|
27
29
|
self.itemContents = value
|
|
28
30
|
return self
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
|
|
33
|
+
class ARList(Paginateable):
|
|
31
34
|
'''
|
|
32
35
|
This meta-class represents the ability to express a list. The kind of list is specified in the attribute.
|
|
33
|
-
In AUTOSAR standard class name shall be List, but it is conflict with Python List and renamed to
|
|
36
|
+
In AUTOSAR standard class name shall be List, but it is conflict with Python List and renamed to ARList
|
|
34
37
|
'''
|
|
35
38
|
def __init__(self):
|
|
36
39
|
super().__init__()
|
|
@@ -51,4 +54,3 @@ class ListElement(Paginateable):
|
|
|
51
54
|
def setType(self, value):
|
|
52
55
|
self.type = value
|
|
53
56
|
return self
|
|
54
|
-
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
from ......M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
class DocumentViewSelectable(ARObject):
|
|
4
5
|
def __init__(self):
|
|
5
6
|
super().__init__()
|
|
6
7
|
|
|
8
|
+
|
|
7
9
|
class Paginateable(DocumentViewSelectable):
|
|
8
10
|
def __init__(self):
|
|
9
|
-
super().__init__()
|
|
11
|
+
super().__init__()
|
|
12
|
+
|
|
13
|
+
self.chapterBreak = None # type: ChapterEnumBreak
|
|
14
|
+
self.keepWithPrevious = None # type: KeepWithPreviousEnum
|
|
15
|
+
|
|
16
|
+
def getBreak(self):
|
|
17
|
+
return self.chapterBreak
|
|
18
|
+
|
|
19
|
+
def setBreak(self, value):
|
|
20
|
+
if value is not None:
|
|
21
|
+
self.chapterBreak = value
|
|
22
|
+
return self
|
|
23
|
+
|
|
24
|
+
def getKeepWithPrevious(self):
|
|
25
|
+
return self.keepWithPrevious
|
|
26
|
+
|
|
27
|
+
def setKeepWithPrevious(self, value):
|
|
28
|
+
if value is not None:
|
|
29
|
+
self.keepWithPrevious = value
|
|
30
|
+
return self
|
|
@@ -1,25 +1,110 @@
|
|
|
1
|
-
from ......M2.
|
|
2
|
-
from ......M2.MSR.Documentation.TextModel.BlockElements.ListElements import
|
|
1
|
+
from ......M2.MSR.Documentation.BlockElements.Figure import MlFigure
|
|
2
|
+
from ......M2.MSR.Documentation.TextModel.BlockElements.ListElements import ARList
|
|
3
3
|
from ......M2.MSR.Documentation.TextModel.MultilanguageData import MultiLanguageParagraph
|
|
4
|
+
from ......M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
4
5
|
from typing import List
|
|
5
6
|
|
|
7
|
+
|
|
6
8
|
class DocumentationBlock(ARObject):
|
|
7
9
|
def __init__(self):
|
|
8
10
|
super().__init__()
|
|
9
11
|
|
|
12
|
+
self.defList = None # type: DefList
|
|
13
|
+
self.figures = [] # type: List[MlFigure]
|
|
14
|
+
self.formula = None # type:MlFormula
|
|
15
|
+
self.labeledList = None # type: LabeledList
|
|
16
|
+
self.lists = [] # type: List[ARList]
|
|
17
|
+
self.msrQueryP2 = None # type: MsrQueryP2
|
|
18
|
+
self.note = None # type: Note
|
|
10
19
|
self.ps = [] # type: List[MultiLanguageParagraph]
|
|
11
|
-
self.
|
|
20
|
+
self.structuredReq = None # type: StructuredReq
|
|
21
|
+
self.trace = None # type: TraceableText
|
|
22
|
+
self.verbatim = None # type: MultiLanguageVerbatim
|
|
12
23
|
|
|
13
|
-
def
|
|
14
|
-
self.
|
|
24
|
+
def getDefList(self):
|
|
25
|
+
return self.defList
|
|
26
|
+
|
|
27
|
+
def setDefList(self, value):
|
|
28
|
+
if value is not None:
|
|
29
|
+
self.defList = value
|
|
30
|
+
return self
|
|
31
|
+
|
|
32
|
+
def getFigures(self):
|
|
33
|
+
return self.figures
|
|
34
|
+
|
|
35
|
+
def addFigure(self, value):
|
|
36
|
+
if value is not None:
|
|
37
|
+
self.figures.append(value)
|
|
38
|
+
return self
|
|
39
|
+
|
|
40
|
+
def getFormula(self):
|
|
41
|
+
return self.formula
|
|
42
|
+
|
|
43
|
+
def setFormula(self, value):
|
|
44
|
+
if value is not None:
|
|
45
|
+
self.formula = value
|
|
46
|
+
return self
|
|
47
|
+
|
|
48
|
+
def getLabeledList(self):
|
|
49
|
+
return self.labeledList
|
|
50
|
+
|
|
51
|
+
def setLabeledList(self, value):
|
|
52
|
+
if value is not None:
|
|
53
|
+
self.labeledList = value
|
|
15
54
|
return self
|
|
16
55
|
|
|
17
|
-
def getPs(self) -> List[MultiLanguageParagraph]:
|
|
18
|
-
return self.ps
|
|
19
|
-
|
|
20
56
|
def getLists(self):
|
|
21
57
|
return self.lists
|
|
22
58
|
|
|
23
59
|
def addList(self, value):
|
|
24
|
-
|
|
60
|
+
if value is not None:
|
|
61
|
+
self.lists.append(value)
|
|
62
|
+
return self
|
|
63
|
+
|
|
64
|
+
def getMsrQueryP2(self):
|
|
65
|
+
return self.msrQueryP2
|
|
66
|
+
|
|
67
|
+
def setMsrQueryP2(self, value):
|
|
68
|
+
if value is not None:
|
|
69
|
+
self.msrQueryP2 = value
|
|
70
|
+
return self
|
|
71
|
+
|
|
72
|
+
def getNote(self):
|
|
73
|
+
return self.note
|
|
74
|
+
|
|
75
|
+
def setNote(self, value):
|
|
76
|
+
if value is not None:
|
|
77
|
+
self.note = value
|
|
78
|
+
return self
|
|
79
|
+
|
|
80
|
+
def getPs(self) -> List[MultiLanguageParagraph]:
|
|
81
|
+
return self.ps
|
|
82
|
+
|
|
83
|
+
def addP(self, value):
|
|
84
|
+
if value is not None:
|
|
85
|
+
self.ps.append(value)
|
|
86
|
+
return self
|
|
87
|
+
|
|
88
|
+
def getStructuredReq(self):
|
|
89
|
+
return self.structuredReq
|
|
90
|
+
|
|
91
|
+
def setStructuredReq(self, value):
|
|
92
|
+
if value is not None:
|
|
93
|
+
self.structuredReq = value
|
|
94
|
+
return self
|
|
95
|
+
|
|
96
|
+
def getTrace(self):
|
|
97
|
+
return self.trace
|
|
98
|
+
|
|
99
|
+
def setTrace(self, value):
|
|
100
|
+
if value is not None:
|
|
101
|
+
self.trace = value
|
|
102
|
+
return self
|
|
103
|
+
|
|
104
|
+
def getVerbatim(self):
|
|
105
|
+
return self.verbatim
|
|
106
|
+
|
|
107
|
+
def setVerbatim(self, value):
|
|
108
|
+
if value is not None:
|
|
109
|
+
self.verbatim = value
|
|
25
110
|
return self
|
armodel/models/__init__.py
CHANGED
|
@@ -36,6 +36,8 @@ from .M2.AUTOSARTemplates.CommonStructure.ResourceConsumption.StackUsage import
|
|
|
36
36
|
from .M2.AUTOSARTemplates.CommonStructure.ResourceConsumption.MemorySectionUsage import *
|
|
37
37
|
from .M2.AUTOSARTemplates.CommonStructure.ServiceNeeds import *
|
|
38
38
|
from .M2.AUTOSARTemplates.CommonStructure.SwcBswMapping import *
|
|
39
|
+
from .M2.AUTOSARTemplates.CommonStructure.StandardizationTemplate.Keyword import *
|
|
40
|
+
from .M2.AUTOSARTemplates.CommonStructure.StandardizationTemplate.BlueprintDedicated.PortPrototypeBlueprint import *
|
|
39
41
|
from .M2.AUTOSARTemplates.CommonStructure.TriggerDeclaration import *
|
|
40
42
|
from .M2.AUTOSARTemplates.DiagnosticExtract.DiagnosticContribution import *
|
|
41
43
|
from .M2.AUTOSARTemplates.SWComponentTemplate import *
|
|
@@ -61,9 +63,11 @@ from .M2.AUTOSARTemplates.SystemTemplate.DataMapping import *
|
|
|
61
63
|
from .M2.AUTOSARTemplates.SystemTemplate.DiagnosticConnection import *
|
|
62
64
|
from .M2.AUTOSARTemplates.SystemTemplate.EcuResourceMapping import *
|
|
63
65
|
from .M2.AUTOSARTemplates.SystemTemplate.InstanceRefs import *
|
|
66
|
+
from .M2.AUTOSARTemplates.SystemTemplate.RteEventToOsTaskMapping import *
|
|
64
67
|
from .M2.AUTOSARTemplates.SystemTemplate.NetworkManagement import *
|
|
65
68
|
from .M2.AUTOSARTemplates.SystemTemplate.TransportProtocols import *
|
|
66
69
|
from .M2.AUTOSARTemplates.SystemTemplate.SWmapping import *
|
|
70
|
+
from .M2.AUTOSARTemplates.SystemTemplate.SecureCommunication import *
|
|
67
71
|
from .M2.AUTOSARTemplates.SystemTemplate.Fibex.Fibex4Multiplatform import *
|
|
68
72
|
from .M2.AUTOSARTemplates.SystemTemplate.Fibex.Fibex4Can.CanCommunication import *
|
|
69
73
|
from .M2.AUTOSARTemplates.SystemTemplate.Fibex.Fibex4Can.CanTopology import *
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from typing import Dict, List
|
|
2
|
+
|
|
3
|
+
from ..M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UUIDMgr:
|
|
7
|
+
def __init__(self):
|
|
8
|
+
self.uuid_object_mappings = {} # type: Dict[str, List[ARObject]]
|
|
9
|
+
|
|
10
|
+
def addObject(self, obj: ARObject):
|
|
11
|
+
if obj.uuid is None:
|
|
12
|
+
return
|
|
13
|
+
if obj.uuid not in self.uuid_object_mappings:
|
|
14
|
+
self.uuid_object_mappings[obj.uuid] = []
|
|
15
|
+
|
|
16
|
+
uuid_obj_list = self.uuid_object_mappings[obj.uuid]
|
|
17
|
+
uuid_obj_list.append(obj)
|
|
18
|
+
|
|
19
|
+
def getObjects(self, uuid: str):
|
|
20
|
+
result = []
|
|
21
|
+
if uuid in self.uuid_object_mappings:
|
|
22
|
+
result = self.uuid_object_mappings[uuid]
|
|
23
|
+
return result
|