armodel 1.7.1__py3-none-any.whl → 1.7.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 +3 -3
- armodel/models/M2/AUTOSARTemplates/AutosarTopLevelStructure.py +3 -3
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswBehavior.py +81 -36
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswInterfaces.py +104 -30
- armodel/models/M2/AUTOSARTemplates/BswModuleTemplate/BswOverview.py +12 -16
- armodel/models/M2/AUTOSARTemplates/CommonStructure/FlatMap.py +70 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/Implementation.py +12 -9
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ImplementationDataTypes.py +22 -11
- armodel/models/M2/AUTOSARTemplates/CommonStructure/InternalBehavior.py +29 -22
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ModeDeclaration.py +26 -9
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/HardwareConfiguration.py +33 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/HeapUsage.py +10 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/MemorySectionUsage.py +8 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/SoftwareContext.py +23 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/StackUsage.py +93 -0
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ResourceConsumption/__init__.py +39 -5
- armodel/models/M2/AUTOSARTemplates/CommonStructure/ServiceNeeds.py +735 -27
- armodel/models/M2/AUTOSARTemplates/CommonStructure/SwcBswMapping.py +48 -6
- armodel/models/M2/AUTOSARTemplates/GenericStructure/AbstractStructure.py +5 -5
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/ARPackage.py +20 -3
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/Identifiable.py +3 -0
- armodel/models/M2/AUTOSARTemplates/GenericStructure/GeneralTemplateClasses/PrimitiveTypes.py +55 -1
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Communication.py +41 -3
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Components/__init__.py +53 -15
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Composition/__init__.py +8 -0
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/Datatype/Datatypes.py +23 -8
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/PortInterface/__init__.py +239 -5
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/ServiceMapping.py +56 -6
- armodel/models/M2/AUTOSARTemplates/SWComponentTemplate/SwcInternalBehavior/__init__.py +91 -55
- armodel/models/M2/AUTOSARTemplates/SystemTemplate/DataMapping.py +10 -1
- armodel/models/M2/MSR/AsamHdo/ComputationMethod.py +186 -24
- armodel/models/M2/MSR/CalibrationData/CalibrationValue.py +34 -3
- armodel/models/M2/MSR/DataDictionary/AuxillaryObjects.py +4 -4
- armodel/models/M2/MSR/DataDictionary/DataDefProperties.py +7 -0
- armodel/models/M2/MSR/DataDictionary/RecordLayout.py +130 -37
- armodel/models/M2/MSR/DataDictionary/ServiceProcessTask.py +33 -0
- armodel/models/__init__.py +4 -0
- armodel/parser/abstract_arxml_parser.py +30 -27
- armodel/parser/arxml_parser.py +683 -371
- armodel/tests/test_armodel/models/test_ar_object.py +6 -2
- armodel/tests/test_armodel/models/test_datatype.py +4 -4
- armodel/tests/test_armodel/models/test_m2_msr.py +5 -5
- armodel/tests/test_armodel/models/test_port_interface.py +4 -4
- armodel/tests/test_armodel/parser/test_parse_bswmd.py +48 -48
- armodel/tests/test_armodel/parser/test_sw_components.py +1 -1
- armodel/tests/test_armodel/parser/test_system.py +0 -1
- armodel/writer/abstract_arxml_writer.py +10 -0
- armodel/writer/arxml_writer.py +668 -358
- {armodel-1.7.1.dist-info → armodel-1.7.3.dist-info}/METADATA +34 -1
- {armodel-1.7.1.dist-info → armodel-1.7.3.dist-info}/RECORD +54 -48
- {armodel-1.7.1.dist-info → armodel-1.7.3.dist-info}/LICENSE +0 -0
- {armodel-1.7.1.dist-info → armodel-1.7.3.dist-info}/WHEEL +0 -0
- {armodel-1.7.1.dist-info → armodel-1.7.3.dist-info}/entry_points.txt +0 -0
- {armodel-1.7.1.dist-info → armodel-1.7.3.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from typing import List
|
|
2
2
|
from abc import ABCMeta
|
|
3
3
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
4
|
-
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral
|
|
4
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral, CIdentifier, Identifier, PositiveUnlimitedInteger, String
|
|
5
5
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
6
6
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import RefType
|
|
7
7
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import Limit
|
|
@@ -23,18 +23,35 @@ class CompuConst(ARObject):
|
|
|
23
23
|
def __init__(self):
|
|
24
24
|
super().__init__()
|
|
25
25
|
|
|
26
|
-
self.
|
|
26
|
+
self.compuConstContentType = None # type: CompuConstContent
|
|
27
27
|
|
|
28
|
+
def getCompuConstContentType(self):
|
|
29
|
+
return self.compuConstContentType
|
|
30
|
+
|
|
31
|
+
def setCompuConstContentType(self, value):
|
|
32
|
+
self.compuConstContentType = value
|
|
33
|
+
return self
|
|
28
34
|
|
|
29
35
|
class Compu(ARObject):
|
|
30
36
|
def __init__(self):
|
|
31
37
|
super().__init__()
|
|
32
38
|
|
|
33
|
-
|
|
34
|
-
self.
|
|
39
|
+
self.compuContent = None # type: CompuContent
|
|
40
|
+
self.compuDefaultValue = None # type: CompuConst
|
|
41
|
+
|
|
42
|
+
def getCompuContent(self):
|
|
43
|
+
return self.compuContent
|
|
44
|
+
|
|
45
|
+
def setCompuContent(self, value):
|
|
46
|
+
self.compuContent = value
|
|
47
|
+
return self
|
|
35
48
|
|
|
36
|
-
|
|
37
|
-
self.
|
|
49
|
+
def getCompuDefaultValue(self):
|
|
50
|
+
return self.compuDefaultValue
|
|
51
|
+
|
|
52
|
+
def setCompuDefaultValue(self, value):
|
|
53
|
+
self.compuDefaultValue = value
|
|
54
|
+
return self
|
|
38
55
|
|
|
39
56
|
|
|
40
57
|
class CompuConstContent(ARObject, metaclass=ABCMeta):
|
|
@@ -62,14 +79,41 @@ class CompuConstTextContent(CompuConstContent):
|
|
|
62
79
|
|
|
63
80
|
self.vt = None
|
|
64
81
|
|
|
82
|
+
def getVt(self):
|
|
83
|
+
return self.vt
|
|
65
84
|
|
|
66
|
-
|
|
85
|
+
def setVt(self, value):
|
|
86
|
+
self.vt = value
|
|
87
|
+
return self
|
|
67
88
|
|
|
89
|
+
class CompuConstNumericContent(CompuConstContent):
|
|
68
90
|
def __init__(self):
|
|
69
91
|
super().__init__()
|
|
70
92
|
|
|
71
93
|
self.v = None
|
|
72
94
|
|
|
95
|
+
def getV(self):
|
|
96
|
+
return self.v
|
|
97
|
+
|
|
98
|
+
def setV(self, value):
|
|
99
|
+
self.v = value
|
|
100
|
+
return self
|
|
101
|
+
|
|
102
|
+
class CompuConstFormulaContent(CompuConstContent):
|
|
103
|
+
def __init__(self):
|
|
104
|
+
super().__init__()
|
|
105
|
+
|
|
106
|
+
self.vf = None
|
|
107
|
+
|
|
108
|
+
def getVf(self):
|
|
109
|
+
return self.vf
|
|
110
|
+
|
|
111
|
+
def setVf(self, value):
|
|
112
|
+
self.vf = value
|
|
113
|
+
return self
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
73
117
|
|
|
74
118
|
class CompuScaleContents(ARObject, metaclass=ABCMeta):
|
|
75
119
|
def __init__(self):
|
|
@@ -83,8 +127,14 @@ class CompuScaleConstantContents(CompuScaleContents):
|
|
|
83
127
|
def __init__(self):
|
|
84
128
|
super().__init__()
|
|
85
129
|
|
|
86
|
-
self.
|
|
130
|
+
self.compuConst = None # type: CompuConst
|
|
131
|
+
|
|
132
|
+
def getCompuConst(self):
|
|
133
|
+
return self.compuConst
|
|
87
134
|
|
|
135
|
+
def setCompuConst(self, value):
|
|
136
|
+
self.compuConst = value
|
|
137
|
+
return self
|
|
88
138
|
|
|
89
139
|
class CompuRationalCoeffs(ARObject):
|
|
90
140
|
'''
|
|
@@ -95,9 +145,22 @@ class CompuRationalCoeffs(ARObject):
|
|
|
95
145
|
def __init__(self):
|
|
96
146
|
super().__init__()
|
|
97
147
|
|
|
98
|
-
self.
|
|
99
|
-
self.
|
|
148
|
+
self.compuDenominator = None # type: CompuNominatorDenominator
|
|
149
|
+
self.compuNumerator = None # type: CompuNominatorDenominator
|
|
150
|
+
|
|
151
|
+
def getCompuDenominator(self):
|
|
152
|
+
return self.compuDenominator
|
|
100
153
|
|
|
154
|
+
def setCompuDenominator(self, value):
|
|
155
|
+
self.compuDenominator = value
|
|
156
|
+
return self
|
|
157
|
+
|
|
158
|
+
def getCompuNumerator(self):
|
|
159
|
+
return self.compuNumerator
|
|
160
|
+
|
|
161
|
+
def setCompuNumerator(self, value):
|
|
162
|
+
self.compuNumerator = value
|
|
163
|
+
return self
|
|
101
164
|
|
|
102
165
|
class CompuScaleRationalFormula(CompuScaleContents):
|
|
103
166
|
'''
|
|
@@ -106,8 +169,14 @@ class CompuScaleRationalFormula(CompuScaleContents):
|
|
|
106
169
|
def __init__(self):
|
|
107
170
|
super().__init__()
|
|
108
171
|
|
|
109
|
-
self.
|
|
172
|
+
self.compuRationalCoeffs = None # type: CompuRationalCoeffs
|
|
173
|
+
|
|
174
|
+
def getCompuRationalCoeffs(self):
|
|
175
|
+
return self.compuRationalCoeffs
|
|
110
176
|
|
|
177
|
+
def setCompuRationalCoeffs(self, value):
|
|
178
|
+
self.compuRationalCoeffs = value
|
|
179
|
+
return self
|
|
111
180
|
|
|
112
181
|
class CompuNominatorDenominator(ARObject):
|
|
113
182
|
'''
|
|
@@ -131,25 +200,90 @@ class CompuScale(Compu):
|
|
|
131
200
|
def __init__(self):
|
|
132
201
|
super().__init__()
|
|
133
202
|
|
|
134
|
-
self.
|
|
135
|
-
self.
|
|
136
|
-
self.
|
|
137
|
-
self.
|
|
138
|
-
self.
|
|
139
|
-
self.
|
|
203
|
+
self.a2lDisplayText = None # type: String
|
|
204
|
+
self.compuInverseValue = None # type: CompuConst
|
|
205
|
+
self.compuScaleContents = None # type: CompuScaleContents
|
|
206
|
+
self.desc = None # type: MultiLanguageOverviewParagraph
|
|
207
|
+
self.lowerLimit = None # type: Limit
|
|
208
|
+
self.mask = None # type: PositiveUnlimitedInteger
|
|
209
|
+
self.shortLabel = None # type: Identifier
|
|
210
|
+
self.symbol = None # type: CIdentifier
|
|
211
|
+
self.upperLimit = None # type: Limit
|
|
212
|
+
|
|
213
|
+
def getA2lDisplayText(self):
|
|
214
|
+
return self.a2lDisplayText
|
|
215
|
+
|
|
216
|
+
def setA2lDisplayText(self, value):
|
|
217
|
+
self.a2lDisplayText = value
|
|
218
|
+
return self
|
|
140
219
|
|
|
220
|
+
def getCompuInverseValue(self):
|
|
221
|
+
return self.compuInverseValue
|
|
222
|
+
|
|
223
|
+
def setCompuInverseValue(self, value):
|
|
224
|
+
self.compuInverseValue = value
|
|
225
|
+
return self
|
|
226
|
+
|
|
227
|
+
def getCompuScaleContents(self):
|
|
228
|
+
return self.compuScaleContents
|
|
229
|
+
|
|
230
|
+
def setCompuScaleContents(self, value):
|
|
231
|
+
self.compuScaleContents = value
|
|
232
|
+
return self
|
|
233
|
+
|
|
234
|
+
def getDesc(self):
|
|
235
|
+
return self.desc
|
|
236
|
+
|
|
237
|
+
def setDesc(self, value):
|
|
238
|
+
self.desc = value
|
|
239
|
+
return self
|
|
240
|
+
|
|
241
|
+
def getLowerLimit(self):
|
|
242
|
+
return self.lowerLimit
|
|
243
|
+
|
|
244
|
+
def setLowerLimit(self, value):
|
|
245
|
+
self.lowerLimit = value
|
|
246
|
+
return self
|
|
247
|
+
|
|
248
|
+
def getMask(self):
|
|
249
|
+
return self.mask
|
|
250
|
+
|
|
251
|
+
def setMask(self, value):
|
|
252
|
+
self.mask = value
|
|
253
|
+
return self
|
|
254
|
+
|
|
255
|
+
def getShortLabel(self):
|
|
256
|
+
return self.shortLabel
|
|
257
|
+
|
|
258
|
+
def setShortLabel(self, value):
|
|
259
|
+
self.shortLabel = value
|
|
260
|
+
return self
|
|
261
|
+
|
|
262
|
+
def getSymbol(self):
|
|
263
|
+
return self.symbol
|
|
264
|
+
|
|
265
|
+
def setSymbol(self, value):
|
|
266
|
+
self.symbol = value
|
|
267
|
+
return self
|
|
268
|
+
|
|
269
|
+
def getUpperLimit(self):
|
|
270
|
+
return self.upperLimit
|
|
271
|
+
|
|
272
|
+
def setUpperLimit(self, value):
|
|
273
|
+
self.upperLimit = value
|
|
274
|
+
return self
|
|
141
275
|
|
|
142
276
|
class CompuScales(CompuContent):
|
|
143
277
|
def __init__(self):
|
|
144
278
|
super().__init__()
|
|
145
279
|
|
|
146
|
-
self.
|
|
280
|
+
self.compuScales = [] # type: List[CompuScale]
|
|
147
281
|
|
|
148
282
|
def addCompuScale(self, compu_scale: CompuScale):
|
|
149
|
-
self.
|
|
283
|
+
self.compuScales.append(compu_scale)
|
|
150
284
|
|
|
151
285
|
def getCompuScales(self) -> List[CompuScale]:
|
|
152
|
-
return self.
|
|
286
|
+
return self.compuScales
|
|
153
287
|
|
|
154
288
|
|
|
155
289
|
class CompuMethod(ARElement):
|
|
@@ -158,7 +292,35 @@ class CompuMethod(ARElement):
|
|
|
158
292
|
def __init__(self, parent: ARObject, short_name: str):
|
|
159
293
|
super().__init__(parent, short_name)
|
|
160
294
|
|
|
161
|
-
self.
|
|
162
|
-
self.
|
|
163
|
-
self.
|
|
164
|
-
self.
|
|
295
|
+
self.compuInternalToPhys = None # type: Compu
|
|
296
|
+
self.compuPhysToInternal = None # type: Compu
|
|
297
|
+
self.displayFormat = None # type: DisplayFormatString
|
|
298
|
+
self.unitRef = None # type: RefType
|
|
299
|
+
|
|
300
|
+
def getCompuInternalToPhys(self):
|
|
301
|
+
return self.compuInternalToPhys
|
|
302
|
+
|
|
303
|
+
def setCompuInternalToPhys(self, value):
|
|
304
|
+
self.compuInternalToPhys = value
|
|
305
|
+
return self
|
|
306
|
+
|
|
307
|
+
def getCompuPhysToInternal(self):
|
|
308
|
+
return self.compuPhysToInternal
|
|
309
|
+
|
|
310
|
+
def setCompuPhysToInternal(self, value):
|
|
311
|
+
self.compuPhysToInternal = value
|
|
312
|
+
return self
|
|
313
|
+
|
|
314
|
+
def getDisplayFormat(self):
|
|
315
|
+
return self.displayFormat
|
|
316
|
+
|
|
317
|
+
def setDisplayFormat(self, value):
|
|
318
|
+
self.displayFormat = value
|
|
319
|
+
return self
|
|
320
|
+
|
|
321
|
+
def getUnitRef(self):
|
|
322
|
+
return self.unitRef
|
|
323
|
+
|
|
324
|
+
def setUnitRef(self, value):
|
|
325
|
+
self.unitRef = value
|
|
326
|
+
return self
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
from typing import List
|
|
2
|
+
|
|
3
|
+
from ....M2.MSR.AsamHdo.Units import SingleLanguageUnitNames
|
|
2
4
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
3
5
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARNumerical, RefType
|
|
4
6
|
from ....M2.MSR.DataDictionary.DataDefProperties import ValueList
|
|
@@ -21,6 +23,35 @@ class SwValueCont(ARObject):
|
|
|
21
23
|
def __init__(self):
|
|
22
24
|
super().__init__()
|
|
23
25
|
|
|
24
|
-
self.
|
|
25
|
-
self.
|
|
26
|
-
self.
|
|
26
|
+
self.swArraysize = None # type: ValueList
|
|
27
|
+
self.swValuesPhys = None # type: SwValues
|
|
28
|
+
self.unitRef = None # type: RefType
|
|
29
|
+
self.unitDisplayName = None # type: SingleLanguageUnitNames
|
|
30
|
+
|
|
31
|
+
def getSwArraysize(self):
|
|
32
|
+
return self.swArraysize
|
|
33
|
+
|
|
34
|
+
def setSwArraysize(self, value):
|
|
35
|
+
self.swArraysize = value
|
|
36
|
+
return self
|
|
37
|
+
|
|
38
|
+
def getSwValuesPhys(self):
|
|
39
|
+
return self.swValuesPhys
|
|
40
|
+
|
|
41
|
+
def setSwValuesPhys(self, value):
|
|
42
|
+
self.swValuesPhys = value
|
|
43
|
+
return self
|
|
44
|
+
|
|
45
|
+
def getUnitRef(self):
|
|
46
|
+
return self.unitRef
|
|
47
|
+
|
|
48
|
+
def setUnitRef(self, value):
|
|
49
|
+
self.unitRef = value
|
|
50
|
+
return self
|
|
51
|
+
|
|
52
|
+
def getUnitDisplayName(self):
|
|
53
|
+
return self.unitDisplayName
|
|
54
|
+
|
|
55
|
+
def setUnitDisplayName(self, value):
|
|
56
|
+
self.unitDisplayName = value
|
|
57
|
+
return self
|
|
@@ -8,7 +8,7 @@ class SwAddrMethod(Identifiable):
|
|
|
8
8
|
super().__init__(parent, short_name)
|
|
9
9
|
|
|
10
10
|
self.memoryAllocationKeywordPolicy = None # type: ARLiteral
|
|
11
|
-
self.
|
|
11
|
+
self.options = [] # type: List[ARLiteral]
|
|
12
12
|
self.sectionInitializationPolicy = None # type: ARLiteral
|
|
13
13
|
self.sectionType = None # type: ARLiteral
|
|
14
14
|
|
|
@@ -19,11 +19,11 @@ class SwAddrMethod(Identifiable):
|
|
|
19
19
|
self.memoryAllocationKeywordPolicy = value
|
|
20
20
|
return self
|
|
21
21
|
|
|
22
|
-
def
|
|
23
|
-
return self.
|
|
22
|
+
def getOptions(self):
|
|
23
|
+
return self.options
|
|
24
24
|
|
|
25
25
|
def addOption(self, value):
|
|
26
|
-
self.
|
|
26
|
+
self.options.append(value)
|
|
27
27
|
return self
|
|
28
28
|
|
|
29
29
|
def getSectionInitializationPolicy(self):
|
|
@@ -296,6 +296,13 @@ class ValueList(ARObject):
|
|
|
296
296
|
self.v = None # type: ARFloat
|
|
297
297
|
self._vf = [] # type: List[ARLiteral]
|
|
298
298
|
|
|
299
|
+
def getV(self):
|
|
300
|
+
return self.v
|
|
301
|
+
|
|
302
|
+
def setV(self, value):
|
|
303
|
+
self.v = value
|
|
304
|
+
return self
|
|
305
|
+
|
|
299
306
|
def addVf(self, vf: ARLiteral):
|
|
300
307
|
self._vf.append(vf)
|
|
301
308
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
2
2
|
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import ARElement
|
|
3
|
-
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral, ARNumerical, RefType
|
|
3
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ARLiteral, ARNumerical, Integer, RefType
|
|
4
4
|
from ....M2.MSR.Documentation.TextModel.MultilanguageData import MultiLanguageOverviewParagraph
|
|
5
5
|
|
|
6
6
|
class SwRecordLayoutV(ARObject):
|
|
@@ -16,29 +16,64 @@ class SwRecordLayoutV(ARObject):
|
|
|
16
16
|
self.swRecordLayoutVIndex = None # type: ARLiteral
|
|
17
17
|
self.swRecordLayoutVProp = None # type: ARLiteral
|
|
18
18
|
|
|
19
|
-
def
|
|
20
|
-
self.
|
|
19
|
+
def getBaseTypeRef(self):
|
|
20
|
+
return self.baseTypeRef
|
|
21
|
+
|
|
22
|
+
def setBaseTypeRef(self, value):
|
|
23
|
+
self.baseTypeRef = value
|
|
24
|
+
return self
|
|
25
|
+
|
|
26
|
+
def getDesc(self):
|
|
27
|
+
return self.desc
|
|
28
|
+
|
|
29
|
+
def setDesc(self, value):
|
|
30
|
+
self.desc = value
|
|
31
|
+
return self
|
|
32
|
+
|
|
33
|
+
def getShortLabel(self):
|
|
34
|
+
return self.shortLabel
|
|
35
|
+
|
|
36
|
+
def setShortLabel(self, value):
|
|
37
|
+
self.shortLabel = value
|
|
21
38
|
return self
|
|
22
39
|
|
|
23
|
-
def
|
|
24
|
-
self.
|
|
40
|
+
def getSwGenericAxisParamTypeRef(self):
|
|
41
|
+
return self.swGenericAxisParamTypeRef
|
|
42
|
+
|
|
43
|
+
def setSwGenericAxisParamTypeRef(self, value):
|
|
44
|
+
self.swGenericAxisParamTypeRef = value
|
|
25
45
|
return self
|
|
26
46
|
|
|
27
|
-
def
|
|
28
|
-
self.swRecordLayoutVAxis
|
|
47
|
+
def getSwRecordLayoutVAxis(self):
|
|
48
|
+
return self.swRecordLayoutVAxis
|
|
49
|
+
|
|
50
|
+
def setSwRecordLayoutVAxis(self, value):
|
|
51
|
+
self.swRecordLayoutVAxis = value
|
|
29
52
|
return self
|
|
30
53
|
|
|
31
|
-
def
|
|
54
|
+
def getSwRecordLayoutVFixValue(self):
|
|
55
|
+
return self.swRecordLayoutVFixValue
|
|
56
|
+
|
|
57
|
+
def setSwRecordLayoutVFixValue(self, value):
|
|
32
58
|
self.swRecordLayoutVFixValue = value
|
|
33
59
|
return self
|
|
34
60
|
|
|
35
|
-
def
|
|
36
|
-
self.swRecordLayoutVIndex
|
|
61
|
+
def getSwRecordLayoutVIndex(self):
|
|
62
|
+
return self.swRecordLayoutVIndex
|
|
63
|
+
|
|
64
|
+
def setSwRecordLayoutVIndex(self, value):
|
|
65
|
+
self.swRecordLayoutVIndex = value
|
|
37
66
|
return self
|
|
38
67
|
|
|
39
|
-
def
|
|
40
|
-
self.swRecordLayoutVProp
|
|
68
|
+
def getSwRecordLayoutVProp(self):
|
|
69
|
+
return self.swRecordLayoutVProp
|
|
70
|
+
|
|
71
|
+
def setSwRecordLayoutVProp(self, value):
|
|
72
|
+
self.swRecordLayoutVProp = value
|
|
41
73
|
return self
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
42
77
|
|
|
43
78
|
class SwRecordLayoutGroupContent(ARObject):
|
|
44
79
|
def __init__(self):
|
|
@@ -48,6 +83,27 @@ class SwRecordLayoutGroupContent(ARObject):
|
|
|
48
83
|
self.swRecordLayoutGroup = None # type: SwRecordLayoutGroup
|
|
49
84
|
self.swRecordLayoutV = None # type: SwRecordLayoutV
|
|
50
85
|
|
|
86
|
+
def getSwRecordLayoutRef(self):
|
|
87
|
+
return self.swRecordLayoutRef
|
|
88
|
+
|
|
89
|
+
def setSwRecordLayoutRef(self, value):
|
|
90
|
+
self.swRecordLayoutRef = value
|
|
91
|
+
return self
|
|
92
|
+
|
|
93
|
+
def getSwRecordLayoutGroup(self):
|
|
94
|
+
return self.swRecordLayoutGroup
|
|
95
|
+
|
|
96
|
+
def setSwRecordLayoutGroup(self, value):
|
|
97
|
+
self.swRecordLayoutGroup = value
|
|
98
|
+
return self
|
|
99
|
+
|
|
100
|
+
def getSwRecordLayoutV(self):
|
|
101
|
+
return self.swRecordLayoutV
|
|
102
|
+
|
|
103
|
+
def setSwRecordLayoutV(self, value):
|
|
104
|
+
self.swRecordLayoutV = value
|
|
105
|
+
return self
|
|
106
|
+
|
|
51
107
|
|
|
52
108
|
class SwRecordLayoutGroup(ARObject):
|
|
53
109
|
def __init__(self):
|
|
@@ -60,53 +116,87 @@ class SwRecordLayoutGroup(ARObject):
|
|
|
60
116
|
self.swRecordLayoutComponent = None # type: ARLiteral
|
|
61
117
|
self.swRecordLayoutGroupAxis = None # type: ARNumerical
|
|
62
118
|
self.swRecordLayoutGroupContentType = None # type: SwRecordLayoutGroupContent
|
|
63
|
-
self.swRecordLayoutGroupIndex = None # type: ARLiteral
|
|
64
119
|
self.swRecordLayoutGroupFrom = None # type: ARLiteral
|
|
120
|
+
self.swRecordLayoutGroupIndex = None # type: ARLiteral
|
|
121
|
+
self.swRecordLayoutGroupStep = None # type: Integer
|
|
65
122
|
self.swRecordLayoutGroupTo = None # type: ARLiteral
|
|
66
123
|
|
|
124
|
+
def getCategory(self):
|
|
125
|
+
return self.category
|
|
67
126
|
|
|
68
|
-
def setCategory(self,
|
|
69
|
-
self.category =
|
|
127
|
+
def setCategory(self, value):
|
|
128
|
+
self.category = value
|
|
70
129
|
return self
|
|
71
130
|
|
|
72
|
-
def
|
|
73
|
-
self.desc
|
|
74
|
-
return self
|
|
131
|
+
def getDesc(self):
|
|
132
|
+
return self.desc
|
|
75
133
|
|
|
76
|
-
def
|
|
77
|
-
self.
|
|
134
|
+
def setDesc(self, value):
|
|
135
|
+
self.desc = value
|
|
78
136
|
return self
|
|
79
137
|
|
|
80
|
-
def
|
|
81
|
-
self.
|
|
138
|
+
def getShortLabel(self):
|
|
139
|
+
return self.shortLabel
|
|
140
|
+
|
|
141
|
+
def setShortLabel(self, value):
|
|
142
|
+
self.shortLabel = value
|
|
82
143
|
return self
|
|
83
144
|
|
|
84
|
-
def
|
|
85
|
-
self.
|
|
145
|
+
def getSwGenericAxisParamTypeRef(self):
|
|
146
|
+
return self.swGenericAxisParamTypeRef
|
|
147
|
+
|
|
148
|
+
def setSwGenericAxisParamTypeRef(self, value):
|
|
149
|
+
self.swGenericAxisParamTypeRef = value
|
|
86
150
|
return self
|
|
87
151
|
|
|
88
|
-
def
|
|
89
|
-
self.
|
|
152
|
+
def getSwRecordLayoutComponent(self):
|
|
153
|
+
return self.swRecordLayoutComponent
|
|
154
|
+
|
|
155
|
+
def setSwRecordLayoutComponent(self, value):
|
|
156
|
+
self.swRecordLayoutComponent = value
|
|
90
157
|
return self
|
|
91
158
|
|
|
92
|
-
def
|
|
93
|
-
self.
|
|
159
|
+
def getSwRecordLayoutGroupAxis(self):
|
|
160
|
+
return self.swRecordLayoutGroupAxis
|
|
161
|
+
|
|
162
|
+
def setSwRecordLayoutGroupAxis(self, value):
|
|
163
|
+
self.swRecordLayoutGroupAxis = value
|
|
94
164
|
return self
|
|
95
165
|
|
|
96
|
-
def
|
|
97
|
-
self.
|
|
166
|
+
def getSwRecordLayoutGroupContentType(self):
|
|
167
|
+
return self.swRecordLayoutGroupContentType
|
|
168
|
+
|
|
169
|
+
def setSwRecordLayoutGroupContentType(self, value):
|
|
170
|
+
self.swRecordLayoutGroupContentType = value
|
|
98
171
|
return self
|
|
99
172
|
|
|
100
|
-
def
|
|
101
|
-
self.
|
|
173
|
+
def getSwRecordLayoutGroupFrom(self):
|
|
174
|
+
return self.swRecordLayoutGroupFrom
|
|
175
|
+
|
|
176
|
+
def setSwRecordLayoutGroupFrom(self, value):
|
|
177
|
+
self.swRecordLayoutGroupFrom = value
|
|
102
178
|
return self
|
|
103
179
|
|
|
104
|
-
def
|
|
105
|
-
self.
|
|
180
|
+
def getSwRecordLayoutGroupIndex(self):
|
|
181
|
+
return self.swRecordLayoutGroupIndex
|
|
182
|
+
|
|
183
|
+
def setSwRecordLayoutGroupIndex(self, value):
|
|
184
|
+
self.swRecordLayoutGroupIndex = value
|
|
106
185
|
return self
|
|
107
186
|
|
|
187
|
+
def getSwRecordLayoutGroupStep(self):
|
|
188
|
+
return self.swRecordLayoutGroupStep
|
|
108
189
|
|
|
190
|
+
def setSwRecordLayoutGroupStep(self, value):
|
|
191
|
+
self.swRecordLayoutGroupStep = value
|
|
192
|
+
return self
|
|
109
193
|
|
|
194
|
+
def getSwRecordLayoutGroupTo(self):
|
|
195
|
+
return self.swRecordLayoutGroupTo
|
|
196
|
+
|
|
197
|
+
def setSwRecordLayoutGroupTo(self, value):
|
|
198
|
+
self.swRecordLayoutGroupTo = value
|
|
199
|
+
return self
|
|
110
200
|
|
|
111
201
|
class SwRecordLayout(ARElement):
|
|
112
202
|
def __init__(self, parent: ARObject, short_name: str):
|
|
@@ -114,6 +204,9 @@ class SwRecordLayout(ARElement):
|
|
|
114
204
|
|
|
115
205
|
self.swRecordLayoutGroup = None # type: SwRecordLayoutGroup
|
|
116
206
|
|
|
117
|
-
def
|
|
118
|
-
self.swRecordLayoutGroup
|
|
119
|
-
|
|
207
|
+
def getSwRecordLayoutGroup(self):
|
|
208
|
+
return self.swRecordLayoutGroup
|
|
209
|
+
|
|
210
|
+
def setSwRecordLayoutGroup(self, value):
|
|
211
|
+
self.swRecordLayoutGroup = value
|
|
212
|
+
return self
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from ....M2.MSR.DataDictionary.DataDefProperties import SwDataDefProps, ValueList
|
|
2
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.PrimitiveTypes import ArgumentDirectionEnum
|
|
3
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.ArObject import ARObject
|
|
4
|
+
from ....M2.AUTOSARTemplates.GenericStructure.GeneralTemplateClasses.Identifiable import Identifiable
|
|
5
|
+
|
|
6
|
+
class SwServiceArg(Identifiable):
|
|
7
|
+
def __init__(self, parent: ARObject, short_name: str):
|
|
8
|
+
super().__init__(parent, short_name)
|
|
9
|
+
|
|
10
|
+
self.direction = None # type: ArgumentDirectionEnum
|
|
11
|
+
self.swArraysize = None # type: ValueList
|
|
12
|
+
self.swDataDefProps = None # type: SwDataDefProps
|
|
13
|
+
|
|
14
|
+
def getDirection(self):
|
|
15
|
+
return self.direction
|
|
16
|
+
|
|
17
|
+
def setDirection(self, value):
|
|
18
|
+
self.direction = value
|
|
19
|
+
return self
|
|
20
|
+
|
|
21
|
+
def getSwArraysize(self):
|
|
22
|
+
return self.swArraysize
|
|
23
|
+
|
|
24
|
+
def setSwArraysize(self, value):
|
|
25
|
+
self.swArraysize = value
|
|
26
|
+
return self
|
|
27
|
+
|
|
28
|
+
def getSwDataDefProps(self):
|
|
29
|
+
return self.swDataDefProps
|
|
30
|
+
|
|
31
|
+
def setSwDataDefProps(self, value):
|
|
32
|
+
self.swDataDefProps = value
|
|
33
|
+
return self
|
armodel/models/__init__.py
CHANGED
|
@@ -22,11 +22,14 @@ from .M2.AUTOSARTemplates.BswModuleTemplate.BswInterfaces import *
|
|
|
22
22
|
from .M2.AUTOSARTemplates.BswModuleTemplate.BswOverview import *
|
|
23
23
|
from .M2.AUTOSARTemplates.CommonStructure import *
|
|
24
24
|
from .M2.AUTOSARTemplates.CommonStructure.Filter import *
|
|
25
|
+
from .M2.AUTOSARTemplates.CommonStructure.FlatMap import *
|
|
25
26
|
from .M2.AUTOSARTemplates.CommonStructure.Implementation import *
|
|
26
27
|
from .M2.AUTOSARTemplates.CommonStructure.ImplementationDataTypes import *
|
|
27
28
|
from .M2.AUTOSARTemplates.CommonStructure.InternalBehavior import *
|
|
28
29
|
from .M2.AUTOSARTemplates.CommonStructure.ModeDeclaration import *
|
|
29
30
|
from .M2.AUTOSARTemplates.CommonStructure.ResourceConsumption import *
|
|
31
|
+
from .M2.AUTOSARTemplates.CommonStructure.ResourceConsumption.HeapUsage import *
|
|
32
|
+
from .M2.AUTOSARTemplates.CommonStructure.ResourceConsumption.StackUsage import *
|
|
30
33
|
from .M2.AUTOSARTemplates.CommonStructure.ResourceConsumption.MemorySectionUsage import *
|
|
31
34
|
from .M2.AUTOSARTemplates.CommonStructure.ServiceNeeds import *
|
|
32
35
|
from .M2.AUTOSARTemplates.CommonStructure.SwcBswMapping import *
|
|
@@ -44,6 +47,7 @@ from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.IncludedDataTy
|
|
|
44
47
|
from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.InstanceRefsUsage import *
|
|
45
48
|
from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.ModeDeclarationGroup import *
|
|
46
49
|
from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.PerInstanceMemory import *
|
|
50
|
+
from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.RTEEvents import *
|
|
47
51
|
from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.ServerCall import *
|
|
48
52
|
from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.ServiceMapping import *
|
|
49
53
|
from .M2.AUTOSARTemplates.SWComponentTemplate.SwcInternalBehavior.Trigger import *
|